Changelog | npm Docs (original) (raw)

See DetailsTable of contents

v7.24.2 (2021-10-04)

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.24.1 (2021-09-23)

DEPENDENCIES

DOCS

v7.24.0 (2021-09-16)

FEATURES

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.23.0 (2021-09-09)

FEATURES

BUG FIXES

DOCUMENTATION

v7.22.0 (2021-09-02)

BUG FIXES

DEPENDENCIES

v7.21.1 (2021-08-26)

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.21.0 (2021-08-19)

FEATURES

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.20.6 (2021-08-12)

DEPENDENCIES

DOCUMENTATION

v7.20.5 (2021-08-05)

DEPENDENCIES

v7.20.4 (2021-08-05)

BUG FIXES

DEPENDENCIES

v7.20.3 (2021-07-29)

BUG FIXES

DEPENDENCIES

v7.20.2 (2021-07-27)

DEPENDENCIES

v7.20.1 (2021-07-22)

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.20.0 (2021-07-15)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.19.1 (2021-07-01)

BUG FIXES

DOCUMENTATION

TESTING

v7.19.0 (2021-06-24)

FEATURES

BUG FIXES

DEPENDENCIES

v7.18.1 (2021-06-17)

BUG FIXES

v7.18.0 (2021-06-17)

FEATURES

BUG FIXES

DEPENDENCIES

v7.17.0 (2021-06-10)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.16.0 (2021-06-03)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

AUTOMATION

v7.15.1 (2021-05-31)

BUG FIXES

DEPENDENCIES

v7.15.0 (2021-05-27)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

AUTOMATION

v7.14.0 (2021-05-20)

FEATURES

BUG FIXES

DEPENDENCIES

v7.13.0 (2021-05-13)

FEATURES

DEPENDENCIES

v7.12.1 (2021-05-10)

BUG FIXES

DEPENDENCIES

v7.12.0 (2021-05-06)

FEATURES

BUG FIXES

DEPENDENCIES

v7.11.2 (2021-04-29)

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.11.1 (2021-04-23)

DEPENDENCIES

DOCUMENTATION

v7.11.0 (2021-04-22)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.10.0 (2021-04-15)

FEATURES

DEPENDENCIES

DOCUMENTATION

v7.9.0 (2021-04-08)

FEATURES

DEPENDENCIES

v7.8.0 (2021-04-01)

FEATURES

BUG FIXES

DEPENDENCIES

v7.7.6 (2021-03-29)

BUG FIXES

DEPENDENCIES

v7.7.5 (2021-03-25)

BUG FIXES

TESTS

v7.7.4 (2021-03-24)

BUG FIXES

v7.7.3 (2021-03-24)

BUG FIXES

v7.7.2 (2021-03-24)

BUG FIXES

DEPENDENCIES

v7.7.1 (2021-03-24)

BUG FIXES

v7.7.0 (2021-03-23)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.6.3 (2021-03-11)

DOCUMENTATION

DEPENDENCIES

v7.6.2 (2021-03-09)

BUG FIXES

DEPENDENCIES

v7.6.1 (2021-03-04)

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.6.0 (2021-02-25)

FEATURES

DEPENDENCIES

DOCUMENTATION

v7.5.6 (2021-02-22)

BUG FIXES

DOCS

DEPENDENCIES

v7.5.5 (2021-02-22)

BUG FIXES

DEPENDENCIES

TESTS

DOCUMENTATION

v7.5.4 (2021-02-12)

BUG FIXES

DEPENDENCIES

TESTS

DOCUMENTATION

v7.5.3 (2021-02-08)

BUG FIXES

DEPENDENCIES

v7.5.2 (2021-02-02)

BUG FIXES

DEPENDENCIES

