Skip to content

Conversation

@StanAngeloff
Copy link
Contributor

"latest" was used previously which worked in npm install. The reason
for that is the registry (http://registry.npmjs.org/) can deal with both
version specifications as well as tags. "latest" has a special meaning
of "latest published package" as can be seen here:

http://registry.npmjs.org/webrtc.io/latest

However, the string "latest" is not a semver-recognised
(http://semver.org/) version specification. When npm shrinkwrap or
npm ls is used within a parent package/repository, both commands fail
as the dependencies are not met, e.g.:

$ npm install semver
$ semver -v '0.0.1' -r 'latest'
  [ no output, i.e., expression failed ]
$ semver -v '0.2.3' -r '>= 0.0.0'
  0.2.3

By using a more liberal (yet very generic) version specification, the
installed version is ensured to always be the latest available in the
registry. In addition, any semver expressions will also parse.

"latest" was used previously which worked in `npm install`. The reason
for that is the registry (http://registry.npmjs.org/) can deal with both
version specifications as well as tags. "latest" has a special meaning
of "latest published package" as can be seen here:

    http://registry.npmjs.org/webrtc.io/latest

However, the string "latest" is not a semver-recognised
(http://semver.org/) version specification. When `npm shrinkwrap` or
`npm ls` is used within a parent package/repository, both commands fail
as the dependencies are not met, e.g.:

    $ npm install semver
    $ semver -v '0.0.1' -r 'latest'
      [ no output, i.e., expression failed ]
    $ semver -v '0.2.3' -r '>= 0.0.0'
      0.2.3

By using a more liberal (yet very generic) version specification, the
installed version is ensured to always be the latest available in the
registry. In addition, any semver expressions will also parse.
@sarenji
Copy link
Member

sarenji commented Dec 14, 2012

Makes sense. We may want more limiting versions later, but I don't anticipate breaking problems in the future; we use very simple functionality. Thanks a bunch!

sarenji added a commit that referenced this pull request Dec 14, 2012
Use liberal and semver-correct version string for dependencies.
@sarenji sarenji merged commit a79828b into webRTC-io:master Dec 14, 2012
ajbogh pushed a commit to ajbogh/webRTC.io that referenced this pull request Mar 26, 2014
Connect WebSocket relative to window.location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants