This repository was archived by the owner on Jun 4, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=5->>=6.9.0Release Notes
npm/cli
v6.9.0Compare Source
FEATURES
2ba3a0f67#90
Time traveling installs using the
--beforeflag.(@zkat)
b7b54f2d1#3
Add support for package aliases. This allows packages to be installed under a
different directory than the package name listed in
package.json, and adds anew dependency type to allow this to be done for registry dependencies.
(@zkat)
684bccf06#146
Always save
package-lock.jsonwhen using--package-lock-only.(@aeschright)
b8b8afd40#139
Make empty-string run-scripts run successfully as a no-op.
(@vlasy)
8047b19b1npm.community#3784
Match git semver ranges when flattening the tree.
(@larsgw)
e135c2bb3npm.community#1725
Re-enable updating local packages.
(@larsgw)
BUGFIXES
cf09fbaed#153
Set modified to undefined in
npm viewwhentimeis not available. Thisfixes a bug where
npm viewwould crash on certain third-party registries.(@simonua)
774fc26ee#154
Print out tar version in
install.shonly when the flag is supported not allthe tar implementations support --version flag. This allows the install script
to work in OpenBSD, for example.
(@agudulin)
863baff11#158
Fix typo in error message for
npm stars.(@phihag)
a805a95adnpm.community#4227
Strip version info from pkg on E404. This improves the error messaging format.
(@larsgw)
DOCS
5d7633833#160
Add
npm addas 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
ee6b6746bzkat/make-fetch-happen#29
agent-base@4.2.1(@TooTallNate)
2ce23baf5lock-verify@2.1.0:Adds support for package aliases
(@zkat)
baaedbc6epacote@9.5.0:Adds opts.before support
(@zkat)
57e771a03#164
licensee@6.1.0(@kemitchell)
2b78288d4add core to default inclusion tests in pack
([@Kat Marchán](https://github.com/Kat Marchán))
9b8b6513fnpm.community#5382
npm-packlist@1.4.1: Fixes bug wherecore/directories were being suddenly excluded.(@zkat)
v6.8.0Compare Source
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
550bf703aAdd @types to ignore list to fix git clean -fd.
(@zkat)
cdb059293#144
Fix common.npm callback arguments.
(@larsgw)
25573e9b9npm.community#4770
Show installed but unmet peer deps.
(@larsgw)
ce2c4bd1a#149
Use figgy-config to make sure extra opts are there.
(@zkat)
3c22d1a35npm.community#5101
Fix
ls-collaboratorsaccess error for non-scoped case.(@zkat)
d5137091dnpm.community#754
Fix issue with sub-folder local references.
(@iarna)
(@jhecking)
DEPENDENCY BUMPS
d72141080npm-registry-couchapp@2.7.1(@zkat)
671cad1b1npm-registry-fetch@3.9.0:Make sure publishing with legacy username:password
_authworks again.(@zkat)
95ca1aef4pacote@9.4.1(@aeschright)
322fef403normalize-package-data@2.5.0(@aeschright)
32d34c0danpm-packlist@1.3.0(@aeschright)
338571cf0read-package-tree@5.2.2(@zkat)
MISC
89b23a5f7#120
Use
constin 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.0Compare Source
Hey y'all! This is a quick hotfix release that includes some important fixes to
npm@6.6.0related to the large rewrite/refactor. We're tagging it as a featurerelease because the changes involve some minor new features, and semver is
semver, but there's nothing major here.
NEW FEATURES
50463f58bImprove usage errors to
npm orgcommands and add optional filtering tonpm org lssubcommand.(@zkat)
BUGFIXES
4027070b0Fix default usage printout for
npm orgso you actually see how it's supposedto be used.
(@zkat)
cfea6ea5bfix default usage message for npm hook
(@zkat)
DOCS
e959e1421Add manpage for
npm orgcommand.(@zkat)
DEPENDENCY BUMPS
8543fc357pacote@9.4.0: Fall back to "fullfat" packuments on ETARGET errors. This willmake 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)
75475043bnpm.community#4752
libnpmpublish@1.1.1: Fixes auth error for username/password legacy authentication.(@sreeramjayan)
0af8c00acnpm.community#4746
libcipm@3.0.3: Fixes issue with "cannot run in wd" errors for run-scripts.(@zkat)
5a7962e46write-file-atomic@2.4.2:Fixes issues with leaking
signal-exitinstances and file descriptors.(@iarna)
v6.6.0Compare Source
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-clientin favor of theshiny, new,
window.fetch-likenpm-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:
--otpis no longer required fordist-tag,access, et al.libnpmfor 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.npm orgcommand for managing users in your org.pacotenow consumes npm-style configurations, instead of its own naming for various config vars. This will make it easier to load npm configs usinglibnpm.configand 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:
c5af34c05npm-registry-client@REMOVED
(@zkat)
4cca9cb90ad67461dc77625f9e26e922aefb584613ea864de4ebf06cd87d1a92786834c0514558e09dec07ebe308474191345aff0e02846ddcc448971ba1b999156e081ab2155306b37a66542d2af0777ae0b4c6880ff72350b46ed94330390a069e7db24ed5fdcec9fcc14f8a56fa39e41d19e18f125ff95511c3b226ff3c0a7b06b08fcb3f0fc8135d97aae936f22c#2
Move rest of commands to
npm-registry-fetchand usefiggy-puddingfor configs.(@zkat)
NEW FEATURES
02c837e01#106
Make
npm dist-tagsthe same asnpm dist-tag ls.(@isaacs)
1065a7809#65
Add support for
IBM i.(@dmabupt)
a22e6f5fc#131
Update profile to support new npm-profile API.
(@zkat)
BUGFIXES
890a74458npm.community#3278
Fix support for passing git binary path config with
--git.(@larsgw)
90e55a143npm.community#2713
Check for
npm.config's existence inerror-handler.jsto prevent weirderrors when failures happen before config object is loaded.
(@BeniCheni)
134207174npm.community#2569
Fix checking for optional dependencies.
(@larsgw)
7a2f6b05dnpm.community#4172
Remove tink experiments.
(@larsgw)
c5b6056b6#123
Handle git branch references correctly.
(@johanneswuerbach)
f58b43ef2npm.community#3983
Report any errors above 400 as potentially not supporting audit.
(@zkat)
a5c9e6f35#124
Set default homepage to an empty string.
(@anchnk)
5d076351dnpm.community#4054
Fix npm-prefix description.
(@larsgw)
DOCS
31a7274b7#71
Fix typo in npm-token documentation.
(@GeorgeTaveras1231)
2401b7592Correct docs for fake-registry interface.
(@iarna)
DEPENDENCIES
9cefcdc1dnpm-registry-fetch@3.8.0(@zkat)
1c769c9b3pacote@9.1.0(@zkat)
f3bc5539bfiggy-pudding@3.5.1(@zkat)
bf7199d3cnpm-profile@4.0.1(@zkat)
118c50496semver@5.5.1(@isaacs)
eab4df925libcipm@3.0.2(@zkat)
b86e51573libnpm@1.4.0(@zkat)
56fffbff2get-stream@4.1.0(@zkat)
df972e948npm-profile@REMOVED
(@zkat)
32c73bf0elibnpm@2.0.1(@zkat)
569491b80licensee@5.0.0(@zkat)
a3ba0ccf1move rimraf to prod deps
(@zkat)
f63a0d6cfspdx-license-ids@3.0.3:Ref: #121
(@zkat)
f350e714faproba@2.0.0(@aeschright)
a67e4d8b2byte-size@5.0.1(@aeschright)
8bea4efa3cacache@11.3.2(@aeschright)
9d4776836chownr@1.1.1(@aeschright)
70da139e9ci-info@2.0.0(@aeschright)
bcdeddcc3cli-table3@​0.5.1(@aeschright)
63aab82c7is-cidr@3.0.0(@aeschright)
d522bd90cJSONStream@1.3.5(@aeschright)
2a59bfc79libnpmhook@5.0.2(@aeschright)
66d60e394marked@0.6.0(@aeschright)
8213def9anpm-packlist@1.2.0(@aeschright)
e4ffc6a2bunique-filename@1.1.1(@aeschright)
09a5c2fabsemver@5.6.0(@aeschright)
740e79e17rimraf@2.6.3(@aeschright)
455476c8drequire-inject@1.4.4(@aeschright)
3f40251c5npm-pick-manifest@2.2.3(@aeschright)
4ffa8a8e9query-string@6.2.0(@aeschright)
a0a0ca9ecpacote@9.3.0(@aeschright)
5777ea8adreadable-stream@3.1.1(@aeschright)
887e94386lru-cache@4.1.5(@aeschright)
41f15524cUpdating semver docs.
(@aeschright)
fb3bbb72dnpm-audit-report@1.3.2:(@melkikh)
TESTING
f1edffba9Modernize maketest script.
(@iarna)
ae263473dmaketest: Use promise based example common.npm call.
(@iarna)
d9970da5emaketest: Use newEnv for env production.
(@iarna)
MISCELLANEOUS
c665f35aa#119
Replace var with const/let in lib/repo.js.
(@watilde)
46639ba9fUpdate package-lock.json for https tarball URLs
(@aeschright)
v6.5.0Compare Source
NEW FEATURES
fc1a8d185Backronym
npm citonpm clean-install.(@zkat)
4be51a9cc#81
Adds 'Homepage' to outdated --long output.
(@jbottigliero)
BUGFIXES
89652cb9bnpm.community#1661
Fix sign-git-commit options. They were previously totally wrong.
(@zkat)
414f2d1a1npm.community#1742
Set lowercase headers for npm audit requests.
(@maartenba)
a34246baf#75
Fix
npm edithandling of scoped packages.(@larsgw)
d3e8a7c72npm.community#2303
Make summary output for
npm cigo tostdout, notstderr.(@alopezsanchez)
71d8fb4a9npm.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 just
master.(@zckrs)
15da82690#72
bash_completion.ddir is sometimes found in/etcnot/usr/local.(@RobertKielty)
8a6ecc793#74
Update OTP documentation for
dist-tag addto clarify--otpis needed rightnow.
(@scotttrinh)
dcc03ec85#82
Note that
prepareruns 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 to
deprecatedoc.(@neverett)
61dbbb7c3Fix semver docs after version update.
(@zkat)
4acd45a3d#78
Correct spelling across various docs.
(@hugovk)
DEPENDENCIES
4f761283efiggy-pudding@3.5.1(@zkat)
3706db0bcnpm.community#1764
ssri@6.0.1(@zkat)
83c2b117dbluebird@3.5.2(@petkaantonov)
2702f46bdci-info@1.5.1(@watson)
4db6c3898config-chain@1.1.1:2(@dawsbot)
70bee4f69glob@7.1.3(@isaacs)
e469fd6beopener@1.5.1:Fix browser opening under Windows Subsystem for Linux (WSL).
(@thijsputman)
03840dcedsemver@5.5.1(@iarna)
161dc0b41bluebird@3.5.3(@petkaantonov)
bb6f94395graceful-fs@4.1.1:5(@isaacs)
43b1f4c91tar@4.4.8(@isaacs)
ab62afcc4npm-packlist@1.1.1:2(@isaacs)
027f06be3ci-info@1.6.0(@watson)
MISCELLANEOUS
27217dae8#70
Automatically audit dependency licenses for npm itself.
(@kemitchell)
v6.4.1Compare Source
BUGFIXES
4bd40f543#42
Prevent blowing up on malformed responses from the
npm auditendpoint, suchas with third-party registries.
(@framp)
0e576f0aa#46
Fix
NO_PROXYsupport by renaming npm-side config to--noproxy. Theenvironment variable should still work.
(@SneakyFish5)
d8e811d6a#33
Disable
update-notifierchecks when a CI environment is detected.(@Sibiraj-S)
1bc5b8cea#47
Fix issue where
postpackscripts would break ifpackwas used with--dry-run.(@larsgw)
DEPENDENCY BUMPS
4c57316d5figgy-pudding@3.4.1(@zkat)
85f4d7905cacache@11.2.0(@zkat)
d20ac242anpm-packlist@1.1.11:No real changes in npm-packlist, but npm-bundled included a
circular dependency fix, as well as adding a proper LICENSE file.
(@isaacs)
e8d5f4418npm.community#632
libcipm@2.0.2:Fixes issue where
npm ciwasn't running thepreparelifecycle script wheninstalling git dependencies
(@edahlseng)
a5e6f78e9JSONStream@1.3.4:Fixes memory leak problem when streaming large files (like legacy npm search).
(@daern91)
3b940331dnpm.community#1042
npm-lifecycle@2.1.0:Fixes issue for Windows user where multiple
Path/PATHvariables were beingadded to the environment and breaking things in all sorts of fun and
interesting ways.
(@JimiC)
d612d2ce8npm-registry-client@8.6.0(@iarna)
1f6ba1cb1opener@1.5.0(@domenic)
37b8f405frequest@2.88.0(@mikeal)
bb91a2a14tacks@1.2.7(@iarna)
30bc9900aci-info@1.4.0:Adds support for two more CI services
(@watson)
1d2fa4dddmarked@0.5.0(@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-runininstallandpackdocs.(@reconbot)
95031b90c#48
Update republish time and lightly reorganize republish info.
(@neverett)
767699b68#53
Correct
npm@6.4.0release date in changelog.(@charmander)
3fea3166e#55
Align command descriptions in help text.
(@erik)
v6.4.0Compare Source
NEW FEATURES
6e9f04b0bnpm/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)
84bfd23e7npm/cli#35
Stop filtering out non-IPv4 addresses from
local-addrs, making npm actuallyuse IPv6 addresses when it must.
(@valentin2105)
792c8c709npm/cli#31
configurable audit level for non-zero exit
npm auditcurrently exits with exit code 1 if any vulnerabilities are found of any level.Add a flag of
--audit-leveltonpm auditto allow it to pass if only vulnerabilities below a certain level are found.Example:
npm audit --audit-level=highwill exit with 0 if only low or moderate level vulns are detected.(@lennym)
BUGFIXES
d81146181npm/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
node-gyp@3.8.0, an awkwardversion conflict that was preventing
requestfrom begin flattened wasresolved. This means two things:
npm auditnow shows no vulnerabilities for npm itself!Thanks, @rvagg!
866d776c2request@2.87.0(@simov)
f861c2b57node-gyp@3.8.0(@rvagg)
32e6947c6npm/cli#39
colors@1.1.2:REVERT REVERT, newer versions of this library are broken and print ansi
codes even when disabled.
(@iarna)
beb96b92clibcipm@2.0.1(@zkat)
348fc91advalidate-npm-package-license@3.0.4: Fixes errors with empty or string-onlylicense fields.
(@Gudahtt)
e57d34575iferr@1.0.2(@shesek)
46f1c6ad4tar@4.4.6(@isaacs)
50df1bf69hosted-git-info@2.7.1(@iarna)
(@Erveon)
(@huochunpeng)
DOCUMENTATION
af98e76ednpm/cli#34
Remove
npm publishfrom list of commands not affected by--dry-run.(@joebowbeer)
e2b0f0921npm/cli#36
Tweak formatting in repository field examples.
(@noahbenham)
e2346e770npm/cli#14
Used
process.envexamples to make accessing certainnpm run-scriptsenvironment variables more clear.
(@mwarger)
v6.3.0Compare Source
This is basically the same as the prerelease, but two dependencies have been
bumped due to bugs that had been around for a while.
0a22be42efiggy-pudding@3.2.0(@zkat)
0096f6997cacache@11.1.0(@zkat)
v6.2.0Compare Source
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
npm@6.2.0includes a couple of features that weren'tquite ready on time but that we'd still like to include. Enjoy!
FEATURES
244b18380#20554
Add support for tab-separated output for
npm auditdata with the--parseableflag.(@luislobo)
7984206e2#12697
Add new
sign-git-commitconfig to control whether the git commit itself getssigned, or just the tag (which is the default).
(@tribou)
FIXES
4c32413a5#19418
Do not use
SETto fetch the env in git-bash or Cygwin.(@gucong3000)
DEPENDENCY BUMPS
d9b2712a6request@2.81.0: Downgraded to allow better deduplication. This doesintroduce a bunch of
hoek-related audit reports, but they don't affect npmitself so we consider it safe. We'll upgrade
requestagain oncenode-gypunpins it.
(@simov)
2ac48f863node-gyp@3.7.0(@MylesBorins)
8dc6d7640cli-table3@​0.5.0:cli-table2is unmaintained and requiredlodash. Withthis dependency bump, we've removed
lodashfrom our tree, which cut backtarball size by another 300kb.
(@Turbo87)
90c759feenpm-audit-report@1.3.1(@zkat)
4231a0a1eAdd
cli-table3to bundleDeps.(@iarna)
322d9c2f1Make
standardhappy.(@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)
f0a372b07Replace references to the old repo or issue tracker. We're at npm/cli now!
(@zkat)
v6.1.0Compare Source
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.171f3182fnode-tar#180
npm.community#35
pacote@8.1.5: Fix write-after-end errors.(@zkat)
DETECT CHANGES IN GIT SPECIFIERS
0e1726c03We 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
442d2484f2f0c88351631d30a34When 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_modulesfolder 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 cisummary report.(@legodude17)
98ffe4adbNode.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
3f2e306b8Using
npm audit fix, replace some transitive dependencies with securityissues with versions that don't have any.
(@iarna)
1d07134e0tar@4.4.1:Dropping to 4.4.1 from 4.4.2 due to npm/node-tar#183
(@zkat)
v6.0.1Compare Source
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.
3dcc240dbTimeout 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.
ed1aebf55Allow node@11, when it comes.
(@iarna)
v6.0.0Compare Source
Hey y'all! Here's another
npm@6release -- withnode@10around the corner,this might well be the last prerelease before we tag
6.0.0! There's two majorfeatures included with this release, along with a few miscellaneous fixes and
changes.
EXTENDED
npm initSCAFFOLDINGThanks to the wonderful efforts of @jdalton of
lodash fame,
npm initcan now be used to invoke custom scaffolding tools!You can now do things like
npm init react-appornpm init esmto scaffold annpm package by running
create-react-appandcreate-esm, respectively. Thisalso adds an
npm createalias, to correspond to Yarn'syarn createfeature,which inspired this.
008a83642ed81d1426833046e45#20303
Add an
npm initfeature that calls out tonpxwhen invoked with positionalarguments. (@jdalton)
DEPENDENCY AUDITING
This version of npm adds a new command,
npm audit, which will run a securityaudit 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 fornpm auditonline. You
can disable this altogether by doing
npm config set audit false, but will nolonger benefit from the service.
f4bc648ea#20389
npm-registry-fetch@1.1.0(@iarna)
594d16987#20389
npm-audit-report@1.0.5(@iarna)
8c77dde741d8ac2492552ff6d6409c734803#20389
Add new
npm auditcommand.(@iarna)
be393a290#20389
Temporarily suppress git metadata till there's an opt-in.
(@iarna)
8e713344f#20389
Document the new command.
(@iarna)
Default audit to off when running the np
Renovate configuration
📅 Schedule: "before 3am on Monday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.