npm: v9.0.0-pre.6 Release

Release date:
October 19, 2022
Previous version:
v9.0.0-pre.5 (released October 13, 2022)
Magnitude:
2,262 Diff Delta
Contributors:
6 total committers
Data confidence:
Commits:

Top Contributors in v9.0.0-pre.6

nlf
wraithgar
lukekarrys
github-actions[bot]
fritzy
gennadiygashev

Directory Browser for v9.0.0-pre.6

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

9.0.0-pre.6 (2022-10-19)

⚠️ BREAKING CHANGES

  • npm now outputs some json errors on stdout. Previously npm would output all json formatted errors on stderr, making it difficult to parse as the stderr stream usually has logs already written to it. In the future, npm will differentiate between errors and crashes. Errors, such as E404 and ERESOLVE, will be handled and will continue to be output on stdout. In the case of a crash, npm will log the error as usual but will not attempt to display it as json, even in --json mode. Moving a case from the category of an error to a crash will not be considered a breaking change. For more information see npm/rfcs#482.
  • npm config set will no longer accept deprecated or invalid config options.
  • timing and loglevel changes
    • timing has been removed as a value for --loglevel
    • --timing will show timing information regardless of --loglevel, except when --silent
  • deprecate boolean install flags in favor of --install-strategy
    • deprecate --global-style, --global now sets --install-strategy=shallow
    • deprecate --legacy-bundling, now sets --install-strategy=nested
  • npm will no longer attempt to modify ownership of files it creates
  • this package no longer attempts to change file ownership automatically
  • this package no longer attempts to change file ownership automatically

Features

  • d3543e9 output json formatted errors on stdout (#5716) (@lukekarrys)
  • be642c6 refuse to set deprecated/invalid config (#5719) (@wraithgar)
  • 332914b separate configs for --timing and --loglevel (@lukekarrys)
  • f653785 deprecated key, cert config options and updated registry scoped auth docs (@fritzy)
  • de2d33f add --install-strategy=hoisted|nested|shallow, deprecate --global-style, --legacy-bundling (#5709) (@fritzy)
  • 58065bc #5704 do not alter file ownership (@nlf)
  • 475e9b6 #5703 do not alter file ownership (@nlf)

Bug Fixes

  • 6ffa5b7 npm hook ls duplicates hook name prefixes (#5295) (@gennadiygashev)
  • 1afe5ba account for new npm-package-arg behavior (@wraithgar)
  • 353b5bb #5710 remove chownr and mkdirp-infer-owner (@nlf)

Documentation

  • 9e74d3e update supported engines in readme (#5725) (@lukekarrys)

Dependencies