Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update npm to the latest version 🚀 #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Apr 24, 2018

Version 6.0.0 of npm was just published.

Dependency npm
Current Version 5.8.0
Type dependency

The version 6.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of npm.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Commits

The new version differs by 121 commits.

  • 7e679fd 6.0.0
  • 73e50a7 test: prepublish-only: Use our own copy of npm
  • 82dfa54 6.0.0-next.2
  • 408a7ff update AUTHORS
  • 1b021d0 doc: update changelog for [email protected]
  • 9c1eb94 inflate-shrinkwrap: For git changelings use version as resolved
  • 2facb35 has-modern-meta: Correctly identify git changelings
  • e4ed976 install/deps: Let git deps w/ lock only match package.json
  • 552ff6d audit: Ensure we don't mutate the shrinkwrap
  • f2386e1 test: standard common-tap
  • 1d8ac24 test: JSON parse error message changed slightly
  • cd36a21 audit: Avoid config-meta's literal-only test
  • 09c7348 test: Default audit to off when testing
  • 8e71334 audit: Add docs
  • be393a2 audit: Temporarily suppress git metadata till there's an opt-in

There are 121 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request May 10, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented May 10, 2018

Version 6.0.1 just got published.

Update to this version instead 🚀

Release Notes v6.0.1

CTRL-C OUT DURING PACKAGE EXTRACTION AS MUCH AS YOU WANT!

SHRONKWRAPS AND LACKFILES

If a published modules had legacy npm-shrinkwrap.json we were saving ordinary registry dependencies (name@version) to your package-lock.json as https:// URLs instead of versions.

  • 89102c0d9 When saving the lock-file compute how the dependency is being required instead of using _resolved in the package.json. This fixes the bug that was converting registry dependencies into https:// dependencies. (@iarna)
  • 676f1239a When encountering a https:// URL in our lockfiles that point at our default registry, extract the version and use them as registry dependencies. This lets us heal package-lock.json files produced by 6.0.0 (@iarna)

AUDIT AUDIT EVERYWHERE

You can't use it quite yet, but we do have a few last moment patches to npm audit to make it even better when it is turned on!

  • b2e4f48f5 Make sure we hide stream errors on background audit submissions. Previously some classes of error could end up being displayed (harmlessly) during installs. (@iarna)
  • 1fe0c7fea Include session and scope in requests (as we do in other requests to the registry). (@iarna)
  • d04656461 Exit with non-zero status when vulnerabilities are found. So you can have npm audit as a test or prepublish step! (@iarna)
  • fcdbcbacc Verify lockfile integrity before running. You'd get an error either way, but this way it's faster and can give you more concrete instructions on how to fix it. (@iarna)
  • 2ac8edd42 Refuse to run in global mode. Audits require a lockfile and globals don't have one. Yet. (@iarna)
  • 3dcc240db Timeout audit requests eventually. (@iarna)

Looking forward

We're still a way from having node@11, so now's a good time to ensure we don't warn about being used with it.

DOCUMENTATION IMPROVEMENTS

DEPENDENCY UPDATES

Commits

The new version differs by 32 commits.

There are 32 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request May 24, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented May 24, 2018

Version 6.1.0 just got published.

Update to this version instead 🚀

Release Notes v6.1.0

Look at that! A feature bump! npm@6 was super-exciting not just because it used a bigger number than ever before, but also because it included a super shiny new command: npm audit. Well, we've kept working on it since then and have some really nice improvements for it. You can expect more of them, and the occasional fix, in the next few releases as more users start playing with it and we get more feedback about what y'all would like to see from something like this.

I, for one, have started running it (and the new subcommand...) in all my projects, and it's one of those things that I don't know how I ever functioned -without- it! This will make a world of difference to so many people as far as making the npm ecosystem a higher-quality, safer commons for all of us.

This is also a good time to remind y'all that we have a new RFCs repository, along with a new process for them. This repo is open to anyone's RFCs, and has already received some great ideas about where we can take the CLI (and, to a certain extent, the registry). It's a great place to get feedback, and completely replaces feature requests in the main repo, so we won't be accepting feature requests there at all anymore. Check it out if you have something you'd like to suggest, or if you want to keep track of what the future might look like!

