Skip to content

Commit bebfe71

Browse files
committed
package spec: removed exceptions to version number. node-semver is an implementation detail, we will not allow any version number except valid semver per semver.org.
1 parent fa66505 commit bebfe71

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

docs/package.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,8 @@ The name is what your thing is called. Some tips:
5353
The *most* important things in your package.json are the name and version fields.
5454
The name and version together form an identifier that is assumed
5555
to be completely unique. Changes to the plugin should come along with
56-
changes to the version.
57-
58-
Version must be parseable by
59-
[node-semver](https://github.com/isaacs/node-semver).
60-
61-
Here's how the node-semver implementation (which the jQuery Plugins Site uses)
62-
deviates from what's on semver.org:
63-
64-
* Versions can start with "v"
65-
* A numeric item separated from the main three-number version by a hyphen
66-
will be interpreted as a "build" number, and will *increase* the version.
67-
But, if the tag is not a number separated by a hyphen, then it's treated
68-
as a pre-release tag, and is *less than* the version without a tag.
69-
So, `0.1.2-7 > 0.1.2-7-beta > 0.1.2-6 > 0.1.2 > 0.1.2beta`
70-
71-
This is a little bit confusing to explain, but matches what you see in practice
72-
when people create tags in git like "v1.2.3" and then do "git describe" to generate
73-
a patch version.
56+
changes to the version. Version number must be a valid semantic version number
57+
per semver.org.
7458

7559
See [Specifying Versions](#specifying-versions).
7660

0 commit comments

Comments
 (0)