t4
t4 copied to clipboard
Update npm to v6
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
npm (source) | engines | major | >=5 -> >=6.9.0 |
Release Notes
npm/cli
v6.9.0
FEATURES
-
2ba3a0f67
#90 Time traveling installs using the--before
flag. (@zkat) -
b7b54f2d1
#3 Add support for package aliases. This allows packages to be installed under a different directory than the package name listed inpackage.json
, and adds a new dependency type to allow this to be done for registry dependencies. (@zkat) -
684bccf06
#146 Always savepackage-lock.json
when using--package-lock-only
. (@aeschright) -
b8b8afd40
#139 Make empty-string run-scripts run successfully as a no-op. (@vlasy) -
8047b19b1
npm.community#3784 Match git semver ranges when flattening the tree. (@larsgw) -
e135c2bb3
npm.community#1725 Re-enable updating local packages. (@larsgw)
BUGFIXES
-
cf09fbaed
#153 Set modified to undefined innpm view
whentime
is not available. This fixes a bug wherenpm view
would crash on certain third-party registries. (@simonua) -
774fc26ee
#154 Print out tar version ininstall.sh
only when the flag is supported not all the tar implementations support --version flag. This allows the install script to work in OpenBSD, for example. (@agudulin) -
863baff11
#158 Fix typo in error message fornpm stars
. (@phihag) -
a805a95ad
npm.community#4227 Strip version info from pkg on E404. This improves the error messaging format. (@larsgw)
DOCS
-
5d7633833
#160 Addnpm add
as alias to npm install in docs. (@ahasall) -
489c2211c
#162 Fix link to RFC #10 in the changelog. (@mansona) -
433020ead
#135 Describe exit codes in npm-audit docs. (@emilis-tm)
DEPENDENCIES
-
ee6b6746b
zkat/make-fetch-happen#29[email protected]
(@TooTallNate) -
2ce23baf5
[email protected]
: Adds support for package aliases (@zkat) -
baaedbc6e
[email protected]
: Adds opts.before support (@zkat) -
57e771a03
#164[email protected]
(@kemitchell) -
2b78288d4
add core to default inclusion tests in pack ([@Kat Marchán](https://github.com/Kat Marchán)) -
9b8b6513f
npm.community#5382[email protected]
: Fixes bug wherecore/
directories were being suddenly excluded. (@zkat)
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
-
3663cdef2
#140 Update package.json docs to include repository.directory details. (@greysteil)
BUGFIXES
-
550bf703a
Add @types to ignore list to fix git clean -fd. (@zkat) -
cdb059293
#144 Fix common.npm callback arguments. (@larsgw) -
25573e9b9
npm.community#4770 Show installed but unmet peer deps. (@larsgw) -
ce2c4bd1a
#149 Use figgy-config to make sure extra opts are there. (@zkat) -
3c22d1a35
npm.community#5101 Fixls-collaborators
access error for non-scoped case. (@zkat) -
d5137091d
npm.community#754 Fix issue with sub-folder local references. (@iarna) (@jhecking)
DEPENDENCY BUMPS
-
d72141080
[email protected]
(@zkat) -
671cad1b1
[email protected]
: Make sure publishing with legacy username:password_auth
works again. (@zkat) -
95ca1aef4
[email protected]
(@aeschright) -
322fef403
[email protected]
(@aeschright) -
32d34c0da
[email protected]
(@aeschright) -
338571cf0
[email protected]
(@zkat)
MISC
-
89b23a5f7
#120 Useconst
in lib/fetch-package-metadata.md. (@watilde) -
4970d553c
#126 Replace ronn with marked-man in.npmignore
. (@watilde) -
d9b6090dc
#138 Reduce work to test if executable ends with a 'g'. (@elidoran) (@larsgw)
v6.7.0
Hey y'all! This is a quick hotfix release that includes some important fixes to
[email protected]
related to the large rewrite/refactor. We're tagging it as a feature
release because the changes involve some minor new features, and semver is
semver, but there's nothing major here.
NEW FEATURES
-
50463f58b
Improve usage errors tonpm org
commands and add optional filtering tonpm org ls
subcommand. (@zkat)
BUGFIXES
-
4027070b0
Fix default usage printout fornpm org
so you actually see how it's supposed to be used. (@zkat) -
cfea6ea5b
fix default usage message for npm hook (@zkat)
DOCS
DEPENDENCY BUMPS
-
8543fc357
[email protected]
: Fall back to "fullfat" packuments on ETARGET errors. This will make it so that, when a package is published but the corgi follower hasn't caught up, users can still install a freshly-published package. (@zkat) -
75475043b
npm.community#4752[email protected]
: Fixes auth error for username/password legacy authentication. (@sreeramjayan) -
0af8c00ac
npm.community#4746[email protected]
: Fixes issue with "cannot run in wd" errors for run-scripts. (@zkat) -
5a7962e46
[email protected]
: Fixes issues with leakingsignal-exit
instances and file descriptors. (@iarna)
v6.6.0
REFACTORING OUT npm-REGISTRY-CLIENT
Today is an auspicious day! This release marks the end of a massive internal
refactor to npm that means we finally got rid of the legacy
npm-registry-client
in favor of the
shiny, new, window.fetch
-like
npm-registry-fetch
.
Now, the installer had already done most of this work with the release of
npm@5
, but it turns out every other command still used the legacy client.
This release updates all of those commands to use the new client, and while
we're at it, adds a few extra goodies:
- All OTP-requiring commands will now prompt.
--otp
is no longer required fordist-tag
,access
, et al. - We're starting to integrate a new config system which will eventually get extracted into a standalone package.
- We now use
libnpm
for the API functionality of a lot of our commands! That means you can install a library if you want to write your own tooling around them. - There's now an
npm org
command for managing users in your org. -
pacote
now consumes npm-style configurations, instead of its own naming for various config vars. This will make it easier to load npm configs usinglibnpm.config
and hand them directly topacote
.
There's too many commits to list all of them here, so check out the PR if you're curious about details:
-
c5af34c05
npm-registry-client@REMOVED (@zkat) -
4cca9cb90
ad67461dc
77625f9e2
6e922aefb
584613ea8
64de4ebf0
6cd87d1a9
2786834c0
514558e09
dec07ebe3
084741913
45aff0e02
846ddcc44
8971ba1b9
99156e081
ab2155306
b37a66542
d2af0777a
e0b4c6880
ff72350b4
6ed943303
90a069e7d
b24ed5fdc
ec9fcc14f
8a56fa39e
41d19e18f
125ff9551
1c3b226ff
3c0a7b06b
08fcb3f0f
c8135d97a
ae936f22c
#2 Move rest of commands tonpm-registry-fetch
and usefiggy-pudding
for configs. (@zkat)
NEW FEATURES
-
02c837e01
#106 Makenpm dist-tags
the same asnpm dist-tag ls
. (@isaacs) -
1065a7809
#65 Add support forIBM i
. (@dmabupt) -
a22e6f5fc
#131 Update profile to support new npm-profile API. (@zkat)
BUGFIXES
-
890a74458
npm.community#3278 Fix support for passing git binary path config with--git
. (@larsgw) -
90e55a143
npm.community#2713 Check fornpm.config
's existence inerror-handler.js
to prevent weird errors when failures happen before config object is loaded. (@BeniCheni) -
134207174
npm.community#2569 Fix checking for optional dependencies. (@larsgw) -
7a2f6b05d
npm.community#4172 Remove tink experiments. (@larsgw) -
c5b6056b6
#123 Handle git branch references correctly. (@johanneswuerbach) -
f58b43ef2
npm.community#3983 Report any errors above 400 as potentially not supporting audit. (@zkat) -
a5c9e6f35
#124 Set default homepage to an empty string. (@anchnk) -
5d076351d
npm.community#4054 Fix npm-prefix description. (@larsgw)
DOCS
-
31a7274b7
#71 Fix typo in npm-token documentation. (@GeorgeTaveras1231) -
2401b7592
Correct docs for fake-registry interface. (@iarna)
DEPENDENCIES
-
9cefcdc1d
[email protected]
(@zkat) -
1c769c9b3
[email protected]
(@zkat) -
f3bc5539b
[email protected]
(@zkat) -
bf7199d3c
[email protected]
(@zkat) -
118c50496
[email protected]
(@isaacs) -
eab4df925
[email protected]
(@zkat) -
b86e51573
[email protected]
(@zkat) -
56fffbff2
[email protected]
(@zkat) -
df972e948
npm-profile@REMOVED (@zkat) -
32c73bf0e
[email protected]
(@zkat) -
569491b80
[email protected]
(@zkat) -
a3ba0ccf1
move rimraf to prod deps (@zkat) -
f63a0d6cf
[email protected]
: Ref: #121 (@zkat) -
f350e714f
[email protected]
(@aeschright) -
a67e4d8b2
[email protected]
(@aeschright) -
8bea4efa3
[email protected]
(@aeschright) -
9d4776836
[email protected]
(@aeschright) -
70da139e9
[email protected]
(@aeschright) -
bcdeddcc3
cli-table3@​0.5.1
(@aeschright) -
63aab82c7
[email protected]
(@aeschright) -
d522bd90c
[email protected]
(@aeschright) -
2a59bfc79
[email protected]
(@aeschright) -
66d60e394
[email protected]
(@aeschright) -
8213def9a
[email protected]
(@aeschright) -
e4ffc6a2b
[email protected]
(@aeschright) -
09a5c2fab
[email protected]
(@aeschright) -
740e79e17
[email protected]
(@aeschright) -
455476c8d
[email protected]
(@aeschright) -
3f40251c5
[email protected]
(@aeschright) -
4ffa8a8e9
[email protected]
(@aeschright) -
a0a0ca9ec
[email protected]
(@aeschright) -
5777ea8ad
[email protected]
(@aeschright) -
887e94386
[email protected]
(@aeschright) -
41f15524c
Updating semver docs. (@aeschright) -
fb3bbb72d
[email protected]
: (@melkikh)
TESTING
-
f1edffba9
Modernize maketest script. (@iarna) -
ae263473d
maketest: Use promise based example common.npm call. (@iarna) -
d9970da5e
maketest: Use newEnv for env production. (@iarna)
MISCELLANEOUS
-
c665f35aa
#119 Replace var with const/let in lib/repo.js. (@watilde) -
46639ba9f
Update package-lock.json for https tarball URLs (@aeschright)
v6.5.0
NEW FEATURES
-
fc1a8d185
Backronymnpm ci
tonpm clean-install
. (@zkat) -
4be51a9cc
#81 Adds 'Homepage' to outdated --long output. (@jbottigliero)
BUGFIXES
-
89652cb9b
npm.community#1661 Fix sign-git-commit options. They were previously totally wrong. (@zkat) -
414f2d1a1
npm.community#1742 Set lowercase headers for npm audit requests. (@maartenba) -
a34246baf
#75 Fixnpm edit
handling of scoped packages. (@larsgw) -
d3e8a7c72
npm.community#2303 Make summary output fornpm ci
go tostdout
, notstderr
. (@alopezsanchez) -
71d8fb4a9
npm.community#1377 Close the file descriptor during publish if exiting upload via an error. This will prevent strange error messages when the upload fails and make sure cleanup happens correctly. (@macdja38)
DOCS UPDATES
-
b1a8729c8
#60 Mention --otp flag when prompting for OTP. (@bakkot) -
bcae4ea81
#64 Clarify that git dependencies use the default branch, not justmaster
. (@zckrs) -
15da82690
#72bash_completion.d
dir is sometimes found in/etc
not/usr/local
. (@RobertKielty) -
8a6ecc793
#74 Update OTP documentation fordist-tag add
to clarify--otp
is needed right now. (@scotttrinh) -
dcc03ec85
#82 Note thatprepare
runs when installing git dependencies. (@seishun) -
a91a470b7
#83 Specify that --dry-run isn't available in older versions of npm publish. (@kjin) -
1b2fabcce
#96 Fix inline code tag issue in docs. (@midare) -
6cc70cc19
#68 Add semver link and a note on empty string format todeprecate
doc. (@neverett) -
61dbbb7c3
Fix semver docs after version update. (@zkat) -
4acd45a3d
#78 Correct spelling across various docs. (@hugovk)
DEPENDENCIES
-
4f761283e
[email protected]
(@zkat) -
3706db0bc
npm.community#1764[email protected]
(@zkat) -
83c2b117d
[email protected]
(@petkaantonov) -
2702f46bd
[email protected]
(@watson) -
4db6c3898
[email protected]
:2 (@dawsbot) -
70bee4f69
[email protected]
(@isaacs) -
e469fd6be
[email protected]
: Fix browser opening under Windows Subsystem for Linux (WSL). (@thijsputman) -
03840dced
[email protected]
(@iarna) -
161dc0b41
[email protected]
(@petkaantonov) -
bb6f94395
[email protected]
:5 (@isaacs) -
43b1f4c91
[email protected]
(@isaacs) -
ab62afcc4
[email protected]
:2 (@isaacs) -
027f06be3
[email protected]
(@watson)
MISCELLANEOUS
-
27217dae8
#70 Automatically audit dependency licenses for npm itself. (@kemitchell)
v6.4.1
BUGFIXES
-
4bd40f543
#42 Prevent blowing up on malformed responses from thenpm audit
endpoint, such as with third-party registries. (@framp) -
0e576f0aa
#46 FixNO_PROXY
support by renaming npm-side config to--noproxy
. The environment variable should still work. (@SneakyFish5) -
d8e811d6a
#33 Disableupdate-notifier
checks when a CI environment is detected. (@Sibiraj-S) -
1bc5b8cea
#47 Fix issue wherepostpack
scripts would break ifpack
was used with--dry-run
. (@larsgw)
DEPENDENCY BUMPS
-
4c57316d5
[email protected]
(@zkat) -
85f4d7905
[email protected]
(@zkat) -
d20ac242a
[email protected]
: No real changes in npm-packlist, but npm-bundled included a circular dependency fix, as well as adding a proper LICENSE file. (@isaacs) -
e8d5f4418
npm.community#632[email protected]
: Fixes issue wherenpm ci
wasn't running theprepare
lifecycle script when installing git dependencies (@edahlseng) -
a5e6f78e9
[email protected]
: Fixes memory leak problem when streaming large files (like legacy npm search). (@daern91) -
3b940331d
npm.community#1042[email protected]
: Fixes issue for Windows user where multiplePath
/PATH
variables were being added to the environment and breaking things in all sorts of fun and interesting ways. (@JimiC) -
d612d2ce8
[email protected]
(@iarna) -
1f6ba1cb1
[email protected]
(@domenic) -
37b8f405f
[email protected]
(@mikeal) -
bb91a2a14
[email protected]
(@iarna) -
30bc9900a
[email protected]
: Adds support for two more CI services (@watson) -
1d2fa4ddd
[email protected]
(@joshbruce)
DOCUMENTATION
-
08ecde292
#54 Mention registry terms of use in manpage and registry docs and update language in README for it. (@kemitchell) -
de956405d
#41 Add documentation for--dry-run
ininstall
andpack
docs. (@reconbot) -
95031b90c
#48 Update republish time and lightly reorganize republish info. (@neverett) -
767699b68
#53 Correct[email protected]
release date in changelog. (@charmander) -
3fea3166e
#55 Align command descriptions in help text. (@erik)
v6.4.0
NEW FEATURES
-
6e9f04b0b
npm/cli#8 Search for authentication token defined by environment variables by preventing the translation layer from env variable to npm option from breaking:_authToken
. (@mkhl) -
84bfd23e7
npm/cli#35 Stop filtering out non-IPv4 addresses fromlocal-addrs
, making npm actually use IPv6 addresses when it must. (@valentin2105) -
792c8c709
npm/cli#31 configurable audit level for non-zero exitnpm audit
currently exits with exit code 1 if any vulnerabilities are found of any level. Add a flag of--audit-level
tonpm audit
to allow it to pass if only vulnerabilities below a certain level are found. Example:npm audit --audit-level=high
will exit with 0 if only low or moderate level vulns are detected. (@lennym)
BUGFIXES
-
d81146181
npm/cli#32 Don't check for updates to npm when we are updating npm itself. (@olore)
DEPENDENCY UPDATES
A very special dependency update event! Since the release of
[email protected]
, an awkward
version conflict that was preventing request
from begin flattened was
resolved. This means two things:
- We've cut down the npm tarball size by another 200kb, to 4.6MB
-
npm audit
now shows no vulnerabilities for npm itself!
Thanks, @rvagg!
-
866d776c2
[email protected]
(@simov) -
f861c2b57
[email protected]
(@rvagg) -
32e6947c6
npm/cli#39[email protected]
: REVERT REVERT, newer versions of this library are broken and print ansi codes even when disabled. (@iarna) -
beb96b92c
[email protected]
(@zkat) -
348fc91ad
[email protected]
: Fixes errors with empty or string-only license fields. (@Gudahtt) -
e57d34575
[email protected]
(@shesek) -
46f1c6ad4
[email protected]
(@isaacs) -
50df1bf69
[email protected]
(@iarna) (@Erveon) (@huochunpeng)
DOCUMENTATION
-
af98e76ed
npm/cli#34 Removenpm publish
from list of commands not affected by--dry-run
. (@joebowbeer) -
e2b0f0921
npm/cli#36 Tweak formatting in repository field examples. (@noahbenham) -
e2346e770
npm/cli#14 Usedprocess.env
examples to make accessing certainnpm run-scripts
environment variables more clear. (@mwarger)
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.
v6.2.0
In case you missed it, we moved!. We look forward to seeing future PRs landing in npm/cli in the future, and we'll be chatting with you all in npm.community. Go check it out!
This final release of [email protected]
includes a couple of features that weren't
quite ready on time but that we'd still like to include. Enjoy!
FEATURES
-
244b18380
#20554 Add support for tab-separated output fornpm audit
data with the--parseable
flag. (@luislobo) -
7984206e2
#12697 Add newsign-git-commit
config to control whether the git commit itself gets signed, or just the tag (which is the default). (@tribou)
FIXES
-
4c32413a5
#19418 Do not useSET
to fetch the env in git-bash or Cygwin. (@gucong3000)
DEPENDENCY BUMPS
-
d9b2712a6
[email protected]
: Downgraded to allow better deduplication. This does introduce a bunch ofhoek
-related audit reports, but they don't affect npm itself so we consider it safe. We'll upgraderequest
again oncenode-gyp
unpins it. (@simov) -
2ac48f863
[email protected]
(@MylesBorins) -
8dc6d7640
cli-table3@​0.5.0
:cli-table2
is unmaintained and requiredlodash
. With this dependency bump, we've removedlodash
from our tree, which cut back tarball size by another 300kb. (@Turbo87) -
90c759fee
[email protected]
(@zkat) -
4231a0a1e
Addcli-table3
to bundleDeps. (@iarna) -
322d9c2f1
Makestandard
happy. (@iarna)
DOCS
-
5724983ea
#21165 Fix some markdown formatting in npm-disputes.md. (@hchiam) -
738178315
#20920 Explicitly state that republishing an unpublished package requires a 72h waiting period. (@gmattie) -
f0a372b07
Replace references to the old repo or issue tracker. We're at npm/cli now! (@zkat)
v6.1.0
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
.
-
171f3182f
node-tar#180 npm.community#35[email protected]
: Fix write-after-end errors. (@zkat)
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 BUGS
-
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 anode_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 ofnpm 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)
DEPENDENCY UPDATES
-
3f2e306b8
Usingnpm audit fix
, replace some transitive dependencies with security issues with versions that don't have any. (@iarna) -
1d07134e0
[email protected]
: Dropping to 4.4.1 from 4.4.2 due to npm/node-tar#183 (@zkat)
v6.0.1
AUDIT SHOULDN'T WAIT FOREVER
This will likely be reduced further with the goal that the audit process shouldn't noticibly slow down your builds regardless of your network situation.
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.
v6.0.0
Hey y'all! Here's another npm@6
release -- with node@10
around the corner,
this might well be the last prerelease before we tag 6.0.0
! There's two major
features included with this release, along with a few miscellaneous fixes and
changes.
EXTENDED npm init
SCAFFOLDING
Thanks to the wonderful efforts of @jdalton of
lodash fame, npm init
can now be used to invoke custom scaffolding tools!
You can now do things like npm init react-app
or npm init esm
to scaffold an
npm package by running create-react-app
and create-esm
, respectively. This
also adds an npm create
alias, to correspond to Yarn's yarn create
feature,
which inspired this.
-
008a83642
ed81d1426
833046e45
#20303 Add annpm init
feature that calls out tonpx
when invoked with positional arguments. (@jdalton)
DEPENDENCY AUDITING
This version of npm adds a new command, npm audit
, which will run a security
audit of your project's dependency tree and notify you about any actions you may
need to take.
The registry-side services required for this command to work will be available on the main npm registry in the coming weeks. Until then, you won't get much out of trying to use this on the CLI.
As part of this change, the npm CLI now sends scrubbed and cryptographically
anonymized metadata about your dependency tree to your configured registry, to
allow notifying you about the existence of critical security flaws. For details
about how the CLI protects your privacy when it shares this metadata, see npm help audit
, or read the docs for npm audit
online. You
can disable this altogether by doing npm config set audit false
, but will no
longer benefit from the service.
-
f4bc648ea
#20389[email protected]
(@iarna) -
594d16987
#20389[email protected]
(@iarna) -
8c77dde74
1d8ac2492
552ff6d64
09c734803
#20389 Add newnpm audit
command. (@iarna) -
be393a290
#20389 Temporarily suppress git metadata till there's an opt-in. (@iarna) -
8e713344f
#20389 Document the new command. (@iarna) - #20389 Default audit to off when running the np
Renovate configuration
:date: Schedule: "before 3am on Monday" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!
".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.