Re: [dart-misc] Is this bug or normal behavior?

37 views
Skip to first unread message
Message has been deleted
Message has been deleted

Bob Nystrom

unread,
May 20, 2013, 7:09:36 PM5/20/13
to General Dart Discussion

On Mon, May 20, 2013 at 1:38 PM, mezoni <andrew...@gmail.com> wrote:
Where digits are compared numerically?
I compare them as described above but I cannot find where digits are compared numerically in pub.

 

Or am I wrong again?

I always assume that preRelease is List of parts (dot separated) but Dart Team assume that preRelease is String?
Why?

And may pub invented his own semver?

No, we follow semver exactly.

Cheers,

- bob

Bob Nystrom

unread,
May 20, 2013, 7:17:06 PM5/20/13
to General Dart Discussion

On Mon, May 20, 2013 at 1:50 PM, mezoni <andrew...@gmail.com> wrote:
Build metadata SHOULD be ignored when determining version precedence. Thus two packages with the same version, but different build metadata are considered to be the same version. 
Precedence MUST be calculated by separating the version into major, minor, patch and pre-release identifiers in that order (Build metadata does not figure into precedence).

A new version of semver has come out since pub implemented it. Pub currently implements semver v2.0.0-rc.1, which states:

A build version MAY be denoted by appending a plus sign and a series of dot separated identifiers immediately following the patch version or pre-release version. Identifiers MUST be comprised of only ASCII alphanumerics and dash [0-9A-Za-z-]. Build versions satisfy and have a higher precedence than the associated normal version. Examples: 1.0.0+build.1, 1.3.7+build.11.e0f985a.

It seems the motivation for the change is here: https://github.com/mojombo/semver/pull/61

Cheers,

- bob
Reply all
Reply to author
Forward
0 new messages