v7.5.1 (2021-02-01

BUG FIXES

DEPENDENCIES

DOCUMENTATION

v7.5.0 (2021-01-28)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.4.3 (2021-01-21)

DOCUMENTATION

DEPENDENCIES

v7.4.2 (2021-01-15)

DEPENDENCIES

v7.4.1 (2021-01-14)

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.4.0 (2021-01-07)

FEATURES

BUG FIXES

DEPENDENCIES

DOCUMENTATION

7.3.0 (2020-12-18)

FEATURES

BUG FIXES

DOCS

TESTING

DEPENDENCIES

7.2.0 (2020-12-15)

FEATURES

DEPENDENCIES

TESTING

7.1.2 (2020-12-11)

DEPENDENCIES

BUGFIXES

TESTING

DOCUMENTATION

7.1.1 (2020-12-08)

DEPENDENCIES

TESTS

FEATURES

7.1.0 (2020-12-04)

FEATURES

BUG FIXES

DOCUMENTATION

DEPENDENCIES

7.0.15 (2020-11-27)

DEPENDENCIES

BUG FIXES

DOCUMENTATION

7.0.14 (2020-11-23)

DEPENDENCIES

7.0.13 (2020-11-20)

BUG FIXES

DEPENDENCIES

DOCUMENTATION

7.0.12 (2020-11-17)

BUG FIXES

DEPENDENCIES

DOCUMENTATION

7.0.11 (2020-11-13)

DEPENDENCIES

BUG FIXES

7.0.10 (2020-11-10)

DOCUMENTATION

BUG FIXES

DEPENDENCIES

7.0.9 (2020-11-06)

BUG FIXES

DEPENDENCIES

7.0.8 (2020-11-03)

DOCUMENTATION

BUG FIXES

DEPENDENCIES

7.0.7 (2020-10-30)

BUG FIXES

DEPENDENCIES

7.0.6 (2020-10-27)

BUG FIXES

DEPENDENCIES

7.0.5 (2020-10-23)

7.0.4 (2020-10-23)

DOCUMENTATION

BUG FIXES

TESTS

DEPENDENCIES

7.0.3 (2020-10-20)

BUG FIXES

DOCUMENTATION

DEPENDENCIES

7.0.2 (2020-10-16)

DOCUMENTATION

BUG FIXES

DEPENDENCIES

7.0.1 (2020-10-15)

DOCUMENTATION

BUG FIXES

DEPENDENCIES

v7.0.0 (2020-10-12)

BUG FIXES

DOCUMENTATION

DEPENDENCIES

v7.0.0-rc.4 (2020-10-09)

v7.0.0-rc.3 (2020-10-06)

v7.0.0-rc.2 (2020-10-02)

v7.0.0-rc.1 (2020-10-02)

v7.0.0-rc.0 (2020-10-01)

v7.0.0-beta.13 (2020-09-29)

v7.0.0-beta.12 (2020-09-22)

v7.0.0-beta.11 (2020-09-16)

v7.0.0-beta.10 (2020-09-08)

v7.0.0-beta.9 (2020-09-04)

v7.0.0-beta.8 (2020-09-01)

v7.0.0-beta.7 (2020-08-25)

v7.0.0-beta.6 (2020-08-21)

v7.0.0-beta.5 (2020-08-18)

v7.0.0-beta.4 (2020-08-11)

Replace some environment variables that were excluded. This implements the amendment to RFC0021.

v7.0.0-beta.3 (2020-08-10)

Bring back support for npm audit --production, fix a minor npm version annoyance, and track down a very serious issue where a project could be blown away when it matches a meta-dep in the tree.

v7.0.0-beta.2 (2020-08-07)

New notification style for updates, and a working doctor.

v7.0.0-beta.1 (2020-08-05)

Fix some issues found in the beta pubish process, and initial attempts to use npm v7 with citgm.

v7.0.0-beta.0 (2020-08-04)

Major refactoring and overhaul of, well, pretty much everything. Almost all dependencies have been updated, many have been removed, and the entire Installer class is moved into @npmcli/arborist.

Some High-level Changes and Improvements

On the "Breaking" in "Breaking Changes"

The Semantic Versioning specification precisely defines what constitutes a "breaking" change. In a nutshell, it's any change that causes a you to change your code in order to start using our code. We hasten to point this out, because a "breaking change" does not mean that something about the update is "broken", necessarily.

We're sure that some things likely are broken in this beta, because beta software, and a healthy pessimism about things. But nothing is "broken" on purpose here, and if you find a bug, we'd love for you to let us know.

Known Issues, and What's Missing From This Beta (Why Not GA?)

It's beta software!

Tests

We have not yet gotten to 100% test coverage of the npm CLI codebase. As such, there are almost certainly bugs lying in wait. We do have 100% test coverage of most of the commands, and all recently-updated dependencies in the npm stack, so it's certainly more well-tested than any version of npm before.

Docs

The documentation is incorrect and out of date in most places. Prior to a GA release, we'll be going through all of our documentation with a fine-toothed comb to minimize the lies that it tells.

Error Messaging

There are a few cases where this release will just say something failed, and not give you as much help as we'd like. We know, and we'll fix that prior to the GA 7.0.0 release.

In particular, if you install a project that has conflicting peerDependencies in the tree, it'll just say "Unable to resolve package tree". Prior to GA release, it'll tell you how to fix it. (For the time being, just run it again with --legacy-peer-deps, and that'll make it operate like npm v6.)

Audit Issue

There is a known performance issue in some cases that we've identified where npm audit can spin wildly out of control like a dancer gripped by a fever, heating up your laptop with fires of passion and CPU work. This happens when a vulnerability is in a tree with a lot of cross-linked dependencies that all depend on one another.

We have a fix for it, but if you run into this issue, you can run with --no-audit to tell npm to chill out a little bit.

That's about it! It's ready to use, and you should try it out.

Now on to the list of BREAKING CHANGES!

Programmatic Usage

All Registry Interactions

The following affect all commands that contact the npm registry.

All Lifecycle Scripts

The environment for lifecycle scripts (eg, build scripts, npm test, etc.) has changed.

npx

The npx binary was rewritten in npm v7, and the standalone npx package deprecated when v7.0.0 hits GA. npx uses the new npm exec command instead of a separate argument parser and install process, with some affordances to maintain backwards compatibility with the arguments it accepted in previous versions.

This resulted in some shifts in its functionality:

We do intend to continue supporting the npx that npm ships; just not the npm install -g npx library that is out in the wild today.

Files On Disk

Dependency Resolution

These changes affect install, ci, install-test, install-ci-test, update, prune, dedupe, uninstall, link, and audit fix.

Workspaces

npm update

npm outdated

npm adduser, npm login

npm audit

npm dedupe

npm fund

npm ls

npm pack, npm publish

npm rebuild

npm build, npm unbuild

npm test

Credits

Huge thanks to the people who wrote code for this update, as well as our group of dedicated Open RFC call participants. Your participation has contributed immeasurably to the quality and design of npm.