without having done any research I'd say between 0 and 4.
On Jun 28, 2012, at June 28, 20121:04 PM, Ryan Schmidt wrote:
> I didn't know that was supported and I wonder how many module authors know
> that. Can we find out how many modules actually use those kinds of
> complicated engines specifications?
>
>
> On Jun 28, 2012, at 14:33, Isaac Schlueter wrote:
>
>> The problem is that it's a range, not a single value. (Though a
>> single semver value IS a valid range, just a very small one.)
>>
>> What does it mean to be "greater than" a range like "0.5.4 || 0.5.6 ||
>> 0.8 || <=0.9.4"?
>>
>> To make that a meaningful question, we'd have to loop over all the
>> ||-separated comparators, parse each into a "simple range" (ie, a
>> collection of space-separated /^((?:[<>])=?)({semver})/ tokens), and
>> then find the max of those that is a < or <= or =.
>>
>> If the max is <, then the version would have to be >={semver}, and if
>> it is <= or =, then it'd have to be >{semver}.
>>
>> So, then you'd have a set of maximums, and find the max of those? So,
>> for the range above, >{range} would mean >0.9.4.
>>
>> In other words, version ranges are not necessarily contiguous or
>> differentiable. They have gaps. We can decide what "greater than a
>> range" means, but it's not quite as trivial as just skipping the
>> question entirely, and I'm not sure that the benefit is a big enough
>> deal to matter.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en