On Thu, May 30, 2013 at 12:52 PM, Dominic Tarr <[email protected]>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')
>
true-y
> B. semver.satisfies('~1.2', '1.3.0')
>
falsy
> C. semver.satisfies('~1.2', '1.2.6')
>
true-y
> D. semver.satisfies('1.2', '1.3.0')
>
falsy
E. semver.satisfies('1.2', '1.2.4')
>
true-y
please don't look at the documentation, the question is:
>
> what do you think it means?
>
My intuitive understanding (which is probably wrong) is that "~1.2.3" ->
"1.2.x" -> "1.2.0 <= version < 1.3". That said, '~' feels squishy to me, so
I tend to prefer "1.2.x".
F
--
--
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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.