NEW FEATURE: npm audit fix

This is the biggie with this release! npm audit fix does exactly what it says on the tin. It takes all the actionable reports from your npm audit and runs the installs automatically for you, so you don't have to try to do all that mechanical work yourself!

Note that by default, npm audit fix will stick to semver-compatible changes, so you should be able to safely run it on most projects and carry on with your day without having to track down what breaking changes were included. If you want your (toplevel) dependencies to accept semver-major bumps as well, you can use npm audit fix --force and it'll toss those in, as well. Since it's running the npm installer under the hood, it also supports --production and --only=dev flags, as well as things like --dry-run, --json, and --package-lock-only, if you want more control over what it does.

Give it a whirl and tell us what you think! See npm help audit for full docs!

  • 3800a660d Add npm audit fix subcommand to automatically fix detected vulnerabilities. (@zkat)

OTHER NEW audit FEATURES

  • 1854b1c7f #20568 Add support for npm audit --json to print the report in JSON format. (@finnp)
  • 85b86169d #20570 Include number of audited packages in npm install summary output. (@zkat)
  • 957cbe275 [email protected]: Overhaul audit install and detail output format. The new format is terser and fits more closely into the visual style of the CLI, while still providing you with the important bits of information you need. They also include a bit more detail on the footer about what actions you can take! (@zkat)

NEW FEATURE: GIT DEPS AND npm init <pkg>!

Another exciting change that came with npm@6 was the new npm init command that allows for community-authored generators. That means you can, for example, do npm init react-app and it'll one-off download, install, and run create-react-app for you, without requiring or keeping around any global installs. That is, it basically just calls out to npx.

The first version of this command only really supported registry dependencies, but now, @jdalton went ahead and extended this feature so you can use hosted git dependencies, and their shorthands.

So go ahead and do npm init facebook/create-react-app and it'll grab the package from the github repo now! Or you can use it with a private github repository to maintain your organizational scaffolding tools or whatnot. ✨

FIX WRITE AFTER END ERROR

First introduced in 5.8.0, this finally puts to bed errors where you would occasionally see Error: write after end at MiniPass.write.

DETECT CHANGES IN GIT SPECIFIERS

  • 0e1726c03 We can now determine if the commitid of a git dependency in the lockfile is derived from the specifier in the package.json and if it isn't we now trigger an update for it. (@iarna)

OTHER BUGFIXES

  • 442d2484f 2f0c88351 631d30a34 When requesting the update of a direct dependency that was also a transitive dependency to a version incompatible with the transitive requirement and you had a lock-file but did not have a node_modules folder then npm would fail to provide a new copy of the transitive dependency, resulting in an invalid lock-file that could not self heal. (@iarna)
  • be5dd0f49 #20715 Cleanup output of npm ci summary report. (@legodude17)
  • 98ffe4adb Node.js now has a test that scans for things that look like conflict markers in source code. This was triggering false positives on a fixture in a test of npm's ability to heal lockfiles with conflicts in them. (@iarna)
  • a41c0393c #20538 Make the new npm view work when the license field is an object instead of a string. (@zkat)
  • eb7522073 #20582 Add support for environments (like Docker) where the expected binary for opening external URLs is not available. (@bcoe)
  • 212266529 #20536 Fix a spurious colon in the new update notifier message and add support for the npm canary. (@zkat)
  • 5ee1384d0 #20597 Infer a version range when a package.json has a dist-tag instead of a version range in one of its dependency specs. Previously, this would cause dependencies to be flagged as invalid. (@zkat)
  • 4fa68ae41 #20585 Make sure scoped bundled deps are shown in the new publish preview, too. (@zkat)
  • 1f3ee6b7e [email protected]: Stop dropping size from metadata on npm cache verify. (@jfmartinez)
  • 91ef93691 #20513 Fix nested command aliases. (@mmermerkaya)
  • 18b2b3cf7 [email protected]: Make sure different versions of the Path env var on Windows all get node_modules/.bin prepended when running lifecycle scripts. (@laggingreflex)

DOCUMENTATION

DEPENDENCY BUMPS

Commits

The new version differs by 39 commits.

There are 39 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 14, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 14, 2018

