From Fedora Project Wiki

npm 2

Summary

Fedora 23 features npm 2, the latest version of the package manager for node.js and other JavaScript platforms.

Owner

Current status

Detailed Description

While npm 2 is a major version number update, it contains little in the way of major changes. The version bump was necessitated by an API change permitting arguments to be passed to scripts executed by npm run. Another major change is to the way 0.x.y versions are compared by the semver library used by npm. For more information on all the changes, see the upstream release announcement. There are few end-user facing changes, beyond the addition of a couple features to the CLI.

Benefit to Fedora

npm users will benefit from a newer, more reliable npm.

Scope

  • Proposal owners:
    • Update all of nodejs-* basically
    • Update npm of course
  • Other developers:
    • I might have to ask a couple other maintainers if they're okay with me updating their packages. They usually are.  :-)
  • Release engineering: N/A (not a System Wide Change)
  • Policies and guidelines:
    • Some minor updates to the Node.js guidelines are planned, however they are just Nice To Have for the purposes of this specific change.
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

There are minor API changes. Users will already be prepared to check their third-party software due to the Node.js 0.12 update also planned for this release.

How To Test

Make sure npm still works for you.

User Experience

npm 2 works more reliably and contains a few new CLI features. See the upstream release announcement for more details.

Dependencies

Not applicable. This specifically does not depend on the Node.js 0.12 change, as npm 2 will work fine with nodejs 0.10.

Contingency Plan

If it cannot be implemented in time, just do not implement and remain with previous version of logic. It is a replacement operation.

  • Contingency mechanism: Bump Epoch on ~100 packages and revert. Drink.
  • Contingency deadline: Beta Freeze
  • Blocks release? N/A (not a System Wide Change)
  • Blocks product? N/A

Documentation

Release Notes

Fedora 23 features npm 2. It should work more reliably and it contains a couple new CLI features. There is also a change to the way dependencies are resolved with versions starting with 0 (e.g. v0.1.2). See the release announcement for more information.