On May 30, 2013, at 3:52 PM, Dominic Tarr <dominic.t...@gmail.com> wrote:

> without looking in the documentation or trying it in the repl
> 
> what do you expect to be the results of these tests on semver ranges?
> 
> A. semver.satisfies('~1.2.3', '1.2.4')
> 
> B. semver.satisfies('~1.2', '1.3.0')
> 
> C. semver.satisfies('~1.2', '1.2.6')
> 
> D. semver.satisfies('1.2', '1.3.0')
> 
> E. semver.satisfies('1.2', '1.2.4')
> 
> please don't look at the documentation, the question is:
> 
> what do you think it means?


I'd prefer to be very explicit:

>=1.2.0 <2.0.0

I read this as "allow version 1.2.0 or any subsequent version prior to a major 
API change."

I think this is what the tilde implies, but I would have to look it up more 
than onceā€¦ and so would my fellow collaborators, I imagine.

-- 
Kevin Swiber
@kevinswiber
https://github.com/kevinswiber

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to