Version 6.2.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 58 commits.

There are 58 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 2, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 2, 2018

Version 6.3.0 just got published.

Update to this version instead 🚀

Release Notes v6.3.0

This is basically the same as the prerelease, but two dependencies have been bumped due to bugs that had been around for a while.

Commits

The new version differs by 21 commits.

There are 21 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 15, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 15, 2018

Version 6.4.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 20 commits.

There are 20 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 29, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 29, 2018

Version 6.4.1 just got published.

Update to this version instead 🚀

Release Notes v6.4.1

BUGFIXES

  • 4bd40f543 #42 Prevent blowing up on malformed responses from the npm audit endpoint, such as with third-party registries. (@framp)
  • 0e576f0aa #46 Fix NO_PROXY support by renaming npm-side config to --noproxy. The environment variable should still work. (@SneakyFish5)
  • d8e811d6a #33 Disable update-notifier checks when a CI environment is detected. (@Sibiraj-S)
  • 1bc5b8cea #47 Fix issue where postpack scripts would break if pack was used with --dry-run. (@larsgw)

DEPENDENCY BUMPS

DOCUMENTATION

Commits

The new version differs by 33 commits.

There are 33 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Dec 10, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 10, 2018

  • The dependency npm was updated from 5.10.0 to 6.5.0.

Update to this version instead 🚀

Commits

The new version differs by 42 commits.

There are 42 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 17, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 17, 2019

  • The dependency npm was updated from 5.10.0 to 6.6.0.

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 23, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 23, 2019

  • The dependency npm was updated from 5.10.0 to 6.7.0.

Update to this version instead 🚀

Commits

The new version differs by 15 commits.

See the full diff

@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 14, 2019

  • The dependency npm was updated from 5.10.0 to 6.8.0.

Update to this version instead 🚀

Release Notes for v6.8.0

This release includes an implementation of RFC #10, documenting an optional field that can be used to specify the directory path for a package within a monorepo.

NEW FEATURES

BUGFIXES

DEPENDENCY BUMPS

MISC

Commits

The new version differs by 26 commits.

There are 26 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 14, 2019
greenkeeper bot added a commit that referenced this pull request Mar 6, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 6, 2019

  • The dependency npm was updated from 5.10.0 to 6.9.0.

Update to this version instead 🚀

Commits

The new version differs by 52 commits ahead by 52, behind by 26.

There are 52 commits in total.

See the full diff

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 27, 2019

  • The dependency npm was updated from 5.10.0 to 6.9.1.

Update to this version instead 🚀

Release Notes for v6.9.1

BUGFIXES

DEPENDENCIES

Commits

The new version differs by 12 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jun 27, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 27, 2019

  • The dependency npm was updated from 5.10.0 to 6.9.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jun 27, 2019
greenkeeper bot added a commit that referenced this pull request Jul 3, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 3, 2019

  • The dependency npm was updated from 5.10.0 to 6.10.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Oct 29, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 29, 2019

  • The dependency npm was updated from 5.10.0 to 6.12.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 5, 2019

  • The dependency npm was updated from 5.10.0 to 6.13.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 19, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 19, 2019

  • The dependency npm was updated from 5.10.0 to 6.13.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 3, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 3, 2019

  • The dependency npm was updated from 5.10.0 to 6.13.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 10, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 10, 2019

  • The dependency npm was updated from 5.10.0 to 6.13.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 11, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 11, 2019

  • The dependency npm was updated from 5.10.0 to 6.13.4.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jan 9, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 9, 2020

  • The dependency npm was updated from 5.10.0 to 6.13.5.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jan 9, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 9, 2020

  • The dependency npm was updated from 5.10.0 to 6.13.6.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 28, 2020

  • The dependency npm was updated from 5.10.0 to 6.13.7.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Jan 28, 2020
greenkeeper bot added a commit that referenced this pull request Feb 27, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 27, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Feb 28, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 28, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 3, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 3, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 19, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 19, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Mar 25, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 25, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.4.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request May 4, 2020
@greenkeeper
Copy link
Author

greenkeeper bot commented May 4, 2020

  • The dependency npm was updated from 5.10.0 to 6.14.5.

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants