326 KiB
v2.15.12 (2017-03-24):
This version brings the latest node-gyp to a soon to be released Node.js
4.x. The node-gyp update is paticularly important to Windows folks due to
its addition of Visual Studio 2017 support.
cdd60e733node-gyp@3.6.0: Improvements to how Python is located. New--devdirflag. Support for VS2017. Chakracore support on ARM. Remove path-array dependency, reducing size significantly. (@bnoordhuis) (@mhart) (@refack) (@kunalspathak)
v2.15.11 (2016-09-08):
On we go with our monthly release cadence! This week is pretty much all dependency updates and some documentation changes, as can be expected by now.
Note that npm@4 will almost certainly be released next month! It's not final
what we'll end up doing as far as LTS support goes, but the current thinking is
that, considering how small and resource-constrained our team is, support for
npm@2 will be reduced to essentially maintenance, so we can better focus on
npm@3 as the new LTS version (which will go into node@6), and npm@4 as our
next main development version.
DOCUMENTATION UPDATES
8f71038#13892 UpdateLICENSEfile to match license onmaster. (@rvagg)e81b4f1#12438 Remind folks to use#!/usr/bin/env nodein theirbinscripts to make files executable directly. (@mxstbr)f89789f#13655 Document line comment syntax for.npmrc. (@mdjasper)5cd3abc#13493 Document that the user config file can itself be configured either through the$NPM_CONFIG_USERCONFIGenvironment variable, or--userconfigcommand line flag. (@jasonkarns)dd71ca0#13911 Minor documentation reword and cleanup. (@othiym23)f7a320c#13682 Minor grammar fix in documentation fornpm scripts. (@Ajedi32)e5cb5e8#13717 Document thatnpm linkwill link the files specified in thebinfield ofpackage.jsonto{prefix}/bin/{name}. (@legodude17)
DEPENDENCY UPDATES
8bef026graceful-fs@4.1.6(@francescoinfante)9f73f4aglob@7.0.6(@isaacs)5391b7ewhich@1.2.1(@isaacs)43bfec8retry@0.10.0(@tim-kos)39305f1readable-stream@2.1.5(@calvinmetcalf)a5512faonce@1.4.0(@zkochan)06a208bnpm-registry-client@7.2.1:- npm/npm-registry-client#142 Fix
EventEmitterwarning spam from error handlers on socket. (@addaleax) - npm/npm-registry-client#131 Adds support for streaming request bodies. (@aredridel)
- Fixes #13656.
- Dependency updates.
- Documentation improvements. (@othiym23)
- npm/npm-registry-client#142 Fix
4f759beinherits@2.0.3(@isaacs)4258b76tap@7.1.1(@isaacs)
v2.15.10 (2016-08-11):
Hi all, today's our first release coming out of the new monthly release cadence. See below for details. We're all recovered from conferences now and raring to go! For LTS we see some bug fixes, documentation improvements and a host of dependency updates.
The most dramatic bug fix is probably the inclusion of scoped modules in
bundled dependencies. Prior to this release and
v3.10.7, npm had ignored
scoped modules found in bundleDependencies entirely.
NEW RELEASE CADENCE
Releasing npm has been, for the most part, a very prominent part of our weekly process process. As part of our efforts to find the most effective ways to allocate our team's resources, we decided last month that we would try and slow our releases down to a monthly cadence, and see if we found ourselves with as much extra time and attention as we expected to have. Process experiments are useful for finding more effective ways to do our work, and we're at least going to keep doing this for a whole quarter, and then measure how well it worked out. It's entirely likely that we'll switch back to a more frequent cadence, specially if we find that the value that weekly cadence was providing the community is not worth sacrificing for a bit of extra time. Does this affect you significantly? Let us know!
WINDOWS CORNER CASES
-
405c404#13023 Fixed a Windows issue with the cache where callbacks could be called more than once. (@zkat) -
bf348dc#13023 Fixed a Windows corner case with correct-mkdir where if SUDO_UID or SUDO_GID were set then we would try to chown things even though that can't work on Windows. (@zkat)
RACES IN THE CACHE
68f29f1#12669 Ignore ENOENT errors on chownr while adding packages to cache. This change works around problems with race conditions and local packages. (@julianduque)
BETTER GIT ENVIRONMENT WHITELISTING
DOCUMENTATION
363e381#13319 As Node.js 0.8 is no longer supported, remove mention of it from the README. (@watilde)e8fafa8#10167 Clarify in scope documentation that npm@2 is required for scoped packages. (@danpaz)
DEPENDENCIES
66ef279npm/fstream-npm#22fstream@1.1.1: Always include NOTICE files now. Fix inclusion of scoped modules as bundled dependencies. (@kemitchell) (@forivall)fe8385bglob@7.0.5: Update minimatch dep for security fix. See the minimatch update below for details. (@isaacs)51d49d2isaacs/node-graceful-fs#71graceful-fs@4.1.5:graceful-fshad a bug fix which fixes a problem (nodejs/node#7846) exposed by recent changes to Node.js. (@thefourtheye)5c8f39dminimatch@3.0.3: Handle extremely long and terrible patterns more gracefully. There were some magic numbers that assumed that every extglob pattern starts and ends with a specific number of characters in the regular expression. Since !(||) patterns are a little bit more complicated, this led to creating an invalid regular expression and throwing. (@isaacs)d681e16npm/npm-user-validate#9npm-user-validate@0.1.5: Use correct, lower username length limit. (@aredridel)f918994request@2.74.0: Updaterequestdependencytough-cookieto2.3.0to to address https://nodesecurity.io/advisories/130. Versions 0.9.7 through 2.2.2 contain a vulnerable regular expression that, under certain conditions involving long strings of semicolons in the "Set-Cookie" header, causes the event loop to block for excessive amounts of time. (@stash-sfdc)5540cc4isaacs/rimraf#111rimraf@2.5.4: Clarify assertions: cb is required, options are not. (@isaacs)6357928spdx-license-ids@1.2.2: New licenses synced from spdx.org. (@shinnn)
v2.15.9 (2016-06-30):
What's this? An LTS release? Yes, that is indeed so. Small, as usual, and as LTSs should be, really, but a release nonetheless!
The star of the show is an updated node-gyp with some goodies. The rest is
just docs and some CI stuff.
Happy hacking!
DEPENDENCY UPDATE!
f9a07cc#13200node-gyp@3.4.0: AIX, Visual Studio 2015, and logging improvements. Oh my~! (@rvagg)
CI TWEAKS
bee83b8Globally installrimrafon CI to make the LTS self-install work better. (@othiym23)6b8c0abThis new Travis configuration only runs coverage checks against Node.js LTS, which speeds up all the other test runs. By, like, a lot. Also, the entire file has been extensively commented, so the next time we need to mess with it, we'll be able to better remember why all the weird bits are there. (@othiym23)
DOCUMENTATION FIXES
2c7a5be#13156 Fix old reference todoc/installin a source comment. (@sheerun)e1cf78c#13189 #13113 #13189 Fixes a link tonpm-tag(3)that was breaking to instead point tonpm-dist-tag(1), as reported by @SimenB (@macdonst)
v2.15.8 (2016-06-17):
There's a very important bug fix and a long-awaited (and significant!) deprecation in this hotfix release. Hold on.
WHOA
When Node.js 6.0.0 was released, the CLI team noticed an alarming upsurge in
bugs related to important files (like README.md) not being included in
published packages. The new bugs looked much like
#5082, which had been around in one
form or another since April, 2014. #5082 used to be a very rare (and obnoxious)
bug that the CLI team hadn't had much luck reproducing, and we'd basically
marked it down as a race condition that arose on machines using slow and / or
rotating-media-based hard drives.
Under 6.0.0, the behavior was reliable enough to be nearly deterministic, and
made it very difficult for publishers using .npmignore files in combination
with "files" stanzas in package.json to get their packages onto the
registry without one or more files missing from the packed tarball. The entire
saga is contained within the issue,
but the summary is that an improvement to the performance of
fs.realpath()
made it much more likely that the packing code would lose the race.
Fixing this has proven to be very difficult, in part because the code used by npm to produce package tarballs is more complicated than, strictly speaking, it needs to be. @evanlucas contributed a patch that passed the tests in a special test suite that I (@othiym23) created (with help from @addaleax), but only after we'd released the fixed version of that package did we learn that it actually made the problem worse in other situations in npm proper. Eventually, @rvagg put together a more durable fix that appears to completely address the errant behavior under Node.js 6.0.0. That's the patch included in this release. Everybody should chip in for redback insurance for Rod and his family; he's done the community a huge favor.
Does this mean the long (2+ year) saga of #5082 is now over? At this point, I'm going to quote from my latest summary on the issue:
The CLI team (mostly me, with input from the rest of the team) has decided that the overall complexity of the interaction between
fstream,fstream-ignore,fstream-npm, andnode-tarhas grown more convoluted than the team is comfortable (maybe even capable of) supporting.
- While I believe that @rvagg's (very targeted) fix addresses this issue, I would be shocked if there aren't other race conditions in npm's packing logic. I've already identified a couple other places in the code that are most likely race conditions, even if they're harder to trigger than the current one.
- The way that dependency bundling is integrated leads to a situation in which a bunch of logic is duplicated between
fstream-npmandlib/utils/tar.jsin npm itself, and the wayfstream's extension mechanism works makes this difficult to clean up. This caused a nasty regression (#13088, see below) as of ~npm@3.8.7where the dependencies ofbundledDependencieswere no longer being included in the built package tarballs.- The interaction between
.npmignore,.gitignore, andfilesis hopelessly complicated, scattered in many places throughout the code. We've been discussing making the ignores and includes logic clearer and more predictable, and the current code fights our efforts to clean that up.So, our intention is still to replace
fstream,fstream-ignore, andfstream-npmwith something much simpler and purpose-built. There's no real reason to have a stream abstraction here when a simple recursive-descent filesystem visitor and a synchronous function that can answer whether a given path should be included in the packed tarball would do the job adequately.What's not yet clear is whether we'll need to replace
node-tarin the process.node-taris a very robust implementation of tar (it handles, like, everything), and it also includes some very important tweaks to prevent several classes of security exploits involving maliciously crafted packages. However, its packing API involves passing in anfstreaminstance, so we'd either need to produce something that follows enough offstream's contract fornode-tarto keep working, or swapnode-tarout for something liketar-stream(and then ensuring that our use oftar-streamis secure, which could involve security patches for either npm ortar-stream).
The testing and review of fstream@1.0.10 that the team has done leads us to
believe that this bug is fixed, but I'm feeling more than a little paranoid
about fstream now, so it's important that people keep a close eye on their
publishes for a while and let us know immediately if they notice any
irregularities.
2c49265#5082fstream@1.0.10: Ensure that entries are collected after a paused stream resumes. (@rvagg)92e4344#5082 Remove the warning introduced innpm@3.10.0, because it should no longer be necessary. (@othiym23)
GOODBYE, FAITHFUL FRIEND
At NodeConf Adventure 2016 (RIP in peace, Mikeal Rogers's NodeConf!), the CLI team had an opportunity to talk to representatives from some of the larger companies that we knew were still using Node.js 0.8 in production. After asking them whether they were still using 0.8, we got back blank stares and questions like, "0.8? You mean, from four years ago?" After establishing that being able to run npm in their legacy environments was no longer necessary, the CLI team made the decision to drop support for 0.8. (Faithful observers of our team meetings will have known this was the plan for NodeConf since the beginning of 2016.)
In practice, this means only what's in the commit below: we've removed 0.8 from
our continuous integration test matrix below, and will no longer be habitually
testing changes under Node 0.8. We may also give ourselves permission to use
setImmediate() in test code. However, since the project still supports
Node.js 0.10 and 0.12, it's unlikely that patches that rely on ES 2015
functionality will land anytime soon.
Looking forward, the team's current plan is to drop support for Node.js 0.10 when its LTS maintenace window expires in October, 2016, and 0.12 when its maintenance / LTS window ends at the end of 2016. We will also drop support for Node.js 5.x when Node.js 6 becomes LTS and Node.js 7 is released, also in the October-December 2016 timeframe.
(Confused about Node.js's LTS policy? Don't be! If you look at this diagram, it should make all of the preceding clear.)
If, in practice, this doesn't work with distribution packagers or other community stakeholders responsible for packaging and distributing Node.js and npm, please reach out to us. Aligning the npm CLI's LTS policy with Node's helps everybody minimize the amount of work they need to do, and since all of our teams are small and very busy, this is somewhere between a necessity and non-negotiable.
4a1ecc0Remove 0.8 from the Node.js testing matrix, and reorder to match real-world priority, with comments. (@othiym23)
v2.15.7 (2016-06-16):
It pains me greatly that we haven't been able to fix #5082 yet, but warning you away from potentially publishing incomplete packages takes priority over feeling cheesy about landing a warning to help keep y'all out of trouble, so here you go (please read this next bit (please clap)):
DANGER: PUBLISHING ON NODE 6.0.0
Publishing and packing are buggy under Node versions greater than 6.0.0. Please use Node.js LTS (4.4.x) to publish packages. See #5082 for details and current status.
PACKAGING CHANGES
1877171#12873 Ignore.nyc_output. This will help avoid an accidental publish or commit filled with code coverage data. (@TheAlphaNerd)
DOCUMENTATION CHANGES
470ae86#12983 Describe how to run the lifecycle scripts of dependencies. How you do this changed withnpmv2. (@Tapppi)9cedf37#12776 Remove mention of<pkg>arg forrun-script. (@fibo)55b8424#12840 Remove sexualized language from comment. (@geek)d6bf0c3#12802 Small grammar fix indoc/cli/npm.md. (@andresilveira)
DEPENDENCY UPDATES
2c2c568readable-stream@2.1.4: Brought up to date with Node 6.1.0's streams implementation. (@calvinmetcalf)d682e64npm/npm-user-validate#8npm-user-validate@0.1.4: Add a maximum length limit for usernames based on the (arbitrary) limit imposed by the primary npm registry. (@aredridel)448b65bwhich@1.2.10: Remove unused dependencyis-absolute, bug fixes. (@isaacs)7d15434require-inject@1.4.0: AddrequireInject.withEmptyCacheandrequireInject.installGlobally.andClearCacheto support loading modules to be injected with an empty cache. (@iarna)31845c0init-package-json@1.9.4: Replace use of reserved identifierpackagein, uh, the package. (@adius)d73ef3eglob@7.0.4: Use userlandfs.realpathimplementation to get glob working under Node 6. (@isaacs)b47da85inflight@1.0.5: Correct link to package repository, add"files"stanza. (@iarna, @jamestalmage)04815e4npm/npmlog#32npmlog@2.0.4: Add"files"stanza topackage.json. (@jamestalmage)9e29ad2wrappy@1.0.2: Add"files"stanza topackage.json. (@jamestalmage)44af4d4abbrev@1.0.9(@jorrit)6c977c0npm-registry-client@7.1.2: Add support for newer versions ofnpmlog. (@iarna)
v2.15.6 (2016-05-12):
I have a couple of doc fixes and a shrinkwrap fix for you all this week.
PEER DEPENDENCIES AND SHRINKWRAPS
55c998a#5135 Fix a bug where peerDependencies & shrinkwraps didn't play nice together. (Where the peerDependency resolver would end up installing its dep when it wasn't needed.) (@majgis)
NPM AND node-gyp DOCS IMPROVEMENTS
1826908#12636 Improvenpm-scriptsdocumentation regarding whennode-gypis used. (@reconbot)f9ff7f3#12586 Correctpackage.jsondocumentation as to whennode-gyp rebuildcalled. This now matches https://docs.npmjs.com/misc/scripts#default-values (@reconbot)
v2.15.5 (2016-05-05):
This is a minor LTS release, bringing dependencies up to date and updating our CI matrix to match what we support.
Some of the dependency updates come out of our getting the development branch's tests passing on Windows and so bring in fixes for a few Windows related corner cases.
CI UPDATES
DEPENDENCY UPDATES
f2f8753which@1.2.8: Properly handle relative path executables. (@isaacs)e287ca9read-package-json@2.0.4: Fix Windows issue with ENOTDIR detection. (@zkat)1a0ce6crealize-package-specifier@3.0.3: Use npa with windows fix. Fix relative path resolution when the local file might also be a tag. (@zkat) (@iarna)a475c9alru-cache@4.0.1: Use Symbol if available. (@isaacs)7141e08sorted-object@2.0.0(@iamstarkov)27c6190request@2.72.0(@simov)ab90dafreadable-stream@2.1.2(@calvinmetcalf)b1715f8graceful-fs@4.1.4(@isaacs)ca97de6block-stream@0.0.9(@isaacs)
v2.15.4 (2016-04-21):
Gosh, it's been a peaceful couple of weeks!
Overall, the CLI team has been focused on the project to get the test suite passing on Windows. Our efforts should be paying off soon -- there's only a couple of tests left!
It's very unlikely those particular changes will make their way into our current
npm@2 LTS release, I think, but it will help npm@3 a lot, as well as
whatever version makes it into node@6, which will eventually be the next
Node.js LTS.
As far as this week goes, we've got a couple of dep updates and doc fixes. Always happy to see community contributions flying in. 💚
DEP UPDATE MAGIC
b178c4aspdx-license-ids@1.2.1: Minor project-related tweaks -- no license changes. (@shinnn)1adf179normalize-git-url@3.0.2: Fixesfile://URLs on Windows. Turns out stuff likefile://C:\hellois actually fairly weird for a URL (it's not actually a valid URL, but we're just gonna pretend.😉) (@zkat)9cfd56cfs-vacuum@1.2.9: This one goes out to our fans at Big Blue: There was an AIX-specific issue wherefs.rmDirwas failing withEEXISTinstead ofENOTEMPTYwith non-empty directories. (@richardlau)
HOORAY DOC CONTRIBUTIONS
No seriously, we love these. Keep 'em comin'!
2afe8bf#12415 Clarify that the--certand--keyoptions are actual certs and keys, not paths to files containing them. (@rvedotrc)3522560#12107 Documentnpm loginas an alias tonpm adduser. People are still surprised by this so often. (@gnerkus)
v2.15.3 (2016-03-31):
Hiiiiiii!~👋
We're really happy to be getting more and more community contributions! Keep it up! We really appreciate folks trying to help us, and we'll do our best to help point you in the right direction. Even things like documentation are a huge help. And remember -- you get socks for it, too!🎁
This week is as quiet as usual, aside from fixing a regression to npm deprecate you might want to pay attention to! Other than that, just docs and
deps, as any good LTS release train should be. 🙆
FIXME
6e0b66e#11884 Includenode_modulesin the list of files and directories that npm won't include in packages ordinarily. (Modules listed inbundledDependenciesand things that those modules rely on, ARE included of course.) (@Jameskmonger)9896290#12079 Back innpm@2.13.1we included a patch that made it sonpm install pkgwas basicallynpm install pkg@latestinstead ofpkg@*This is probably what most users expected, but it also ended up breakingnpm deprecatewhen no version was provided for a package. In that case, we were using*to mean "deprecate all versions" and relying on thepkg->pkg@*conversion. This patch fixesnpm deprecate pkgto work as it used to by special casing that particular command's behavior. (@polm)6c1628f#12146 Addsmake doc-cleantoprepublishscript, to clear out previously built docs before publishing a new npm version. (@watilde)6d3017e#12146 Addsdoc-cleanphony target tomake publish. (@watilde)
DOCS
d43921c#12147 Document that the current behavior ofenginesis just to warn if the node platform is incompatible. (@reconbot)3cfe99e#12093 Updatebugsurl inpackage.jsonto use thehttpsURL for Github. (@watilde)ecf865f#12075 Add the--ignore-scriptsflag to thenpm installdocs. (@paulirish)f0e6db3#12063 Various minor fixes to the html docs homepage. (@watilde)
DEPS
v2.15.2 (2016-03-24):
It's always nice to see new contributors. 💚
This week sees another small release, but we're still chugging along on our Windows efforts.
There's also some small process changes to our LTS process relatively recently that you might wanna know about! 💁
For one, the 2.x branch was removed in favor of just lts. If you're making
PRs exclusively against npm's LTS, please use that name from now on. 2.x was
deleted.
Also, @othiym23 put some time into writing down our LTS process and policy. Check it out and ping us if you have questions or comments about it!
In general, we're trying to make sure all our policy and such for our contributors is written down, and we hope it makes it easier in general for y'all. Forrest is also working on a shiny new Contributor's Guide right now, but we'll link to that in the (near?) future, when it's ready to roll out.
TESTS
1d0e468#11931 Removes a bunch of old, disabled tests that have just been sitting around, doing nothing. (@othiym23)7ae8aa1#11987 There was a failure in theoutdated-symlinktest caused by using the default registry instead of the mock registry tests. (@yodeyer)
DOCS
b2649fb#12006 Access was Team and Team was Access, but someone from the community rolled around and corrected it for us. Thanks a bunch! (@yaelz)
v2.15.1 (2016-03-17):
SECURITY ADVISORY: BEARER TOKEN DISCLOSURE
This release includes the fix for a vulnerability that could cause the unintentional leakage of bearer tokens.
Here are details on this vulnerability and how it affects you.
DETAILS
Since 2014, npm’s registry has used HTTP bearer tokens to authenticate requests from the npm’s command-line interface. A design flaw meant that the CLI was sending these bearer tokens with every request made by logged-in users, regardless of the destination of their request. (The bearers only should have been included for requests made against a registry or registries used for the current install.)
An attacker could exploit this flaw by setting up an HTTP server that could collect authentication information, then use this authentication information to impersonate the users whose tokens they collected. This impersonation would allow them to do anything the compromised users could do, including publishing new versions of packages.
With the fixes we’ve released, the CLI will only send bearer tokens with requests made against a registry.
THINK YOU'RE AT RISK? REGENERATE YOUR TOKENS
If you believe that your bearer token may have been leaked, invalidate your
current npm bearer tokens and rerun
npm login to generate new tokens. Keep in mind that this may cause continuous
integration builds in services like Travis to break, in which case you’ll need
to update the tokens in your CI server’s configuration.
WILL THIS BREAK MY CURRENT SETUP?
Maybe.
npm’s CLI team believes that the fix won’t break any existing registry setups. Due to the large number of registry software suites out in the wild, though, it’s possible our change will be breaking in some cases.
If so, please file an issue describing the software you’re using and how it broke. Our team will work with you to mitigate the breakage.
CREDIT & THANKS
Thanks to Mitar, Will White & the team at Mapbox, Max Motovilov, and James Taylor for reporting this vulnerability to npm.
BACK TO YOUR REGULARLY SCHEDULED PROGRAMMING
Aside from that, it's another one of those releases again! Docs and tests, it turns out, have a pretty easy time getting into LTS releases, and boring is exactly how LTS should be. 💁
DOCS
981c89c#11820 The basic explanation for hownpm linkworks was a bit confusing, and somewhat incorrect. It should be clearer now. (@rhgb)35b2b45#11787 Theverisonalias fornpm versionno longer shows up in the command list when you donpm -h. (@doug-wade)1c9d00f#11786 Add a comment to thenpm-scope.mddocs aboutnpm@>=2being required in order to use scoped packaged. (@doug-wade)7d64fb1#11762 Roll back patch that previously advised people to use--depth Infinityinstead of--depth 9999. Just keep using--depth 9999. (@GriffinSchneider)
TESTS
98a9ee4#11912 Did you know npm can install itself?npm install -g npmis the way to upgrade! Turns out that one of the tests that verified this functionality got rewritten as part of our recent push for better tests, and in the process omitted a detail about how the test ran. We're testing that corner case again, now, by moving the install folder to/tmp, where the original legacy test ran. (@iarna)
v2.15.0 (2016-03-10):
WHY IS THIS SEMVER-MINOR I THOUGHT THIS WAS LTS
A brief note about LTS this week!
npm, as you may know if you're using this 2.x branch, has an LTS process for
releases. We also try and play nice with Node.js' own LTS release
process. That means we generally try to
avoid things like minor version bumps on our 2.x branch (which is also tagged
lts in the dist-tags).
That said, we had a minor-bump update recently for npm@3.8.0 which added a
maxsockets option to allow users to configure the number of concurrent sockets
that npm would keep open at a time -- a setting that has the potential to help a
bunch for people with fussy routers or internet connections that aren't very
happy with Node.js applications' usual concurrency storm. This change was done
to npm-registry-client, which we don't have a parallel LTS-tracking branch
for.
After talking it over, we ended up deciding that this was a reasonable enough
addition to LTS, even though it's technically a semver-minor bump, taking
into account both its potential for bugfixing (specially on 2.x!) and the
general hassle it would be to maintain another branch for npm-registry-client.
6dd61e7Exposemaxsocketsconfig setting from newnpm-registry-client. (@misterbyrne)8a021c3npm-registry-client@7.1.0: Adds support for configuring the max number of concurrent sockets, defaulting to50. (@iarna)
DOC PATCH IS HERE TOO
0ae9f74#11748 Add command aliases as a separate section in documentation for npm subcommands. (@watilde)
DEP UPDATES
bfc3888strip-ansi@3.0.1(@jbnicolai)d5f4d51node-gyp@3.3.1: Fixes Android generator (@bnoordhuis)4119df8glob@7.0.3: Some path-related fixes for Windows. (@isaacs)
v2.14.22 (2016-03-03):
This week is all documentation improvements. In case you hadn't noticed, we love doc patches. We love them so much, we give socks away if you submit documentation PRs!
These folks are all getting socks if they ask for them. The socks are super-sweet. Do you have yours yet? 👣
3f3c7d0#11441 Add a link to the Contribution Guidelines to the main npm docs. (@watilde)9f87bb1#11441 Remove Google Group email from npm docs about contributing. (@watilde)93eaab3#11474 Fix an invalid JSON error overlooked in #11196. (@robludwig)a407ca2#11483 Add more details and an example to the documentation for bundledDependencies. (@gnerkus)2c851a2#11490 Document the--registryflag fornpm search. (@plumlee)
v2.14.21 (2016-02-25):
Good news, everyone! There's a new LTS release with a few shinies here and there!
USE THIS ONE INSTEAD
We had some cases where the versions of npm and node used in some scripting situations were different than the ideal, or what folks actually expected. These should be particularly helpful to our Windows friends! <3
02813c5#9253 Fix a bug where, when running lifecycle scripts, if the Node.js binary you rannpmwith wasn't in yourPATH,npmwouldn't use it to run your scripts. (@segrey and @narqo)a985dd5#11526 Prefer locally installed npm in Git Bash -- previous behavior was to use the global one. This was done previously for other shells, but not for Git Bash. (@destroyerofbuilds)
SOCKS FOR THE SOCK GOD
f961092#11636. Document the--save-bundleoption fornpm install. (@datyayu)7c908b6#11644 Add documentation for thetestdirectory for packages. (@lewiscowper)
INTERNAL TEST IMPROVEMENTS
The npm CLI team's time recently has been sunk into npm's many years of tech debt. Specifically, we've been working on improving the test suite. This isn't user visible, but in future should mean a more stable, easier to contribute to npm. Ordinarily we don't report these kinds of changes in the change log, but I thought I might share this week as this chunk is bigger than usual.
These patches were previously released for npm@3, and then ported back to npm@2 LTS.
437c537#11613 Fix up one of the tests after rebasing the legacy test rewrite tonpm@2. (@zkat)55abd0c#11613 Test that thepackage.jsonfilessection and.npmignoredo what they're supposed to. (@zkat)a2b99b6#11613 Test that npm's distribution binary is complete and can be installed and used. (@iarna)8a8c36c#11613 Test that environment variables are properly passed into scripts. (@iarna)a95b550#11613 Test that we don't leak auth info into the environment. (@iarna)a1c1c52#11613 Remove all the relatively cryptic legacy tests and creates new tap tests that check the same functionality. The legacy tests were tests that were originally a shell script that was ported to javascript early innpm's history. (@iarna and @zkat)9d89581#11613tacks@1.0.9: Add a package that provides a tool to generate fixtures from folders and, relatedly, a module that an create and tear down filesystem fixtures easily. (@iarna)
v2.14.20 (2016-02-18):
Hope y'all are having a nice week! As usual, it's a fairly limited release. The most notable thing is some dependency updates that might help the Node.js CI setup for Windows run a little better, even if we have some work to do on that path length things, still.
WHITTLING AWAY AT PATH LENGTHS
So for all of you who don't know -- Node.js does, in fact, support long Windows paths. Unfortunately, depending on the tool and the Windows version, a lot of external tooling does not. This means, for example, that some (all?) versions of Windows Explorer can literally never delete npm from their system entirely because of deeply-nested npm dependencies. Which is pretty gnarly.
Incidentally, if you run into that in particularly, you can use rimraf to remove such files 💁.
The latest victim of this issue was the Node.js CI setup for testing on Windows, which uses some tooling or another that croaks on the usual path length limit for that OS: 255 characters.
This issue, of course, is largely not a problem as of npm@3, with its flat
trees, but it still occasionally and viciously bites LTS.
We've taken another baby step towards alleviating this in this release by
updating a couple of dependencies that were preventing npmlog from deduping,
and then doing a dedupe on that and gauge. Hopefully it helps.
4199551#11528npm-install-checks@1.0.7: Just updates the version of npmlog so we can dedupe it better. (@zkat)14d72c7#11552 #11528node-gyp@3.3.0: AIX support, newgyp, updatenpmlog(for the dedupe), adds--cafilecommand line option, and allows configuration of Node.js and io.js mirrors. (@rvagg)0453cb9#11528 Do adedupeongaugeto flatten our dependencies a bit more. (@zkat)
OTHER DEP STUFF
@wyze, DOCUMENTATION HERO OF THE PEOPLE, GETS THEIR OWN HEADER
7232948#11416 Logout docs were using a section copy-pasted from the adduser docs. (@wyze)922b33a#11414 Add colon for consistency. (@wyze)
v2.14.19 (2016-02-11):
Really tiny micro-release this week! The main thing to note is a dependency
update that means we no longer have graceful-fs@3 in our dependency tree. This
has some implications for being able to run on future Node.js releases, so
better to get this out the door. 😁
DEPS
a556e0fcmd-shim@2.0.2: Final straggler usinggraceful-fs@<4. (@ForbesLindesay)
DOCS
69a2d59#11391 Fixed versions ofshrinkwrap.jsonin examples in documentation fornpm shrinkwrap, which did not quite match up. (@xcatliu)
v2.14.18 (2016-02-04):
Clearly our docs are perfect after all those wonderful PRs, 'cause this week's gonna be all about dependency updates. Note: There is a small security-related fix included here!
SECURITY-RELATED DEPENDENCY UPDATE
5c095ef#11341request@2.69.0: Includes security-related dependency updates involvinghawkandis-my-json-valid(@remy and @simov)
OTHER DEPENDENCY UPDATES
f9c2668which@1.2.4(@isaacs)2907c43spdx-license-ids@1.2.0(@shinnn)7734069rimraf@2.5.1(@isaacs)f4b39a7retry@0.9.0(@tim-kos)ded1e7aNestretry@0.8.0insidenpm-registry-clientto prevent invalid dependency issue until the latter gets a dependency update. (@zkat)ab9f867read-package-json@2.0.3(@iarna)b638c41npmlog@2.0.2(@iarna)49f34afinit-package-json@1.9.3(@iarna)2305dabgraceful-fs@4.1.3: Fixed.close()not being patched. (@isaacs)18496d9fs-write-stream-atomic@1.0.8(@iarna)6637bc7config-chain@1.1.10(@dominictarr)4222badcolumnify@1.5.4(@timoxley)df9016fansi@0.3.1: Added a license file. (@TooTallNate)
v2.14.17 (2016-01-28):
Another week, another small LTS release!
BETTER ERROR REPORTING YAY
So as it turns out, when stuff goes wrong, it's actually nice to give people a better clue rather than just say "oh well 😏".
5b8ccb9#11289 There is an obscure feature that lets you monkey-patch npm when it starts up. If the module being required with this feature failed, it would previous just make npm error out– this reduces that to a warning. (@evanlucas)556e42a#11300 Report symlinked packages as 'linked' in the output fornpm outdated. (@halhenke)3842317#11290 Suppress warnings about pre-release node versions. This should get node's CI passing on non-Windows platforms without needing to modify the node version to get rid of the pre-release suffix. (@iarna)
EVERYONE WANTS THOSE NPM SOCKS, GEEZE
Did you know that you can get npm socks for contributing to our docs? I bet these people do, and now so do you!
dcde451#11232 Update automatically included/excluded packages inpackage.json. (@jscissr)e3f8d5b#11273 Add an example fornpm view <pkg> versions. (@vedatmahir)6a06ef2#11272 Fix a typo innpm-update.md. (@jonathanp)2515ff1#11215 Correct small thinko in docs for SPDX expressions. (@kemitchell)70f897b#11196 Make JSON snippets valid JSON innpm updatedocs. (@s100)
v2.14.16 (2016-01-21):
Good to see you all again! It's been a while since we had an LTS release, and the team continues to work hard to both get the issue tracker under control, and get our test suite to be awesome and reliable.
This is also the first LTS release of this year.
We're gonna have an interesting time -- most of our focus this year will be around stability and maintainability of the CLI, so you might actually end up seeing a number of updates even over here, just for the sake of making sure we're stable, that bugs get fixed, and tests have proper coverage.
What better way to start this effort, then, than getting Travis tests green, fix a few things here and there, and tweak a bunch of documentation? 😁
FIX ALL THE BUGS AND TWEAK ALL THE THINGS
-
24b13fb#11158 Fix custom node-gyp env var quoting on Windows. (@orangemocha) -
e2503f2#11142 Fix race condition withcorrectMkdirin the cache directory. (@Jimbly) -
5c0e4c4#10940 Ignore failures replacingpackage.json. writeFileAtomic is not atomic in Windows, it fails if the file is being accessed concurrently. (@orangemocha) -
2c44d8d#10903 Add tests fornpm adduser --scope. (@ekmartin) -
4cb25d0#10903 Add a message informing users when they have been successfully logged in. (@ekmartin) -
fe3ec6d#10628 Tell users how to open an issue with a package that has errored. (@trodrigues)
DOCS DOCS DOCS
We got a TON of lovely documentation patches, too! Thanks all for submitting!
22482a1#11188 Briefly explain what's included when you publish. (@beaugunderson)fa47724#11150 Advise use of--depth Infinityinstead of--depth 9999innpm update. (@halhenke)248ddfe#11130 Nuke "using npm programmatically" section from README. The programmatic npm API is unsupported, and is not guaranteed not to break in non-major versions. Removing this section so newcomers aren't encouraged to discover or use it. (@ljharb)ae9c452#11128 Add link to local paths section indocs forpackage.json. (@orangejulius)663a8c6#11044 Update default value documentation for the color option in npm's config. (@scottaddie)5c1dda0#11037 Correct the name property max length constraint verbiage. (@scottaddie)8288365#10990 Update folder docs to reflect that process.installPrefix was removed as of 0.8.x. (@jeffmcmahan)61d63fa#10790 Clarify thatnpm install foois the same asnpm install foo@latestnow. (@cvrebert)442c920#10789 Link over tonpm-dist-tag(1)innpm installdocs when they talk about thepkg@<tag>syntax. (@cvrebert)dca7a5e#10788 Link to tag docs in docs fornpm publish --tag. (@cvrebert)a72904e#10787 Explain why thelatesttag matters. (@cvrebert)9d0697a#10785 Replace some quite marks innpm dist-tagdocs for the sake of consistency. (@cvrebert)
I REALLY LIKE GREEN. CAN YOU TELL?
So Travis is all green now on npm@2, thanks to the removal of nock and a few
other test suite tweaks. This is a fantastic step towards making sure we can all
have confidence in our test suite! 🎉
64995be75ab216a9f6fe9649c19394cb05e6541690255be6f9e84fa48a587b0bf812a5#10903 Get rid of nock from tests, and get Travis green. (@zkat and @iarna)70a5310npm-registry-couchapp@2.6.12: Better 0.8 compatibility, and ability to run in travis docker stuff. This means the test suite should run a lot faster, too! (@iarna)28fae39Get rid of sudo, for Travis! (@zkat)
v2.14.15 (2015-12-10):
Did you know that Bob Ross reached the rank of master sergeant in the US Air Force before becoming perhaps the most soothing painter of all time?
TWO HAPPY LITTLE BUG FIXES
f482664#10505npm ls --json --depth=0now respects the depth parameter, when it is zero and when it is not zero. (@MarkReeder)529fa1f#9099 I had always thought you could runnpm versionfrom subdirectories in your project, which is great, because now you can. I guess I was just ahead of my time. (@ekmartin)
NOW PAINT IN SOME NICE DOCS CHANGES
1fc7f2b#10546 Goodbye, FAQ! You were cheeky and fun until you weren't! Don't worry: npm still loves everyone, especially you! (@ashleygwilliams)7fe6950#10570 Update documentation URLs to be HTTPS everywhere sensible. No HTTP shall be spared! (@rsp)96ebb90#10650 Correctly note that there are two lifecycle scripts run by an install phase in an example, instead of three. (@eymengunay)5196893#10687npm outdated's output can be a little puzzling sometimes. I've attempted to make it clearer, with some examples, of what's going on with "wanted" and "latest" in more cases. (@othiym23)8e6712d#10700 Hey, do you remember whensearch.npmjs.orgwas a thing? I think I do? The last time I used it was in like 2012, and it's gone now, so remove it from the docs. (@gagern)27d2612semver@5.1.0: Include BNF for SemVer expression grammar (which is also now included innpm help semver). (@isaacs)
LAND YOUR DEPENDENCY UPGRADES IN PAIRS SO EVERYONE HAS A FRIEND
fc6c3c5request@2.67.0(@simov)07013fdisaacs/rimraf#89rimraf@2.4.4(@zerok)bc149beisaacs/once#7once@1.3.3(@floatdrop)ac598d3lru-cache@3.2.0(@isaacs)1b915cenpm-registry-client@7.0.9(@othiym23)df7dd78tap@2.3.1(@isaacs)
v2.14.14 (2015-12-03):
FIX URL IN LICENSE
The license incorrectly identified the registry URL as registry.npmjs.com and
this has been corrected to registry.npmjs.org.
6051a69#10685 Fix npm public registry URL in notices. (@kemitchell)
NO MORE MD5
We updated modules that had been using MD5 for non-security purposes. While this is perfectly safe, if you compile Node in FIPS-compliance mode it will explode if you try to use MD5. We've replaced MD5 with Murmur, which conveys our intent better and is faster to boot.
30b5994#10629write-file-atomic@1.1.4(@othiym23)68c63ff#10629fs-write-stream-atomic@1.0.5(@othiym23)
DEPENDENCY UPDATES
e48e5a9nodejs/node-gyp#831node-gyp@3.2.1: Improved *BSD support. (@bnoordhuis)
v2.14.13 (2015-11-25):
THE npm CLI !== THE npm REGISTRY !== npm, INC.
npm-the-CLI is licensed under the terms of the Artistic License 2.0, which is a liberal open-source license that allows you to take this code and do pretty much whatever you like with it (that is, of course, not legal language, and if you're doing anything with npm that leaves you in doubt about your legal rights, please seek the review of qualified counsel, which is to say, not members of the CLI team, none of whom have passed the bar, to my knowledge). At the same time the primary registry the CLI uses when looking up and downloading packages is a commercial service run by npm, Inc., and it has its own Terms of Use.
Aside from clarifying the terms of use (and trying to make sure they're more
widely known), the only recent changes to npm's licenses have been making the
split between the CLI and registry clearer. You are still free to do whatever
you like with the CLI's source, and you are free to view, download, and publish
packages to and from registry.npmjs.org, but now the existing terms under
which you can do so are more clearly documented. Aside from the two commits
below, see also the release notes for
npm@2.14.11, which is where
the split between the CLI's code and the terms of use for the registry was
first made more clear.
1f3e936#10532 Clarify thatregistry.npmjs.orgis the default, but that you're free to use the npm CLI with whatever registry you wish. (@kemitchell)6733539#10532 Having semi-duplicate release information inREADME.mdwas confusing and potentially inaccurate, so remove it. (@kemitchell)
EASE UP ON WINDOWS BASH USERS
It turns out that a fair number of us use bash on Windows (through MINGW or bundled with Git, plz – Cygwin is still a bridge too far, for both npm and Node.js). @jakub-g did us all a favor and relaxed the check for npm completion to support MINGW bash. Thanks, Jakub!
MAKE NODE-GYP A LITTLE BLUER
333e118node-gyp@3.2.0: Support AIX, usewhichto find Python, updated to a newer version ofgyp, and more! (@bnoordhuis)
WE LIKE SPDX AND ALL BUT IT'S NOT ACTUALLY A DIRECT DEP, SORRY
1f4b4bbRemovedspdxas a direct npm dependency, since we don't actually need it at that level, and updated subdeps forvalidate-npm-package-license(@othiym23)
A BOUNTEOUS THANKSGIVING CORNUCOPIA OF DOC TWEAKS
These are great! Keep them coming! Sorry for letting them pile up so deep, everybody. Also, a belated Thanksgiving to our Canadian friends, and a happy Thanksgiving to all our friends in the USA.
6101f44#10250 Correct order oforg:teaminnpm teamdocumentation. (@louislarry)e8769f9#10371 Remove broken / duplicate link to tag. (@WickyNilliams)1ae2dbe#10419 Remove references to nonexistentnpm-rm(1)documentation. (@KenanY)777a271#10474 Clarify that install finds dependencies inpackage.json. (@sleekweasel)dcf4b5c#10497 Clarify what a package is slightly. (@aredridel)447b3d6#10539 Remove an extra, spuriously capitalized letter. (@alexlukin-softgrad)
v2.14.12 (2015-11-19):
TEEN ORCS AT THE GATES
This week heralds the general release of the primary npm registry's new support for private packages for organizations. For many potential users, it's the missing piece needed to make it easy for you to move your organization's private work onto npm. And now it's here! The functionality to support it has been in place in the CLI for a while now, thanks to @zkat's hard work.
During our final testing before the release, our ace support team member @snopeks noticed that there had been some drift between the CLI team's implementation and what npm was actually preparing to ship. In the interests of everyone having a smooth experience with this extremely useful new feature, we quickly made a few changes to square up the CLI and the web site experiences.
0e8b15e#9327npm accessno longer has problems when run in a directory that doesn't contain apackage.json. (@othiym23)c4e939cnpm/npm-registry-client#126npm-registry-client@7.0.8: Allow the CLI to grant, revoke, and list permissions on unscoped (public) packages on the primary registry. (@othiym23)
A BRIEF NOTE ON NPM'S BACKWARDS COMPATIBILITY
We don't often have much to say about the changes we make to our internal testing and tooling, but I'm going to take this opportunity to reiterate that npm tries hard to maintain compatibility with a wide variety of Node versions. As this change shows, we want to ensure that npm works the same across:
- Node.js 0.8
- Node.js 0.10
- Node.js 0.12
- the latest io.js release
- Node.js 4 LTS
- Node.js 5
Contributors who send us pull requests often notice that it's very rare that our tests pass across all of those versions (ironically, almost entirely due to the packages we use for testing instead of any issues within npm itself). We're currently beginning an effort, lasting the rest of 2015, to clean up our test suite, and not only get it passing on all of the above versions of Node.js, but working solidly on Windows as well. This is a compounding form of technical debt that we're finally paying down, and our hope is that cleaning up the tests will produce a more robust CLI that's a lot easier to write patches for.
TYPOS IN THE LICENSE, OH MY
v2.14.11 (2015-11-12):
ASK FOR NOTHING, GET LATEST
When you run npm install foo, you probably expect that you'll get the
latest version of foo, whatever that is. And good news! That's what this
change makes it do.
We think this is what everyone wants, but if this causes problems for you, we
want to know! If it proves problematic for people we will consider reverting it
(preferrably before this becomes npm@latest).
Previously, when you ran npm install foo we would act as if you typed npm install foo@*. Now, like any range-type specifier, in addition to matching the
range, it would also have to be <= the value of the latest dist-tag.
Further, it would exclude prerelease versions from the list of versions
considered for a match.
This worked as expected most of the time, unless your latest was a prerelease
version, in which case that version wouldn't be used, to everyone's surprise.
LICENSE CLARIFICATION
54a9046#10326 Clarify what-all is covered by npm's license and point to the registry's terms of use. (@kemitchell)
CLOSER TO GREEN TRAVIS
28efd3d#10232nock@1.9.0: Downgrade nock to a version that doesn't depend on streams2 in core so that more of our tests can pass in 0.8. (@iarna)
A BUG FIX
eacac8f#9965 Fix a corruptpackage.jsonfile introduced by a merge conflict in022691a. (@waynebloss)
A DEPENDENCY UPGRADE
ea7d8e0npm/nopt#51nopt@3.0.6: Allow types checked to be validated by passed-in name in addition to the JS name of the type / class. (@wbecker)
v2.14.10 (2015-11-05):
There's nothing in here that that isn't in the npm@3.4.0 release notes, but
all of the commit shasums have been adjusted to be correct. Enjoy!
BUG FIXES VIA DEPENDENCY UPDATES
204c558#8640 npm/normalize-package-data#69normalize-package-data@2.3.5: Fix a bug where if you didn't specify the name of a scoped module's binary, it would install it such that it was impossible to call it. (@iarna)bbdf4eenpm/fstream-npm#14fstream-npm@1.0.7: Only filterconfig.gypiwhen it's in the build directory. (@mscdex)d82ff81npm/fstream-npm#15fstream-npm@1.0.6: Stop including directories that happened to have names matching whitelisted npm files in npm module tarballs. The most common cause was that if you had a README directory then everything in it would be included if wanted it or not. (@taion)
DOCUMENTATION FIXES
16361d1#10036 Fix typo / over-abbreviation. (@ifdattic)d1343dd#10176 Fix broken link, scopes => scope. (@ashleygwilliams)110663d#9460 Specifying the default command run by "npm start" and the fact that you can pass it arguments. (@JuanCaicedo)
DEPENDENCY UPDATES FOR THEIR OWN SAKE
7476d2dnpm/npmlog#19npmlog@2.0.0: Make it possible to emit log messages witherroras the prefix. (@bengl)6ca7888read-package-json@2.0.2: Minor cleanups. (@KenanY)
v2.14.9 (2015-10-29):
There's still life in npm@2, but for now, enjoy these dependency upgrades!
Also, @othiym23 says hi! waves
@zkat has her hands full, and
@iarna's handling npm@3, so I'm dealing with
npm@2 and the totally nonexistent weird bridge npm@1.4 LTS release that may
or may not be happening this week.
CAN'T STOP WON'T STOP UPDATING THOSE DEPENDENCIES
f52f0cb#10150chmodr@1.0.2: Usefs.lstat()to check if an entry is a directory, makingchmodr()work properly with NFS mounts on Windows. (@sheerun)f7011d7#10150which@1.2.0: Additional command-line parameters, which is nice but not used by npm. (@isaacs)ebcc0d8#10150minimatch@3.0.0: Don't package browser version. (@isaacs)8c98dce#10150fstream-ignore@1.0.3: Upgrade to useminimatch@3(for deduping purposes). (@othiym23)db9ef33#10150request@2.65.0: Dependency upgrades and a few bug fixes, mostly related to cookie handling. (@simov)
DEVDEPENDENCIES TOO, I GUESS, IT'S COOL
dfbf621#10150tap@2.2.0: Better handling of test order handling (including some test fixes for npm). (@isaacs)cf5ad5a#10150nock@2.16.0: More expectations, documentation, and bug fixes. (@pgte)
v2.14.8 (2015-10-08):
SLOWLY RECOVERING FROM FEELINGS
OS&F is definitely my favorite convention I've gone to. Y'all should check it out next year! Rebecca and Kat are back, although Forrest is out at &yet conf.
This week sees another tiny LTS release with non-code-related patches -- just CI/release things.
Meanwhile, have you heard? npm@3 is much faster now! Go upgrade with npm install -g npm@latest and give it a whirl if you haven't already!
IF YOU CHANGE CASING ON A FILE, YOU ARE NOT MY FRIEND
Seriously. I love me some case-sensitive filesystems, but a lot of us have to
deal with git and its funky support for case normalizing systems. Have mercy
and just don't bother if all you're changing is casing, please? Otherwise, I
have to do this little dance to prevent horrible conflicts.
c3a7b61#9804 Remove the readme file with weird casing. (@zkat)f3f619e#9804 Add the readme file back in, with desired casing. (@zkat)
IDK. OUR CI DOESN'T EVEN FULLY WORK YET BUT SURE
Either way, it's nice to make sure we're running stuff on the latest Node. 4.2
is getting released very soon, though (this week?), and that'll be the first
official LTS release!
v2.14.7 (2015-10-01):
MORE RELEASE STAGGERING?!
Hi all, and greetings from Open Source & Feelings!
So we're switching gears a little with how we handle our weekly releases: from now on, we're going to stagger release weeks between dependency bumps and regular patches. So, this week, aside from a doc change, we'll be doing only version bumps. Expect actual patches next week!
TOTALLY FOLLOWING THE RULES ALREADY
So I snuck this in, because it's our own @snopeks'
first contribution to the main npm repo. She's been helping with building
support documents for Orgs, and contributed her general intro guide to the new
feature so you can read it with npm help orgs right in your terminal!
JUST. ONE. MORE.
OKAY ACTUALLY THE THING I WAS SUPPOSED TO DO
Anyway -- here's your version bump! :)
4aeb94crequest@2.64.0: No longer defaulting toapplication/jsonforjsonrequests. Also some minor doc and packaging patches. (@simov)a18b213glob@5.0.15: Upgradedminimatchdependency. (@isaacs)9eb64d4nock@2.13.0(@pgte)
v2.14.6 (2015-09-24):
¯\_(ツ)_/¯
Since 2.x is LTS now, you can expect a slowdown in overall release sizes. On
top of that, we had our all-company-npm-internal-conf thing on Monday and
Tuesday so there wasn't really time to do much at all.
Still, we're bringing you a couple of tiny little changes this week!
7b7da13#9471 When the port for a tarball is different than the registry it's in, but the hostname is the same, the protocol is now allowed to change, too. (@fastest963)6643adarequest@2.63.0: Useapplication/jsonas the default content type when makingjsonrequests. (@simov)
v2.14.5 (2015-09-17):
NPM IS DEAD. LONG LIVE NPM
That's right folks. As of this week, npm@latest is npm@3! There's some
really great shiny new things over there, and you should really take a look.
Many kudos to @iarna for her hard work on npm@3!
Don't worry, we'll keep 2.x around for a while (as LTS), but you won't see
many, if any, new features on this end. From now on, we're going to use
latest-2 and next-2 as the dist tags for the npm@2 branch.
OKAY THAT'S FINE CAN I DEPRECATE THINGS NOW?
Yes! Specially if you're using scoped packages. Apparently, deprecating them never worked, but that should be better now. :)
eca7b24#9558 Add tests for npm deprecate. (@zkat)648fe16#9558npm-registry-client@7.0.7: Fixesnpm deprecateso you can actually deprecate scoped modules now (it never worked). (@zkat)
WTF IS node-waf
idk. Some old thing. We don't talk about it anymore.
cf1b39f#9584 Fix ancient references tonode-wafin the docs to refer to thenode-gypversion of things. (@KenanY)
THE graceful-fs AND node-gyp SAGA CONTINUES
Last week had some sweeping graceful-fs upgrades, and this takes care of one
of the stragglers, as well as bumping node-gyp. node@4 users might be
excited about this, or even node@<4 users who previously had to cherry-pick a
bunch of patches to get the latest npm working.
e07354fsha@2.0.1: Upgraded graceful-fs! (@ForbesLindesay)83cb6eenode-gyp@3.0.3(@rvagg)
DEPS! DEPS! MORE DEPS! OK STOP DEPS
0d60888normalize-package-data@2.3.4: Use an external package to check for built-in node modules. (@sindresorhus)79b4dacretry@0.8.0(@tim-kos)c164941request@2.62.0: node 4 added to build targets. Option initialization issues fixed. (@simov)0fd878alru-cache@2.7.0: Cache serialization support and fixes a cache length bug. (@isaacs)6a7a114nock@2.12.0(@pgte)6b25e6dsemver@5.0.3: Removed uglify-js dead code. (@isaacs)
v2.14.4 (2015-09-10):
THE GREAT NODEv4 SAGA
So Node 4 is out now and that's
going to involve a number of things over in npm land. Most importantly, it's the
last major release that will include the 2.x branch of npm. That also means
that 2.x is going to go into LTS mode in the coming weeks -- once npm@3
becomes our official latest release. You can most likely expect Node 5 to
include npm@3 by default, whenever that happens. We'll go into more detail
about LTS at that point, as well, so keep your eyes peeled for announcements!
NODE IS DEAD. LONG LIVE NODE!
Node 4 being released means that a few things that used to be floating patches are finally making it right into npm proper. This week, we've got two such updates, both to dependencies:
505d9e4node-gyp@3.0.1: Support for node nightlies and compilation for both node and io.js without extra patching (@rvagg)
@thefourtheye was kind enough to submit a
bunch of PRs to npm's dependencies updating them to graceful-fs@4.1.2, which
mainly makes it so we're no longer monkey-patching fs. The following are all
updates related to this:
10cb189write-file-atomic@1.1.3(@thefourtheye)edfb80btar@2.2.1(@thefourtheye)aa6e1eeread-package-json@2.0.1(@thefourtheye)18971a3read-installed@4.0.3(@thefourtheye)a4cba71fstream@1.0.8(@thefourtheye)70a38e2fs-write-stream-atomic@1.0.4(@thefourtheye)9cbd20ffs-vacuum@1.2.7(@thefourtheye)
OTHER PATCHES
c4dd521#9506 Makenpm linkwork on Windows when using node pre-release/RC releases. (@jon-hall)b6bc29c#9544process.bindingis being deprecated, so our only direct usage has been removed. (@ChALkeR)
MORE DEPENDENCIES!
d940594tap@1.4.1(@isaacs)ee38486which@1.1.2: Added tests for Windows-related dead code that was previously helping a silent failure happen. Travis stuff, too. (@isaacs)
DOC UPDATES
475daf5#9492 Clarify how.npmignoreand.gitignoreare found and used by npm. (@addaleax)b2c391dnopt@3.0.4: Minor clarifications to docs about how array and errors work. (@zkat)
v2.14.3 (2015-09-03):
TEAMS AND ORGS STILL BETA. CLI CODE STILL SOLID.
Our closed beta for Teens and Orcs is happening! The web team is hard at work making sure everything looks pretty and usable and such. Once we fix things stemming from that beta, you can expect the feature to be available publicly. Some time after that, it'll even be available for free for FOSS orgs. It'll Be Done When It's Done™.
OH GOOD, I CAN ACTUALLY UPSTREAM NOW
Looks like last week's release foiled our own test suite when trying to upstream
it to Node! Just a friendly reminder that no, .npmrc is no longer included
then you pack/release a package! @othiym23 and
@isaacs managed to suss the really strange test
failures resulting from that, and we've patched it in this release.
01a3428#9476 test: Recreate missing.npmrcfiles when missing so downstream packagers can run tests on packed npm. (@othiym23)
TALKING ABOUT THE CHANGELOG IN THE CHANGELOG IS LIKE, POMO OR SOMETHING
devDependencies UPDATED
No actual dep updates this week, but we're bumping a couple of devDeps:
8454835tap@1.4.0: Addt.contains()as alias tot.match()(@isaacs)13d2216deep-equal@1.0.1: Makenull == undefinedin non-strict mode (@isaacs)
v2.14.2 (2015-08-27):
GETTING THAT PESKY preferGlobal WARNING RIGHT
So apparently the preferGlobal option hasn't quite been warning correctly for
some time. But now it should be all better! tl;dr: if you try and install a
dependency with preferGlobal: true, and it's not already in your
package.json, you'll get a warning that the author would really rather you
install it with --global. This should prevent Windows PowerShell from thinking
npm has failed just because of a benign warning.
bbb25f3#8841 #9409 ThepreferGlobalwarning shouldn't happen if the dependency being installed is listed indevDependencies. (@saper)222fcec#9409preferGlobalnow prints a warning when there are no dependencies for the current package. (@zkat)5cfed6d#9409 Verify thatpreferGlobalis warning as expected (when apreferGlobaldependency is installed, but isn't listed in eitherdependenciesordevDependencies). (@zkat)
BUMP +1
eeafce2validate-npm-package-license@3.0.1: Include additional metadata in parsed license object, useful for license checkers. (@kemitchell)1502a28normalise-package-data@2.3.2: Updated to usevalidate-npm-package-license@3.0.1. (@othiym23)cbde823init-package-json@1.9.1: Add asilentoption to suppress output on writing the generatedpackage.json. Also, updated to usevalidate-npm-package-license@3.0.1. (@zkat)08fda46tar@2.2.0: Minor improvements. (@othiym23)dc2f20brimraf@2.4.3:EPERMnow triggers a delay / retry loop (since Windows throws this when things still hold a handle). (@isaacs)e8acb27read@1.0.7: Fix licensing ambiguity. (@isaacs)
OTHER STUFF THAT'S RELEVANT
73a1ee0#9386 Include additional unignorable files in documentation. (@mjhasbach)0313e40#9396 Improve theEISDIRerror message returned by npm's error-handling code to give users a better hint of what's most likely going on. Usually, error reports with this error code are about people trying to install things without apackage.json. (@KenanY)2677457#9360 Make it easier to run only some of npm tests with lifecycle scripts vianpm tap test/tap/testname.js. (@iarna)
v2.14.1 (2015-08-20):
SECURITY FIX
There are patches for two information leaks of moderate severity in npm@2.14.1:
- In some cases, npm was leaking sensitive credential information into the
child environment when running package and lifecycle scripts. This could
lead to packages being published with files (most notably
config.gypi, a file created bynode-gypthat is a cache of environmental information regenerated on every run) containing the bearer tokens used to authenticate users to the registry. Users with affected packages have been notified (and the affected tokens invalidated), and now npm has been modified to not upload files that could contain this information, as well as scrubbing the sensitive information out of the environment passed to child scripts. - Per-package
.npmrcfiles are used by some maintainers as a way to scope those packages to a specific registry and its credentials. This is a reasonable use case, but by default.npmrcwas packed into packages, leaking those credentials. npm will no longer include.npmrcwhen packing tarballs.
If you maintain packages and believe you may be affected by either
of the above scenarios (especially if you've received a security
notification from npm recently), please upgrade to npm@2.14.1 as
soon as possible. If you believe you may have inadvertently leaked
your credentials, upgrade to npm@2.14.1 on the affected machine,
and run npm logout and then npm login. Your access tokens will be
invalidated, which will eliminate any risk posed by tokens inadvertently
included in published packages. We apologize for the inconvenience this
causes, as well as the oversight that led to the existence of this issue
in the first place.
Huge thanks to @ChALkeR for bringing these issues to our attention, and for helping us identify affected packages and maintainers. Thanks also to the Node.js security working group for their coördination with the team in our response to this issue. We appreciate everybody's patience and understanding tremendously.
b9474a8fstream-npm@1.0.5: Stop publishing build cruft (config.gypi) and per-project.npmrcfiles to keep local configuration out of published packages. (@othiym23)13c286d#9348 Filter "private" (underscore-prefixed, even when scoped to a registry) configuration values out of child environments. (@othiym23)
BETTER WINDOWS INTEGRATION, ONE STEP AT A TIME
e40e71f#6412 Improve the search strategy used by the npm shims for Windows to prioritize your own local npm installs. npm has really needed this tweak for a long time, so hammer on it and let us know if you run into issues, but with luck it will Just Work. (@joaocgreis)204ebbb#8751 #7333 Keep autorun scripts from interfering with npm package and lifecycle script execution on Windows by adding/dand/swhen invokingcmd.exe. (@saper)
IT SEEMED LIKE AN IDEA AT THE TIME
286f3d9#9201 For a while npm was building HTML partials for use ondocs.npmjs.com, but we weren't actually using them. Stop building them, which makes running the full test suite and installation process around a third faster. (@isaacs)
A SINGLE LONELY DEPENDENCY UPGRADE
v2.14.0 (2015-08-13):
IT'S HERE! KINDA!
This release adds support for teens and orcs (err, teams and organizations) to the npm CLI! Note that the web site and registry-side features of this are still not ready for public consumption.
A beta should be starting in the next couple of weeks, and the features themselves will become public once all that's done. Keep an eye out for more news!
All of these changes were done under #9011:
6424170Added newnpm teamcommand and subcommands. (@zkat)52220d1Added documentation for newnpm teamcommand. (@zkat)4e66830Updatednpm accessto support teams and organizations. (@zkat)ea3eb87Gussied up docs fornpm accesswith new commands. (@zkat)6e0b431Fix upnpm whoamito make the underlying API usable elsewhere. (@zkat)f29c931npm-registry-client@7.0.1: Upgradenpm-registry-clientAPI to supportteamandaccesscalls against the registry. (@zkat)
A FEW EXTRA VERSION BUMPS
c977e12init-package-json@1.8.0: Checks for somenpm@3metadata. (@iarna)5c8c9e5columnify@1.5.2: Updated some dependencies. (@timoxley)5d56742chownr@1.0.1: Tests, docs, and minor style nits. (@isaacs)
ALSO A DOC FIX
v2.13.5 (2015-08-07):
This is another quiet week for the npm@2 release.
@zkat has been working hard on polishing the CLI
bits of the registry's new feature to support direct management of teams and
organizations, and @iarna continues to work through
the list of issues blocking the general release of npm@3, which is looking
more and more solid all the time.
@othiym23 and @zkat have also been at this week's Node.js / io.js collaborator summit, both as facilitators and participants. This is a valuable opportunity to get some face time with other contributors and to work through a bunch of important discussions, but it does leave us feeling kind of sleepy. Running meetings is hard!
What does that leave for this release? A few of the more tricky bug fixes that have been sitting around for a little while now, and a couple dependency upgrades. Nothing too fancy, but most of these were contributed by developers like you, which we think is swell. Thanks!
BUG FIXES
d7271b8#4530 The bash completion script for npm no longer alters global completion behavior around word breaks. (@whitty)c9ce294#7198 When setting up dependencies to be shared vianpm link <package>, only run the lifecycle scripts during the original link, not when runningnpm link <package>ornpm install --linkagainst them. (@murgatroid99)422da66#9108 Clear up minor confusion around wording inbundledDependenciessection ofpackage.jsondocs. (@derekpeterson)6b42d99#9146 Include scripts that run forpreversion,version, andpostversionin the section for lifecycle scripts rather than the genericnpm run-scriptoutput. (@othiym23)
NOPE, NOT DONE WITH DEPENDENCY UPDATES
91a48bbchmodr@1.0.1: Ignore symbolic links when recursively changing mode, just like the Unix command. (@isaacs)4bbc86enock@2.10.0(@pgte)
v2.13.4 (2015-07-30):
JULY ENDS ON A FAIRLY QUIET NOTE
Hey everyone! I hope you've had a great week. We're having a fairly small release this week while we wrap up Teams and Orgs (or, as we've taken to calling it internally, Teens and Orcs).
In other exciting news, a bunch of us are gonna be at the Node.js Collaborator Summit, and you can also find us at wafflejs on Wednesday. Hopefully we'll be seeing some of you there. :)
THE PATCH!!!
So here it is. The patch. Hope it helps. (Thanks, @ktarplee!)
OH AND THERE'S A DEV DEPENDENCIES UPDATE
Hooray.
v2.13.3 (2015-07-23):
I'M SAVING THE GOOD JOKES FOR MORE INTERESTING RELEASES
It's pretty hard to outdo last week's release buuuuut~ I promise I'll have a treat when we release our shiny new Teams and Organizations feature! :D (Coming Soon™). It'll be a real gem.
That means it's a pretty low-key release this week. We got some nice documentation tweaks, a few bugfixes, and other such things, though!
Oh, and a bunch of version bumps. Thanks, semver!
IT'S THE LITTLE THINGS THAT MATTER
2fac6ae#9012 A convenience for releases -- using the globally-installed npm before now was causing minor annoyances, so we just use the exact same npm we're releasing to build the new release. (@zkat)
WHAT DOES THIS BUTTON DO?
There's a couple of doc updates! The last one might be interesting.
4cd3205#9002 Updated docs to list the various files that npm automatically includes and excludes, regardless of settings. (@SimenB)cf09e75#9022 Document the"access"field in"publishConfig". Did you know you don't need to use--access=publicwhen publishing scoped packages?! Just put it in yourpackage.json! Go refresh yourself on scopes packages by checking our docs on them. (@boennemann)bfd73da#9013 fixed typo in changelog (@radarhere)
THE SEMVER MAJOR VERSION APOCALYPSE IS UPON US
Basically, semver is up to @5, and that meant we needed to go in an update a
bunch of our dependencies manually. node-gyp is still pending update, since
it's not ours, though!
9232e58#8972init-package-json@1.7.1(@othiym23)ba44f6b#8972normalize-package-data@2.3.1(@othiym23)3901d3c#8972npm-install-checks@1.0.6(@othiym23)ffcc7dd#8972npm-package-arg@4.0.2(@othiym23)7128f9e#8972npm-registry-client@6.5.1(@othiym23)af28911#8972read-installed@4.0.2(@othiym23)3cc817a#8972 node-gyp needs its own version of semver (@othiym23)f98eccc#8972semver@5.0.1: Stop including browser builds. (@isaacs)
*BUMP*
And some other version bumps for good measure.
254ecfb#8990marked-man@0.1.5: Fixes an issue with documentation rendering where backticks in 2nd-level headers would break rendering (?!?!) (@steveklabnik)79efd79minimatch@2.0.10: A pattern like'*.!(x).!(y)'should not match a name like'a.xyz.yab'. (@isaacs)39c7dc9request@2.60.0: A few bug fixes and doc updates. (@simov)72d3c3arimraf@2.4.2: Minor doc and dep updates (@isaacs)7513035nock@2.9.1(@pgte)3d9aa82Fixes this thing where Kat decided to savenockas a regular dependency ;) (@othiym23)
v2.13.2 (2015-07-16):
HOLD ON TO YOUR TENTACLES... IT'S NPM RELEASE TIME!
Kat: Hooray! Full team again, and we've got a pretty small patch release this week, about everyone's favorite recurring issue: git URLs!
Rebecca: No Way! Again?
Kat: The ride never ends! In the meantime, there's some fun, exciting work in the background to get orgs and teams out the door. Keep an eye out for news. :)
Rebecca: And make sure to keep an eye out for patches for the super-fresh
npm@3!
LET'S GIT INKY
Rebecca: So what's this about another git URL issue?
Kat: Welp, I apparently broke backwards-compatibility on what are actually
invalid git+https URLs! So I'm making it work, but we're gonna deprecate URLs
that look like git+https://user@host:path/is/here.
Rebecca: What should we use instead?!
Kat: Just do me a solid and use git+ssh://user@host:path/here or
git+https://user@host/absolute/https/path instead!
769f06eUpdated tests forgetResolvedso the URLs are run throughnormalize-git-url. (@zkat)edbae68#8881 Added tests to verify thatgit+https:URLs are handled compatibly. (@zkat)
NEWS FLASH! DOCUMENTATION IMPROVEMENTS!
bad4e014#8924 Make sure documented default values inlib/cache.jsproperly correspond to current code. (@watilde)e7a11fd#8036 Clarify the documentation for.npmrcto clarify that it's not read at the project level when doing global installs. (@espadrine)
STAY FRESH~
Kat: That's it for npm core changes!
Rebecca: Great! Let's look at the fresh new dependencies, then!
Kat: See you all next week!
Both: Stay Freeesh~
(some cat form of Forrest can be seen snoring in the corner)
bfa1f45normalize-git-url@3.0.1: Fixes url normalization such thatgit+https:accepts scp syntax, but get converted into absolute-pathhttps:URLs. Also fixes scp syntax so you can have absolute paths after the:(git@myhost.org:/some/absolute/place.git) (@zkat)6f757d2glob@5.0.15: Better handling of ENOTSUP (@isaacs)0920819node-gyp@2.0.2: Fixes an issue with long paths on Win32 (@TooTallNate)
v2.13.1 (2015-07-09):
KAUAI WAS NICE. I MISS IT.
But Forrest's still kinda on vacation, and not just mentally, because he's hanging out with the fine meatbags at CascadiaFest. Enjoy this small bug release.
MAKE OURSELVES HAPPY
40981f2#8862 Make the lifecycle's safety check work with scoped packages. (@tcort)5125856#8855 Make dependency versions of"*"match"latest"when all versions are prerelease. (@iarna)22fdc1dVisually emphasize the correct way to write lifecycle scripts. (@josh-egan)
MAKE TRAVIS HAPPY
413c3acUse npm's2.xbranch for testing its2.xbranch. (@iarna)7602f64Don't prompt for GnuPG passphrase in version lifecycle tests. (@othiym23)
MAKE npm outdated HAPPY
d338668#8796fstream-npm@1.0.4: When packing the package tarball, npm no longer crashes for packages with certain combinations of.npmignoreentries,.gitignoreentries, and lifecycle scripts. (@iarna)dbe7c9cnock@2.7.0: Add matching based on query strings. (@othiym23)
There are new versions of strip-ansi and ansi-regex, but npm only uses them
indirectly, so we pushed them down into their dependencies where they can get
updated at their own pace.
v2.13.0 (2015-07-02):
FORREST IS OUT! LET'S SNEAK IN ALL THE THINGS!
Well, not everything. Just a couple of goodies, like the new npm ping
command, and the ability to add files to the commits created by npm version
with the new version hooks. There's also a couple of bugfixes in npm itself
and some of its dependencies. Here we go!
YES HELLO THIS IS NPM REGISTRY SORRY NO DOG HERE
Yes, that's right! We now have a dedicated npm ping command. It's super simple
and super easy. You ping. We tell you whether you pinged right by saying hello
right back. This should help out folks dealing with things like proxy issues or
other registry-access debugging issues. Give it a shot!
This addresses #5750, and will help
with the npm doctor stuff described in
#6756.
f1f7a85Add ping command to CLI (@michaelnisi)8cec629Add ping command to npm-registry-client (@michaelnisi)0c0c92dFixed ping command issues (added docs, tests, fixed minor bugs, etc) (@zkat)
I'VE WANTED THIS FOR version SINCE LIKE LITERALLY FOREVER AND A DAY
Seriously! This patch lets you add files to the version commit before it's
made, So you can add additional metadata files, more automated changes to
package.json, or even generate CHANGELOG.md automatically pre-commit if
you're into that sort of thing. I'm so happy this is there I can't even. Do you
have other fun usecases for this? Tell
npmbot (@npmjs) about it!
582f170#8620 version: Allow scripts to add files to the commit. (@jamestalmage)
ALL YOUR FILE DESCRIPTORS ARE BELONG TO US
We've had problems in the past with things like EMFILE errors popping up when
trying to install packages with a bunch of dependencies. Isaac patched up
graceful-fs to handle this case
better, so we should be seeing fewer of those.
022691agraceful-fs@4.1.2: Updated so we can monkey patch globally. (@isaacs)c9fb0fdGlobally monkey-patch graceful-fs. This should fix some errors when installing packages with lots of dependencies. (@isaacs)
READ THE FINE DOCS. THEY'VE IMPROVED
5587d0dNice clarification fordirectories.bin(@ujane)20673c7Hey, Windows folks! Check outnvm-windows(@ArtskydJ)
MORE NUMBERS! MORE VALUE!
5afa2d5validate-npm-package-name@2.2.2: Documented package name rules in README (@zeusdeux)021f4d9rimraf@2.4.1: #74 Use async function for bin (to better handle Window'sEBUSY) (@isaacs)5223432osenv@0.1.3: Useos.homedir()polyfill for more reliable output. io.js added the function and the polyfill does a better job than the prior solution. (@sindresorhus)8ebbc90npm-cache-filename@1.0.2: Make sure different git references get different cache folders. This should preventfoo/bar#v1.0andfoo/bar#masterfrom sharing the same cache folder. (@tomekwi)367b854lru-cache@2.6.5: Minor test/typo changes (@isaacs)9fcae61glob@5.0.13: Tiny doc change + stop firing 'match' events for ignored items. (@isaacs)
OH AND ONE MORE THING
7827249PeerDependencieserrors now include the package version. (@NickHeiner)
v2.12.1 (2015-06-25):
HEY WHERE DID EVERYBODY GO
I keep hearing some commotion. Is there something going on? Like, a party or something? Anyway, here's a small release with at least two significant bug fixes, at least one of which some of you have been waiting for for quite a while.
REMEMBER WHEN I SAID "REMEMBER WHEN I SAID THAT THING ABOUT PERMISSIONS?"?
npm@2.12.0 has a change that introduces a fix for a permissions problem
whereby the _locks directory in the cache directory can up being owned by
root. The fix in 2.12.0 takes care of that problem, but introduces a new
problem for Windows users where npm tries to call process.getuid(), which
doesn't exist on Windows. It was easy enough to fix (but more or less
impossible to test, thanks to all the external dependencies involved with
permissions and platforms and whatnot), but as a result, Windows users might
want to skip npm@2.12.0 and go straight to npm@2.12.1. Sorry about that!
7e5da23When using the new, "fixed" cache directory creator, be extra-careful to not callprocess.getuid()on platforms that lack it. (@othiym23)
WHEW! ALL DONE FIXING GIT FOREVER!
New npm CLI team hero @zkat has finally (FINALLY)
fixed the regression somebody (hi!) introduced a couple months ago whereby git
URLs of the format git+ssh://user@githost.com:org/repo.git suddenly stopped
working, and also started being saved (and cached) incorrectly. I am 100% sure
there are absolutely no more bugs in the git caching code at all ever. Mm hm.
Yep. Pretty sure. Maybe. Hmm... I hope.
Sighs audibly.
Let us know if we broke something else with this fix.
94ca4a7#8031 Even thoughgit+ssh://user@githost.com:org/repo.gitisn't a URL, treat it like one for the purposes of npm. (@zkat)e7f56e5#8031normalize-git-url@2.0.0: Handle git URLs (and URL-like remote refs) in a manner consistent with npm's docs. (@zkat)
YEP, THERE ARE STILL DEPENDENCY UPGRADES
679bf47#40read-installed@4.0.1: Handle prerelease versions in top-level dependencies not inpackage.jsonwithout marking those packages as invalid. (@benjamn)3a67410tap@1.3.1(@isaacs)151904anopt@3.0.3(@isaacs)
v2.12.0 (2015-06-18):
REMEMBER WHEN I SAID THAT THING ABOUT PERMISSIONS?
About a million people have filed issues related to having a tough time using npm after they've run npm once or twice with sudo. "Don't worry about it!" I said. "We've fixed all those permissions problems ages ago! Use this one weird trick and you'll never have to deal with this again!"
Well, uh, if you run npm with root the first time you run npm on a machine, it
turns out that the directory npm uses to store lockfiles ends up being owned by
the wrong user (almost always root), and that can, well, it can cause problems
sometimes. By which I mean every time you run npm without being root it'll barf
with EACCES errors. Whoops!
This is an obnoxious regression, and to prevent it from recurring, we've made
it so that the cache, cached git remotes, and the lockfile directories are all
created and maintained using the same utilty module, which not only creates the
relevant paths with the correct permissions, but will fix the permissions on
those directories (if it can) when it notices that they're broken. An npm install run as root ought to be sufficient to fix things up (and if that
doesn't work, first tell us about it, and then run sudo chown -R $(whoami) $HOME/.npm)
Also, I apologize for inadvertently gaslighting any of you by claiming this bug wasn't actually a bug. I do think we've got this permanently dealt with now, but I'll be paying extra-close attention to permissions issues related to the cache for a while.
I WENT TO NODECONF AND ALL I GOT WAS THIS LOUSY SPDX T-SHIRT
That's not literally true. We spent very little time discussing SPDX, @kemitchell is a champ, and I had a lot of fun playing drum & bass to a mostly empty Boogie Barn and only ended up with one moderately severe cold for my pains. Another winner of a NodeConf! (I would probably wear a SPDX T-shirt if somebody gave me one, though.)
A bunch of us did have a spirited discussion of the basics of open-source
intellectual property, and the convergence of me,
@kemitchell, and
@jandrieu in one place allowed us to hammmer out
a small but significant issue that had been bedeviling early adopters of the
new SPDX expression syntax in package.json license fields: how to deal with
packages that are left without a license on purpose.
Refer to the docs
for the specifics, but the short version is that instead of using
LicenseRef-LICENSE for proprietary licenses, you can now use either
UNLICENSED if you want to make it clear that you don't want your software
to be licensed (and want npm to stop warning you about this), or SEE LICENSE IN <filename> if there's a license with custom text you want to use. At some
point in the near term, we'll be updating npm to verify that the mentioned
file actually exists, but for now you're all on the honor system.
4827fc7#8557normalize-package-data@2.2.1: AllowUNLICENSEDandSEE LICENSE IN <filename>in "license" field ofpackage.json. (@kemitchell)16a3dd5#8557 Document the new accepted values for the "license" field. (@kemitchell)8155311#8557init-package-json@1.7.0: Support new "license" field values at init time. (@kemitchell)
SMALLISH BUG FIXES
9d8cac9#8548 Remove extraneous newline fromnpm viewoutput, making it easier to use in shell scripts. (@eush77)765fd4b#8521 When checking for outdated packages, or updating packages, raise an error when the registry is unreachable instead of silently "succeeding". (@ryantemple)
SMALLERISH DOCUMENTATION TWEAKS
5018335#8365 Add details about which git environment variables are whitelisted by npm. (@nmalaguti)bed9edd#8554 Fix typo in version docs. (@rainyday)
WELL, I GUESS THERE ARE MORE DEPENDENCY UPGRADES
7ce2f06request@2.58.0: Refactor tunneling logic, and useextendinstead of abusingutil._extend. (@simov)e6c6195nock@2.6.0: Refined interception behavior. (@pgte)9583cc3fstream-npm@1.0.3: Ensure thatmainentry inpackage.jsonis always included in the bundled package tarball. (@coderhaoxin)df89493fstream@1.0.7(@isaacs)9744049dezalgo@1.0.3:dezalgoshould be usable in the browser, and can be now thatasaphas been upgraded to be browserifiable. (@mvayngrib)
v2.11.3 (2015-06-11):
This was a very quiet week. This release was done by @iarna, while the rest of the team hangs out at NodeConf Adventure!
TESTS IN 0.8 FAIL LESS
THE TREADMILL OF UPDATES NEVER CEASES
9f439daspdx@0.4.1: License range updates (@kemitchell)2dd055bnormalize-package-data@2.2.1: Fixes a crashing bug when the package.jsonscriptsproperty is not an object. (@iarna)e02e85dosenv@0.1.2: Switches to using theos-tmpdirmodule instead ofos.tmpdir()for greate consistency in behavior between node versions. (@iarna)a6f0265ini@1.3.4(@isaacs)7395977rimraf@2.4.0(@isaacs)
v2.11.2 (2015-06-04):
Another small release this week, brought to you by the latest addition to the CLI team, @zkat (Hi, all!)
Mostly small documentation tweaks and version updates. Oh! And npm outdated
is actually sorted now. Rejoice!
It's gonna be a while before we get another palindromic version number. Enjoy it while it lasts. :3
QUALITY OF LIFE HAS NEVER BEEN BETTER
31aada4#8401npm outdatedoutput is just that much nicer to consume now, due to sorting by name. (@watilde)458a919#8469 Explicitly setcwdforpreversion,version, andpostversionscripts. This makes the scripts findable relative to the root dir. (@alexkwolfe)55d6d71Ensure package name and version are included in display duringnpm versionlifecycle execution. Gets rid of those littleundefineds in the console. (@othiym23)
WORDS HAVE NEVER BEEN QUITE THIS READABLE
3901e49#8462 English apparently requires correspondence between indefinite articles and attached nouns. (@Enet4)5a744e4#8421 The effect ofnpm prune's--productionflag and how to use it have been documented a bit better. (@foiseworth)eada625We've updated our.mailmapandAUTHORSfiles to make sure credit is given where credit is due. (@othiym23)
VERSION NUMBERS HAVE NEVER BEEN BIGGER
c929fd1readable-stream@1.1.13: Manually dedupedv1.1.13(streams3) to make deduping more reliable onnpm@<3. (@othiym23)a9b4b78request@2.57.0: Replace dependency on IncomingMessage's.clientwith.socketas the former was deprecated in io.js 2.2.0. (@othiym23)4b5e557abbrev@1.0.7: Better testing, with coverage. (@othiym23)561affesemver@4.3.6: .npmignore added for less cruft, and better testing, with coverage. (@othiym23)60aef3cgraceful-fs@3.0.8: io.js fixes. (@zkat)f8bd453config-chain@1.1.9: Added MIT license to package.json (@zkat)
v2.11.1 (2015-05-28):
This release brought to you from poolside at the Omni Amelia Island Resort and JSConf 2015, which is why it's so tiny.
CONFERENCE WIFI CAN'T STOP THESE BUG FIXES
cf109a6#8381 Documented a subtle gotcha with.npmrc, which is that it needs to have its permissions set such that only the owner can read or write the file. (@colakong)180da67#8365 Git 2.3 adds support forGIT_SSH_COMMAND, which allows you to pass an explicit git command (with, for example, a specific identity passed in on the command line). (@nmalaguti)
MY (VIRGIN) PINA COLADA IS GETTING LOW, BETTER UPGRADE THESE DEPENDENCIES
b72de41node-gyp@2.0.0: Use a newer version ofgyp, and generally improve support for Visual Studios and Windows. (@TooTallNate)8edbe21node-gyp@2.0.1: Don't crash when Python's version doesn't parse as valid semver. (@TooTallNate)ba0e0a8glob@5.0.10: Add coverage to tests. (@isaacs)7333701request@2.56.0: Bug fixes and dependency upgrades. (@simov)
v2.11.0 (2015-05-21):
For the first time in a very long time, we've added new events to the life
cycle used by npm run-script. Since running npm version (major|minor|patch)
is typically the last thing many developers do before publishing their updated
packages, it makes sense to add life cycle hooks to run tests or otherwise
preflight the package before doing a full publish. Thanks, as always, to the
indefatigable @watilde for yet another great
usability improvement for npm!
FEATURELETS
b07f7c7#7906 Add newscriptsto allow you to run scripts before and after thenpm versioncommand has run. This makes it easy to, for instance, require that your test suite passes before bumping the version by just adding"preversion": "npm test"to the scripts section of yourpackage.json. (@watilde)8a46136#8185 When we get a "not found" error from the registry, we'll now check to see if the package name you specified is invalid and if so, give you a better error message. (@thefourtheye)
BUG FIXES
9bcf573#8324 On Windows, when you've configured a customnode-gyp, run it with node itself instead of using the default open action (which is almost never what you want). (@bangbang93)1da9b04#7195 #7260npm-registry-client@6.4.0: (Re-)allow publication of existing mixed-case packages (part 1). (@smikes)e926783#7195 #7260normalize-package-data@2.2.0: (Re-)allow publication of existing mixed-case packages (part 2). (@smikes)
DOCUMENTATION IMPROVEMENTS
f62ee05#8314 Update the README to warn folks away from using the CLI's internal API. For the love of glob, just use a child process to run the CLI! (@claycarpenter)1093921#8279 Update the documentation to note that, yes, you can publish scoped packages to the public registry now! (@mantoni)f87cde5#8292 Fix typo in an example and grammar in the description in the shrinkwrap documentation. (@vshih)d3526ceImprove the formatting in the shrinkwrap documentation. (@othiym23)19fe6d2#8311 Update README.md to use syntax highlighting in its code samples and bits of shell scripts. (@SimenB)
DEPENDENCY UPDATES! ALWAYS AND FOREVER!
fc52160#4700 #5044init-package-json@1.6.0: Make entering an invalid version while runningnpm initgive you an immediate error and prompt you to correct it. (@watilde)738853e#7763fs-write-stream-atomic@1.0.3: Fix a bug where errors would not propagate, making error messages unhelpful. (@iarna)6d74a2dnpm-package-arg@4.0.1: Fix tests on windows (@Bacra) and with more recenthosted-git-info. (@iarna)50f7178hosted-git-info@2.1.4: Correct spelling in its documentation. (@iarna)d7956caglob@5.0.7: Fix a bug where unusual error conditions could make further use of the module fail. (@isaacs)44f7d74tap@1.1.0: Update to the most recent tap to get a whole host of bug fixes and integration with coveralls. (@isaacs)c21e8a8nock@2.2.0(@othiym23)
LICENSE FILES FOR THE LICENSE GOD
- Add missing ISC license file to package (@kasicka):
SPDX LICENSE UPDATES
- Switch license to BSD-2-Clause from plain "BSD" (@isaacs):
- Switch license to ISC from BSD (@isaacs):
- Switch license to ISC from MIT (@isaacs):
v2.10.1 (2015-05-14):
BUG FIXES & DOCUMENTATION TWEAKS
dc77520When getting back a 404 from a request to a private registry that uses a registry path that extends past the root (http://registry.enterprise.co/path/to/registry), display the name of the nonexistent package, rather than the first element in the registry API path. Sorry, Artifactory users! (@hayes)f70dea9Make clearer that--registrycan be used on a per-publish basis to push a package to a non-default registry. (@mischkl)a3e26f5Did you know that GitHub shortcuts can have commit-ishes included (org/repo#branch)? They can! (@iarna)0e2c091Some errors fromreadPackagewere being swallowed, potentially leading to invalid package trees on disk. (@smikes)
DEPENDENCY UPDATES! STILL! MORE! AGAIN!
0b901adlru-cache@2.6.3: Removed some cruft from the published package. (@isaacs)d713e0bmkdirp@0.5.1: Made compliant withstandard, dropped support for Node 0.6, added (Travis) support for Node 0.12 and io.js. (@isaacs)a2d6578glob@1.0.3: Updated to usetap@1. (@isaacs)64cd1a5fstream@ 1.0.6: Made compliant withstandard(done by @othiym23, and then debugged and fixed by @iarna), and license changed to ISC. (@othiym23 / @iarna)b527a7cwhich@1.1.1: Callers can pass in their ownPATHinstead of relying onprocess.env. (@isaacs)
v2.10.0 (2015-05-8):
THE IMPLICATIONS ARE MORE PROFOUND THAN THEY APPEAR
If you've done much development in The Enterprise®™, you know that keeping track of software licenses is far more important than one might expect / hope / fear. Tracking licenses is a hassle, and while many (if not most) of us have (reluctantly) gotten around to setting a license to use by default with all our new projects (even if it's just WTFPL), that's about as far as most of us think about it. In big enterprise shops, ensuring that projects don't inadvertently use software with unacceptably encumbered licenses is serious business, and developers spend a surprising (and appalling) amount of time ensuring that licensing is covered by writing automated checkers and other license auditing tools.
The Linux Foundation has been working on a machine-parseable syntax for license
expressions in the form of SPDX, an appropriately
enterprisey acronym. IP attorney and JavaScript culture hero Kyle
Mitchell has put a considerable amount of effort into
bringing SPDX to JavaScript and Node. He's written
spdx.js, a JavaScript SPDX
expression parser, and has integrated it into npm in a few different ways.
For you as a user of npm, this means:
- npm now has proper support for dual licensing in
package.json, due to SPDX's compound expression syntax. Runnpm help package.jsonfor details. - npm will warn you if the
package.jsonfor your project is either missing a"license"field, or if the value of that field isn't a valid SPDX expression (pro tip:"BSD"becomes"BSD-2-Clause"in SPDX (unless you really want one of its variants);"MIT"and"ISC"are fine as-is; the full list is its own package). npm initnow demands that you use a valid SPDX expression when using it interactively (pro tip: I mostly usenpm init -y, having previously runnpm config set init.license=MIT/npm config set init.author.email=foo/npm config set init.author.name=me).- The documentation for
package.jsonhas been updated to tell you how to use the"license"field properly with SPDX.
In general, this shouldn't be a big deal for anybody other than people trying to run their own automated license validators, but in the long run, if everybody switches to this format, many people's lives will be made much simpler. I think this is an important improvement for npm and am very thankful to Kyle for taking the lead on this. Also, even if you think all of this is completely stupid, just choose a license anyway. Future you will thank past you someday, unless you are djb, in which case you are djb, and more power to you.
8669f7d#8179 Document how to use SPDX inlicensestanzas inpackage.json, including how to migrate from old busted license declaration arrays to fancy new compound-license clauses. (@kemitchell)98ad98c#8197init-package-json@1.5.0Ensure that packages bootstrapped withnpm inituse an SPDX-compliant license expression. (@kemitchell)2ad3905#8197normalize-package-data@2.1.0: Warn when a package is missing a license declaration, or using a license expression that isn't valid SPDX. (@kemitchell)127bb73#8197tar@2.1.1: Switch fromBSDtoISCfor license, where the latter is valid SPDX. (@othiym23)e9a933a#8197once@1.3.2: Switch fromBSDtoISCfor license, where the latter is valid SPDX. (@othiym23)412401f#8197semver@4.3.4: Switch fromBSDtoISCfor license, where the latter is valid SPDX. (@othiym23)
As a corollary to the previous changes, I've put some work into making npm install spew out fewer pointless warnings about missing values in transitive
dependencies. From now on, npm will only warn you about missing READMEs,
license fields, and the like for top-level projects (including packages you
directly install into your application, but we may relax that eventually).
Practically nobody liked having those warnings displayed for child dependencies, for the simple reason that there was very little that anybody could do about those warnings, unless they happened to be the maintainers of those dependencies themselves. Since many, many projects don't have SPDX-compliant licenses, the number of warnings reached a level where they ran the risk of turning into a block of visual noise that developers (read: me, and probably you) would ignore forever.
So I fixed it. If you still want to see the messages about child dependencies,
they're still there, but have been pushed down a logging level to info. You
can display them by running npm install -d or npm install --loglevel=info.
eb18245Only warn on normalization errors for top-level dependencies. Transitive dependency validation warnings are logged atinfolevel. (@othiym23)
BUG FIXES
e40e809tap@1.0.1: TAP: The Next Generation. Fix up many tests to they work properly with the new major version ofnode-tap. Look at all the colors! (@isaacs)f9314e9nock@1.9.0: Minor tweaks and bug fixes. (@pgte)45c2b1a#8187npm lswasn't properly recognizing dependencies installed from GitHub repositories as git dependencies, and so wasn't displaying them as such. (@zornme)1ab57c3In some cases,npm helpwas using something that looked like a regular expression where a glob pattern should be used, and vice versa. (@isaacs)
v2.9.1 (2015-04-30):
WOW! MORE GIT FIXES! YOU LOVE THOSE!
The first item below is actually a pretty big deal, as it fixes (with a
one-word change and a much, much longer test case (thanks again,
@iarna)) a regression that's been around for months
now. If you're depending on multiple branches of a single git dependency in a
single project, you probably want to check out npm@2.9.1 and verify that
things (again?) work correctly in your project.
178a6ad#7202 When caching git dependencies, do so by the whole URL, including the branch name, so that if a single application depends on multiple branches from the same repository (in practice, multiple version tags), every install is of the correct version, instead of reusing whichever branch the caching process happened to check out first. (@iarna)63b79cc#8084 Ensure that Bitbucket, GitHub, and Gitlab dependencies are installed the same way as non-hosted git dependencies, fixingnpm install --link. (@laiso)
DOCUMENTATION FIXES AND TWEAKS
These changes may seem simple and small (except Lin's fix to the package name restrictions, which was more an egregious oversight on our part), but cleaner documentation makes npm significantly more pleasant to use. I really appreciate all the typo fixes, clarifications, and formatting tweaks people send us, and am delighted that we get so many of these pull requests. Thanks, everybody!
ca478dc#8137 Somehow, we had failed to clearly document the full restrictions on package names. @linclark has now fixed that, although we will take with us to our graves the reasons why the maximum package name length is 214 characters (well, OK, it was that that was the longest name in the registry when we decided to put a cap on the name length). (@linclark)b574076#8079 Make thenpm shrinkwrapdocumentation use code formatting for examples consistently. It would be great to do this for more commands HINT HINT. (@RichardLitt)1ff636e#8105 Document that the globalnpmrcgoes in$PREFIX/etc/npmrc, instead of$PREFIX/npmrc. (@anttti)c3f2f7c#8127 Document how to usenpm run builddirectly (hint: it's different fromnpm build!). (@mikemaccana)873e467#8069 Take the old, dead npm mailing list address out ofpackage.json. It seems that people don't have much trouble figuring out how to report errors to npm. (@robertkowalski)
ENROBUSTIFICATIONMENT
5abfc9c#7973npm run-scriptcompletion will only suggest run scripts, instead of including dependencies. If for some reason you still wanted it to suggest dependencies, let us know. (@mantoni)4b564f0#8081 Useosenvto parse the environment'sPATHin a platform-neutral way. (@watilde)a4b6238#8094 When we refactored the configuration code to split out checking for IPv4 local addresses, we inadvertently completely broke it by failing to return the values. In addition, just the call toos.getInterfaces()could throw on systems where querying the network configuration requires elevated privileges (e.g. Amazon Lambda). Add the return, and trap errors so they don't cause npm to explode. Thanks to @mhart for bringing this to our attention! (@othiym23)
DEPENDENCY UPDATES WAIT FOR NO SOPHONT
000cd8brimraf@2.3.3: More informative assertions on argument validation failure. (@isaacs)530a2e3lru-cache@2.6.2: Revert to old key access-time behavior, as it was correct all along. (@isaacs)d88958cminimatch@2.0.7: Feature detection and test improvements. (@isaacs)3fa39e4nock@1.7.1(@pgte)
v2.9.0 (2015-04-23):
This week was kind of a breather to concentrate on fixing up the tests on the
multi-stage branch, and not mess with git issues for a little while.
Unfortunately, There are now enough severe git issues that we'll probably have
to spend another couple weeks tackling them. In the meantime, enjoy these two
small features. They're just enough to qualify for a semver-minor bump:
NANOFEATURES
2799322#7426 Include local modules innpm outdatedandnpm update. (@ArnaudRinquin)2114862#8014 The prefix used before the version on version tags is now configurable viatag-version-prefix. Be careful with this one and read the docs before using it. (@kkragenbrink)
OTHER MINOR TWEAKS
18ce0ec#3032npm unpublishwill now use the registry set inpackage.json, just likenpm publish. This only applies, for now, when unpublishing the entire package, as unpublishing a single version requires the name be included on the command line and therefore doesn't read frompackage.json. (@watilde)9ad2100#8008 Once again, when considering what to install onnpm install, includedevDependencies. (@smikes)5466260#8003 Clarify the documentation around scopes to make it easier to understand how they support private packages. (@smikes)
DEPENDENCIES WILL NOT STOP UNTIL YOU ARE VERY SLEEPY
faf65a7init-package-json@1.4.2: If there are multiple validation errors and warnings, ensure they all get displayed (includes a rad new way of testinginit-package-jsoncontributed by @michaelnisi). (@MisumiRize)7f10f38editor@1.0.0:1.0.0is literally more than0.1.0(no change aside from version number). (@substack)4979af3#6805npm-registry-client@6.3.3: Decode scoped package names sent by the registry so they look nicer. (@mmalecki)
v2.8.4 (2015-04-16):
This is the fourth release of npm this week, so it's mostly just landing a few
small outstanding PRs on dependencies and some tiny documentation tweaks.
npm@2.8.3 is where the real action is.
ee2bd77#7983tar@2.1.0: Better error reporting in corrupted tar files, and add support for thefromBaseflag (rescued from the dustbin of history by @deanmarano). (@othiym23)d8eee6cinit-package-json@1.4.1: Add support for a default author, and only add scope to a package name once. (@othiym23)4fc5d98lru-cache@2.6.1: Small tweaks to cache value aging and entry counting that are irrelevant to npm. (@isaacs)1fe5840#7946 Makenpm inittext friendlier. (@sandfox)
v2.8.3 (2015-04-15):
TWO SMALL GIT TWEAKS
This is the last of a set of releases intended to ensure npm's git support is robust enough that we can stop working on it for a while. These fixes are small, but prevent a common crasher and clear up one of the more confusing error messages coming out of npm when working with repositories hosted on git.
387f889#7961 Ensure that hosted git SSH URLs always have a valid protocol when stored inresolvedfields innpm-shrinkwrap.json. (@othiym23)394c2f5Switch the order in which hosted Git providers are checked togit:,git+https:, thengit+ssh:(fromgit:,git+ssh:, thengit+https:) in an effort to go from most to least likely to succeed, to make for less confusing error message. (@othiym23)
v2.8.2 (2015-04-14):
PEACE IN OUR TIME
npm has been having an issue with CouchDB's web server since the release
of io.js and Node.js 0.12.0 that has consumed a huge amount of my time
to little visible effect. Sam Mikes picked up the thread from me, and
after a lot of effort
figured out that ultimately there are probably a couple problems with
the new HTTP Agent keep-alive handling in new versions of Node. In
addition, npm-registry-client was gratuitously sending a body along
with a GET request which was triggering the bugs. Sam removed about 10 bytes from
one file in npm-registry-client, and this problem, which has been bugging us for months,
completely went away.
In conclusion, Sam Mikes is great, and anybody using a private registry hosted on CouchDB should thank him for his hard work. Also, thanks to the community at large for pitching in on this bug, which has been around for months now.
431c3bf#7699npm-registry-client@6.3.2: Don't send body with HTTP GET requests when logging in. (@smikes)
v2.8.1 (2015-04-12):
CORRECTION: NPM'S GIT INTEGRATION IS DOING OKAY
A helpful bug report
led to another round of changes to
hosted-git-info,
some additional test-writing, and a bunch of hands-on testing against actual
private repositories. While the complexity of npm's git dependency handling is
nearly fractal (because npm is very complex, and git is even more complex),
it's feeling way more solid than it has for a while. We think this is a
substantial improvement over what we had before, so give npm@2.8.1 a shot if
you have particularly complex git use cases and
let us know how it goes.
(NOTE: These changes mostly affect cloning and saving references to packages hosted in git repositories, and don't address some known issues with things like lifecycle scripts not being run on npm dependencies. Work continues on other issues that affect parity between git and npm registry packages.)
66377c6#7872hosted-git-info@2.1.2: Pass through credentials embedded in SSH and HTTPs git URLs. (@othiym23)15efe12#7872 Use the new version ofhosted-git-infoto pass along credentials embedded in git URLs. Test it. Test it a lot. (@othiym23)
SCOPED DEPENDENCIES AND PEER DEPENDENCIES: NOT QUITE REESE'S
Big thanks to @ewie for identifying an issue with
how npm was handling peerDependencies that were implicitly installed from the
package.json files of scoped dependencies. This
will be a moot point
with the release of npm@3, but until then, it's important that
peerDependency auto-installation work as expected.
b027319#7920 Scoped packages withpeerDependencieswere installing thepeerDependenciesinto the wrong directory. (@ewie)649e31a#7920 TestpeerDependencyinstalls involving scoped packages usingnpm-package-arginstead of simple path tests, for consistency. (@othiym23)
MAKING IT EASIER TO WRITE NPM TESTS, VERSION 0.0.1
@iarna and I
(@othiym23) have been discussing a
candidate plan
for improving npm's test suite, with the goal of making it easier for new
contributors to get involved with npm by reducing the learning curve
necessary to be able to write good tests for proposed changes. This is the
first substantial piece of that effort. Here's what the commit message for
ed7e249
had to say about this work:
It's too difficult for npm contributors to figure out what the conventional style is for tests. Part of the problem is that the documentation in CONTRIBUTING.md is inadequate, but another important factor is that the tests themselves are written in a variety of styles. One of the most notable examples of this is the fact that many tests use fixture directories to store precooked test scenarios and package.json files.
This had some negative consequences:
- tests weren't idempotent
- subtle dependencies between tests existed
- new tests get written in this deprecated style because it's not obvious that the style is out of favor
- it's hard to figure out why a lot of those directories existed, because they served a variety of purposes, so it was difficult to tell when it was safe to remove them
All in all, the fixture directories were a major source of technical debt, and cleaning them up, while time-consuming, makes the whole test suite much more approachable, and makes it more likely that new tests written by outside contributors will follow a conventional style. To support that, all of the tests touched by this changed were cleaned up to pass the
standardstyle checker.
And here's a little extra context from a comment I left on #7929:
One of the other things that encouraged me was looking at this presentation on technical debt from Pycon 2015, especially slide 53, which I interpreted in terms of difficulty getting new contributors to submit patches to an OSS project like npm. npm has a long ways to go, but I feel good about this change.
ed7e249#7929 Eliminate fixture directories fromtest/tap, leaving each test self-contained. (@othiym23)4928d30#7929 Move fixture files fromtest/tap/*totest/fixtures. (@othiym23)e925deb#7929 Tweak the run scripts to stop slaughtering the CPU on doc rebuild. (@othiym23)65bf7cf#7923 Use an alias of scripts and run-scripts innpm run test-all(@watilde)756a3fb#7923 Sync timeout time ofnpm run-script test-allto be the same astestandtapscripts. (@watilde)8299b5fSet a timeout for tap tests fornpm run-script test-all. (@othiym23)
THE EVER-BEATING DRUM OF DEPENDENCY UPDATES
d90d0b9#7924 Removechild-process-close, as it was included for Node 0.6 compatibility, and npm no longer supports 0.6. (@robertkowalski)16427c1lru-cache@2.5.2: More accurate updating of expiry times whenmaxAgeis set. (@isaacs)03cce83nock@1.6.0: Mocked network error handling. (@pgte)f93b1f0glob@5.0.5: Usepath-is-absolutepolyfill, allowing newer Node.js and io.js versions to usepath.isAbsolute(). (@sindresorhus)a70d694request@2.55.0: Bug fixes and simplification. (@simov)2aecc6fcolumnify@1.5.1: Switch to using babel from 6to5. (@timoxley)
v2.8.0 (2015-04-09):
WE WILL NEVER BE DONE FIXING NPM'S GIT SUPPORT
If you look at the last release's release
notes,
you will note that they confidently assert that it's perfectly OK to force all
GitHub URLs through the same git: -> git+ssh: fallback flow for cloning. It
turns out that many users depend on git+https: URLs in their build
environments because they use GitHub auth tokens instead of SSH keys. Also, in
some cases you just want to be able to explicitly say how a given dependency
should be cloned from GitHub.
Because of the way we resolved the inconsistency in GitHub shorthand handling
before, this
turned out to be difficult to work around. So instead of hacking around it, we
completely redid how git is handled within npm and its attendant packages.
Again. This time, we changed things so that normalize-package-data and
read-package-json leave more of the git logic to npm itself, which makes
handling shorthand syntax consistently much easier, and also allows users to
resume using explicit, fully-qualified git URLs without npm messing with them.
Here's a summary of what's changed:
- Instead of converting the GitHub shorthand syntax to a
git+ssh:,git:, orgit+https:URL and saving that, save the shorthand itself topackage.json. - If presented with shortcuts, try cloning via the git protocol, SSH, and HTTPS (in that order).
- No longer prompt for credentials -- it didn't work right with the spinner,
and wasn't guaranteed to work anyway. We may experiment with doing this a
better way in the future. Users can override this by setting
GIT_ASKPASSin their environment if they want to experiment with interactive cloning, but should also set--no-spinon the npm command line (or runnpm config set spin=false). - EXPERIMENTAL FEATURE: Add support for
github:,gist:,bitbucket:, andgitlab:shorthand prefixes. GitHub shortcuts will continue to be normalized toorg/repoinstead of being saved asgithub:org/repo, butgitlab:,gist:, andbitbucket:prefixes will be used on the command line and frompackage.json. BE CAREFUL WITH THIS.package.jsonfiles published with the new shorthand syntax can only be read bynpm@2.8.0and later, and this feature is mostly meant for playing around with it. If you want to save git dependencies in a form that older versions of npm can read, use--save-exact, which will save the git URL and resolved commit hash of the head of the branch in a manner similar to the way that--save-exactpins versions for registry dependencies. This is documented (so checknpm help installfor details), but we're not going to make a lot of noise about it until it has a chance to bake in a little more.
It is @othiym23's sincere hope that this will resolve all of the inconsistencies users were seeing with GitHub and git-hosted packages, but given the level of change here, that may just be a fond wish. Extra testing of this change is requested.
6b0f588#7867 Use git shorthand and git URLs as presented by user. Support newhosted-git-infoshortcut syntax. Save shorthand inpackage.json. Try cloning viagit:,git+ssh:, andgit+https:, in that order, when supported by the underlying hosting provider. (@othiym23)75d4267#7867 Document new GitHub, GitHub gist, Bitbucket, and GitLab shorthand syntax. (@othiym23)7d92c75#7867 When--save-exactis used with git shorthand or URLs, save the fully-resolved URL, with branch name resolved to the exact hash for the commit checked out. (@othiym23)9220e59#7867 Ensure that non-prefixed and non-normalized GitHub shortcuts are saved topackage.json. (@othiym23)dd398e9#7867hosted-git-info@2.1.1: Ensure thatgist:shorthand survives being round-tripped throughpackage.json. (@othiym23)33d1420#7867hosted-git-info@2.1.0: Add support for auth embedded directly in git URLs. (@othiym23)23a1d5a#7867hosted-git-info@2.0.2: Make it possible to determine in which form a hosted git URL was passed. (@iarna)eaf75ac#7867normalize-package-data@2.0.0: Normalize GitHub specifiers so they pass through shortcut syntax and preserve explicit URLs. (@iarna)95e0535#7867npm-package-arg@4.0.0: Add git URL and shortcut to hosted git spec and usehosted-git-info@2.0.2. (@iarna)a808926#7867realize-package-specifier@3.0.0: Usenpm-package-arg@4.0.0and test shortcut specifier behavior. (@iarna)6dd1e03#7867init-package-json@1.4.0: Allow dependency onread-package-json@2.0.0. (@iarna)63254bb#7867read-installed@4.0.0: Useread-package-json@2.0.0. (@iarna)254b887#7867read-package-json@2.0.0: Usenormalize-package-data@2.0.0. (@iarna)0b9f8be#7867npm-registry-client@6.3.0: Mark compatibility withnormalize-package-data@2.0.0andnpm-package-arg@4.0.0. (@iarna)f40ecaa#7867 Extract a common method to use when cloning git repos for testing. (@othiym23)
TEST FIXES FOR NODE 0.8
npm continues to get closer to being completely green on Travis for Node 0.8.
26d36e9#7842 When spawning child processes, map exit code 127 to ENOENT so Node 0.8 handles child process failures the same as later versions. (@SonicHedgehog)54cd895#7842 Node 0.8 requires -e with -p when evaluating snippets; fix test. (@SonicHedgehog)
SMALL FIX AND DOC TWEAK
20e9003tar@2.0.1: Fix regression where relative symbolic links within an extraction root that pointed within an extraction root would get normalized to absolute symbolic links. (@isaacs)2ef8898#7879 Better document thatnpm publish --tag=foowill not setlatestto that version. (@linclark)
v2.7.6 (2015-04-02):
GIT MEAN, GIT TUFF, GIT ALL THE WAY AWAY FROM MY STUFF
Part of the reason that we're reluctant to take patches to how npm deals with
git dependencies is that every time we touch the git support, something breaks.
The last few releases are a case in point. npm@2.7.4 completely broke
installing private modules from GitHub, and npm@2.7.5 fixed them at the cost
of logging a misleading error message that caused many people to believe that
their dependencies hadn't been successfully installed when they actually had
been.
This all started from a desire to ensure that GitHub shortcut syntax is being
handled correctly. The correct behavior is for npm to try to clone all
dependencies on GitHub (whether they're specified with the GitHub
organization/repository shortcut syntax or not) via the plain git: protocol
first, and to fall back to using git+ssh: if git: doesn't work. Previously,
sometimes npm would use git: and git+ssh: in some cases (most notably when
using GitHub shortcut syntax on the command line), and use git+https: in
others (when the GitHub shortcut syntax was present in package.json). This
led to subtle and hard-to-understand inconsistencies, and we're glad that as of
npm@2.7.6, we've finally gotten things to where they were before we started,
only slightly more consistent overall.
We are now going to go back to our policy of being extremely reluctant to touch the code that handles Git dependencies.
b747593#7630 Don't automatically log all git failures as errors.maybeGithubneeds to be able to fail without logging to support its fallback logic. (@othiym23)cd67a0d#7829 When fetching a git remote URL, handle failures gracefully (without assuming standard output exists). (@othiym23)637c7d1#7829 When fetching a git remote URL, handle failures gracefully (without assuming standard error exists). (@othiym23)
OTHER SIGNIFICANT FIXES
78005eb#7743 Always quote arguments passed tonpm run-script. This allows build systems and the like to safely escape glob patterns passed as arguments torun-scriptswith `npm run-script <script> -- `. This is a tricky change to test, and may be reverted or moved to `npm@3` if it turns out it breaks things for users. ([@mantoni](https://github.com/mantoni))da015ee#7074read-package-json@1.3.3:read-package-jsonno longer cachespackage.jsonfiles, which trades a very small performance loss for the elimination of a large class of really annoying race conditions. See #7074 for the grisly details. (@othiym23)dd20f57init-package-json@1.3.2: Only add the@to scoped package names if it's not already there when reading from the filesystem (@watilde), and support inline validation of package names (@michaelnisi).
SMALL FIXES AND DEPENDENCY UPGRADES
1f380f6#7820are-we-there-yet@1.0.4: Usereadable-streaminstead of built-instreammodule to better support Node.js 0.8.x. (@SonicHedgehog)d380188semver@4.3.3: Don't throw onsemver.parse(null), and parse numeric version strings more robustly. (@isaacs)01d9964nock@1.4.0: This change may need to be rolled back, or rolled forward, because nock depends onsetImmediate, which causes tests to fail when run with Node.js 0.8. (@othiym23)91f5cb1#7791 Fix brackets in npmconf so thatloadedis set correctly. (@charmander)1349e27#7818 UpdateREADME.mdto point out that the install script now lives on https://www.npmjs.com. (@weisjohn)
v2.7.5 (2015-03-26):
SECURITY FIXES
300834etar@2.0.0: Normalize symbolic links that point to targets outside the extraction root. This prevents packages containing symbolic links from overwriting targets outside the expected paths for a package. Thanks to Tim Cuthbertson and the team at Lift Security for working with the npm team to identify this issue. (@othiym23)0dc6875semver@4.3.2: Package versions can be no more than 256 characters long. This prevents a situation in which parsing the version number can use exponentially more time and memory to parse, leading to a potential denial of service. Thanks to Adam Baldwin at Lift Security for bringing this to our attention. (@isaacs)
BUG FIXES
5811468#7713 Add a test fornpm linkandnpm link <package>. (@watilde)3cf3b0c#7713 Only use absolute symbolic links whennpm linking. (@hokaccha)f35aa93#7443 Keep relative URLs when hitting search endpoint. (@othiym23)eab6184#7766 One last tweak to ensure that GitHub shortcuts work with private repositories. (@iarna)5d7f704#7656 Don't try to load a deleted CA file, allowing thecafileconfig to be changed. (@KenanY)a840a13#7746 Only fix up URL paths when there are paths to fix up. (@othiym23)
DEPENDENCY UPDATES
94df809request@2.54.0: Fixes for Node.js 0.12 and io.js. (@simov)98a13eaopener@1.4.1: Deal withstarton Windows more conventionally. (@domenic)c2417c7require-inject@1.2.0: Add installGlobally to bypass cleanups. (@iarna)
DOCUMENTATION FIXES
f87c728#7696 Months and minutes were swapped in doc-build.sh (@MeddahJ)4e216b2#7752 Update string examples to be properly quoted. (@snuggs)402f52a#7635 Clarify Windows installation instructions. (@msikma)c910399small typo fix toCHANGELOG.md(@e-jigsaw)
v2.7.4 (2015-03-20):
BUG FIXES
fe1bc38#7672npm-registry-client@3.1.2: Fix client-side certificate handling by correcting property name. (@atamon)3ce3cc2#7635fstream-npm@1.0.2: Raise a more descriptive error whenbundledDependenciesisn't an array. (@KenanY)3a12723#7661 Allow setting--registryon the command line to trump the mapped registry for--scope. (@othiym23)89ce829#7630hosted-git-info@1.5.3: Part 3 of ensuring that GitHub shorthand is handled consistently. (@othiym23)63313eb#7630realize-package-specifier@2.2.0: Part 2 of ensuring that GitHub shorthand is handled consistently. (@othiym23)3ed41bf#7630npm-package-arg@3.1.1: Part 1 of ensuring that GitHub shorthand is handled consistently. (@othiym23)
DEPENDENCY UPDATES
6a498c6npm-registry-couchapp@2.6.7: Ensure that npm continues to work with new registry architecture. (@bcoe)bd72c47glob@5.0.3: Updated to latest version. (@isaacs)4bfbaa2npmlog@1.2.0: Getting up to date with latest version (but not using any of the new features). (@othiym23)
A NEW REGRESSION TEST
3703b0bAdd regression test fornpm versionto ensuremessageproperty in config continues to be honored. (@dannyfritz)
v2.7.3 (2015-03-16):
HAHA WHOOPS LIL SHINKWRAP ISSUE THERE LOL
1549106#7641 Due to 448efd0, runningnpm shrinkwrap --devcaused production dependencies to no longer be included innpm-shrinkwrap.json. Whoopsie! (@othiym23)
v2.7.2 (2015-03-12):
NPM GASTROENTEROLOGY
fb0ac26#7579 Only block removing files and links when we're sure npm isn't responsible for them. This change is hard to summarize, because if things are working correctly you should never see it, but if you want more context, just go read the commit message, which lays it all out. (@othiym23)051c473#7552bundledDependenciesare now properly included in the installation context. This is another fantastically hard-to-summarize bug, and once again, I encourage you to read the commit message if you're curious about the details. The snappy takeaway is that this unbreaks many use cases forember-cli. (@othiym23)
LESS DRAMATIC CHANGES
fcd9247#7597 Awk varies pretty dramatically from platform to platform, so use Perl to generate the AUTHORS list instead. (@KenanY)721b17a#7598npm install --savereally isn't experimental anymore. (@RichardLitt)
DEPENDENCY REFRESH
a91f2c7#7559node-gyp@1.0.3Switchnode-gypto usestdioinstead ofcustomFdsso it stops printing a deprecation warning every time you build a native dependency. (@jeffbski)0c85db7rimraf@2.3.2: Globbing now deals with paths containing valid glob metacharacters better. (@isaacs)d14588eminimatch@2.0.4: Bug fixes. (@isaacs)aa9952egraceful-fs@3.0.6: Bug fixes. (@isaacs)
v2.7.1 (2015-03-05):
GITSANITY
6823807#7121npm install --savefor Git dependencies saves the URL passed in, instead of the temporary directory used to clone the remote repo. Fixes using Git dependencies when shrinkwrapping. In the process, rewrote the Git dependency caching code. Again. No more single-letter variable names, and a much clearer workflow. (@othiym23)c8258f3#7486 When installing Git remotes, the caching code was passing in the functiongitEnvinstead of the results of invoking it. (@functino)c618eed#2556 Make it possible to install Git dependencies when using--linkby not linking just the Git dependencies. (@smikes)
WHY DID THIS TAKE SO LONG.
abdd040read-package-json@1.3.2: Provide more helpful error messages when JSON parse errors are encountered by using a more forgiving JSON parser than JSON.parse. (@smikes)
BUGS & TWEAKS
c56cfcd#7525npm dedupehandles scoped packages. (@KidkArolis)1b8ba74#7531npm starsandnpm whoamiwill no longer send the registry the error text saying you need to log in as your username. (@othiym23)6de1e91#6441 Prevent needless reinstalls by only updating packages when the current version isn't the same as the version returned aswantedbynpm outdated. (@othiym23)2abc3eeAddnpm upgradeas an alias fornpm update. (@othiym23)bcd4722#7508 FreeBSD usesEAI_FAILinstead ofENOTFOUND. (@othiym23)21c1ac4#7507 Update support URL in generic error handler tohttps:fromhttp:. (@watilde)b6bd99a#7492 On install, thepackage.jsonengineStrictdeprecation only warns for the current package. (@othiym23)4ef1412#7075 If you try to tag a release as a valid semver range,npm publishandnpm tagwill error early instead of proceeding. (@smikes)ad53d0fUserimrafin npm build script because Windows doesn't know what rm is. (@othiym23)8885c4drimraf@2.3.1: Better Windows support. (@isaacs)8885c4dglob@4.4.2: Handle bad symlinks properly. (@isaacs)
###E TYPSO & CLARFIICATIONS
dId yuo know that submiting fxies for doc tpyos is an exclelent way to get strated contriburting to a new open-saurce porject?
42c605cFix typo inCHANGELOG.md(@adrianblynch)c9bd58dAdd note aboutnode_modules/.binbeing added to the path innpm run-script. (@quarterto)903bdd1Matt Ranney confused the world when he renamednode-redistoredis. "The world" includes npm's documentation. (@RichardLitt)dea9bb2Fix typo in contributor link. (@watilde)1226ca9Properly close code block in npm-install.md. (@olizilla)
v2.7.0 (2015-02-26):
SOMETIMES SEMVER MEANS "SUBJECTIVE-EMPATHETIC VERSIONING"
For a very long time (maybe forever?), the documentation for npm run-script
has said that npm restart will only call npm stop and npm start when
there is no command defined as npm restart in package.json. The problem
with this documentation is that npm run-script was apparently never wired up
to actually work this way.
Until now.
If the patch below were landed on its own, free of context, it would be a
breaking change. But, since the "new" behavior is how the documentation claims
this feature has always worked, I'm classifying it as a patch-level bug fix. I
apologize in advance if this breaks anybody's deployment scripts, and if it
turns out to be a significant regression in practice, we can revert this change
and move it to npm@3, which is allowed to make breaking changes due to being
a new major version of semver.
2f6a1df#1999 Only runstopandstartscripts (plus their pre- and post- scripts) when there's norestartscript defined. This makes it easier to support graceful restarts of services managed by npm. (@watilde / @scien)
A SMALL FEATURE WITH BIG IMPLICATIONS
145af65#4887 Replace calls to thenode-gypscript bundled with npm by passing the--node-gyp=/path/to/node-gypoption to npm. Swap inpangypor a version ofnode-gypmodified to work better with io.js without having to touch npm's code! (@ackalker)
@WATILDE'S NPM USABILITY CORNER
Following npm@2.6.1's unexpected fix of many of the issues with npm update -g simply by making --depth=0 the default for npm outdated, friend of npm
@watilde has made several modest changes to npm's
behavior that together justify bumping npm's minor version, as well as making
npm significantly more pleasant to use:
448efd0#2853 Add support for--devand--prodtonpm ls, so that you can list only the trees of production or development dependencies, as desired. (@watilde)a0a8777#7463 Split the list printed bynpm run-scriptinto lifecycle scripts and scripts directly invoked vianpm run-script. (@watilde)a5edc17#6749init-package-json@1.3.1: Support for passing scopes tonpm initso packages are initialized as part of that scope / organization / team. (@watilde)
SMALLER FEATURES AND FIXES
It turns out that quite a few pull requests had piled up on npm's issue tracker, and they included some nice small features and fixes:
f33e8b8#7354 Add--if-presentflag to allow e.g. CI systems to call (semi-) standard build tasks defined inpackage.json, but don't raise an error if no such script is defined. (@jussi-kalliokoski)7bf85cc#4005 #6248 Globally unlink a package whennpm rm/npm unlinkis called with no arguments. (@isaacs)a2e04bd#7294 Ensure that when depending ongit+<proto>URLs, npm doesn't keep tacking additionalgit+prefixes onto the front. (@twhid)0f87f5e#6422 When depending on GitHub private repositories, make sure we construct the Git URLS correctly. (@othiym23)50f461d#4595 Support finding compressed manpages. It's still up to the system to figure out how to display them, though. (@pshevtsov)44da664#7465 When calling git, log the full command, with all arguments, on error. (@thriqon)9748d5cAdd parent to error onETARGETerror. (@davglass)37038d7#4663 Remove hackaround for Linux tests, as it's evidently no longer necessary. (@mmalecki)d7b7853#2612 Add support for path completion onnpm install, which narrows completion to only directories containingpackage.jsonfiles. (@deestan)628fcdbRemove all command completion calls to-/short, because it's been removed from the primary registry for quite some time, and is generally a poor idea on any registry with more than a few hundred packages. (@othiym23)3f6061d#6659 Instead of removing zsh completion global, make it a local instead. (@othiym23)
DOCUMENTATION TWEAKS
5bc70e6#7417 Provide concrete examples of how the newnpm updatedefaults work in practice, tied to actual test cases. Everyone interested in usingnpm update -gnow that it's been fixed should read these documents, as should anyone interested in writing documentation for npm. (@smikes)8ac6f21#6543 Clarifynpm-scriptswarnings to de-emphasize dangers of usinginstallscripts. (@zeke)ebe3b37#6711 Note that git tagging of versions can be disabled via--no-git-tag-verson. (@smikes)2ef5771#6711 Documentgit-tag-versionconfiguration option. (@KenanY)95e59b2Document thatNODE_ENV=productionbehaves analogously to--productiononnpm install. (@stefaneg)687117a#7463 Document the new script grouping behavior in the man page fornpm run-script. (@othiym23)536b2b6Rescue one of the the disabled tests and make it work properly. (@smikes)
DEPENDENCY UPDATES
89fc6a4which@1.0.9: Test for being run as root, as well as the current user. (@isaacs)5d0612fglob@4.4.1: Better error message to explain why calling sync glob with a callback results in an error. (@isaacs)64b07f6tap@0.7.1: More accurate counts of pending & skipped tests. (@rmg)8fda451semver@4.3.1: Make official the fact thatnode-semverhas moved from @isaacs's organization to @npm's. (@isaacs)
v2.6.1 (2015-02-19):
8b98f0e#4471npm outdated(and onlynpm outdated) now defaults to--depth=0. See the docs for--depthfor the mildly confusing details. (@smikes)aa79194#6565 TweakpeerDependencydeprecation warning to include which peer dependency on which package is going to need to change. (@othiym23)5fa067f#7171 TweakengineStrictdeprecation warning to include whichpackage.jsonis using it. (@othiym23)0fe0caaglob@4.4.0: Glob patterns can now ignore matches. (@isaacs)
v2.6.0 (2015-02-12):
A LONG-AWAITED GUEST
38c4825#5068 Add new logout command, and make it do something useful on both bearer-based and basic-based authed clients. (@othiym23)4bf0f5dnpm-registry-client@6.1.1: Support newlogoutendpoint to invalidate token for sessions. (@othiym23)
DEPRECATIONS
c8e08e6#6565 Warn thatpeerDependencybehavior is changing and add a note to the docs. (@othiym23)7c81a5f#7171 Warn thatengineStrictinpackage.jsonwill be going away in the next major version of npm (coming soon!) (@othiym23)
BUG FIXES & TWEAKS
add5890#4668read-package-json@1.3.1: Warn when abinsymbolic link is a dangling reference. (@nicks)4b42071semver@4.3.0: Add functions to extract parts of the version triple, fix a typo. (@isaacs)a9aff38Use full path for man pages as the symbolic link source, instead of just the file name. (@bengl)6fd0fbd#7233 Ensureglobalconfigpath exists before trying to edit it. (@ljharb)a0a2620ini@1.3.3: Allow embedded, quoted equals signs in ini field names. (@isaacs)
Also typos and other documentation issues were addressed by @rutsky, @imurchie, @marcin-wosinek, @marr, @amZotti, and @karlhorky. Thank you, everyone!
v2.5.1 (2015-02-06):
This release doesn't look like much, but considerable effort went into ensuring that npm's tests will pass on io.js 1.1.0 and Node 0.11.16 / 0.12.0 on both OS X and Linux.
NOTE: there are no actual changes to npm's code in npm@2.5.1. Only test
code (and the upgrade of request to the latest version) has changed.
npm-registry-mock@1.0.0:
0e8d473#7281npm-registry-mock@1.0.0: Clean up API, setconnection: close. (@robertkowalski)4707bbaFurther update tests to work withnpm-registry-mock@1.0.0. (@othiym23)41a0f89Got rid of completely gratuitous global config manipulation in tests. (@othiym23)
MINOR DEPENDENCY TWEAK
v2.5.0 (2015-01-29):
SMALL FEATURE I HAVE ALREADY USED TO MAINTAIN NPM ITSELF
BUG FIXES & TWEAKS
fec4c96Allow--no-proxyto overrideHTTP_PROXYsetting in environment. (@othiym23)589acb9Only setaccesswhen publshing when it's explicitly set. (@othiym23)1027087Add script andMakefilestanza to update AUTHORS. (@KenanY)eeff04dAddNPMOPTSto top-level install inMakefileto overrideuserconfig. (@aredridel)0d17328fstream@1.0.4: Run chown only when necessary. (@silkentrance)9aa4622columnify@1.4.1: ES6ified! (@timoxley)51b2fd1Update default version indocs/npm-config.md. (@lucthev)
npm-registry-client@6.0.7:
f9313a0#7226 Ensure that all request settings are copied onto the agent. (@othiym23)e186f6eOnly setaccesson publish when it differs from the norm. (@othiym23)f9313a0Allow overriding request's environment-based proxy handling. (@othiym23)f9313a0Properly handle retry failures on fetch. (@othiym23)
v2.4.1 (2015-01-23):
Let's accentuate the positive: the dist-tag endpoints for npm dist-tag {add,rm,ls} are now live on the public npm registry.
f70272bnpm-registry-client@6.0.3: Properly escape JSON tag version strings and filter_etagfrom CouchDB docs. (@othiym23)
v2.4.0 (2015-01-22):
REGISTRY 2: ACCESS AND DIST-TAGS
NOTE: This week's registry-2 commands are leading the implementation on
registry.npmjs.org a little bit, so some of the following may not work for
another week or so. Also note that npm access has documentation and
subcommands that are not yet finished, because they depend on incompletely
specified registry API endpoints. Things are coming together very quickly,
though, so expect the missing pieces to be filled in the coming weeks.
c963eb2#7181 NEWnpm access publicandnpm access restricted: Toggle visibility of scoped packages. (@othiym23)dc51810#6243 / #6854 NEWnpm dist-tags: Directly managedist-tagson packages. Most notably,dist-tagscan now be deleted. (@othiym23)4c7c132#7181 / #6854npm-registry-client@6.0.1: Add newaccessanddist-tagsendpoints (@othiym23)
NOT EXACTLY SELF-DEPRECATING
BUG FIX AND TINY FEATURE
29a6ef3#6850 Be smarter about determining base of file deletion when unbuilding. (@phated)4ad01eainit-package-json@1.2.0: Support--save-exactinnpm init. (@gustavnikolaj)
v2.3.0 (2015-01-15):
REGISTRY 2: OH MY STARS! WHO AM I?
e662a60The newwhoamiendpoint might not return a value. (@othiym23)c2cccd4npm-registry-client@5.0.0: Includes the following fine changes (@othiym23):
BETTER REGISTRY METADATA CACHING
98e1e10#6791 Add caching based on Last-Modified / If-Modified-Since headers. Includes thisnpm-registry-client@5.0.0change (@lxe):
HOW MUCH IS THAT WINDOWS IN THE DOGGY?
706d49a#7107getCacheStatpasses a stub stat on Windows. (@rmg)5fce278#5267 Use%COMSPEC%when set on Windows. (@edmorley)cc2e099#7083 Ensure Git cache prefix exists before repo clone on Windows. (@othiym23)
THRILLING BUG FIXES
c6fb430#4197 Reportumaskas a 0-padded octal literal. (@smikes)209713e#4197umask@1.1.0: Properly handleumasks (i.e. not decimal numbers). (@smikes)9eac0a1Make the example for bin links non-destructive. (@KevinSheedy)6338bcfglob@4.3.5: " -> ', for some reason. (@isaacs)
v2.2.0 (2015-01-08):
88c531d#7056 version doesn't need a package.json. (@othiym23)2656c19#7095 Link to npm website instead of registry. (@konklone)c76b801#7067 Obfuscate secrets, including nerfed URLs. (@smikes)17f66ce#6849 Explain the tag workflow more clearly. (@smikes)e309df6#7096 Really,npm update -gis almost always a terrible idea. (@smikes)acf287d#6999npm run-script env: add a new default script that will print out environment values. (@gcb)560c009#6745 Documentnpm update --dev. (@smikes)226a677#7046 We have never been the Node package manager. (@linclark)38eef22npm-install-checks@1.0.5: Compatibility with npmlog@^1. (@iarna)
v2.1.18 (2015-01-01):
v2.1.17 (2014-12-25):
merry npm xmas
Working with @phated, I discovered that npm still had some lingering race conditions around how it handles Git dependencies. The following changes were intended to remedy to these issues. Thanks to @phated for all his help getting to the bottom of these.
bdf1c84#7006 Onlychowntemplate and top-level Git cache directories. (@othiym23)581a72d#7006 Map Git remote inflighting to clone paths rather than Git URLs. (@othiym23)1c48d08#7009normalize-git-url@1.0.0: Normalize Git URLs while caching. (@othiym23)5423cf0#7009 Pack tarballs to their final locations atomically. (@othiym23)7f6557f#7009 Inflight local directory packing, just to be safe. (@othiym23)
Other changes:
1c491e6#6991npm version: fix regression in dirty-checking behavior (@rlidwka)55ceb2b#1991 modify docs to reflect actualnpm restartbehavior (@smikes)fb8e31b#6982 when doing registry operations, ensure registry URL always ends with/(@othiym23)5bcba65pull whitelisted Git environment variables out into a named constant (@othiym23)be04bbd#7000 No longer install badly-named manpage files, and log an error when trying to uninstall them. (@othiym23)6b7c5ec#7011 Send auth for tarball fetches for packages innpm-shrinkwrap.jsonfrom private registries. (@othiym23)9b9de06glob@4.3.2: Better handling of trailing slashes. (@isaacs)030f3c7semver@4.2.0: Diffing between version strings. (@isaacs)
v2.1.16 (2014-12-22):
a4e4e33#6987read-installed@3.1.5: fixed a regression where a new / empty package would cause read-installed to throw. (@othiym23 / @pgilad)
v2.1.15 (2014-12-18):
e5a2dee#6951fs-vacuum@1.2.5: Usepath-is-insidefor better Windows normalization. (@othiym23)ac6167c#6955 Callpath.normalizeinlib/utils/gently-rm.jsfor better Windows normalization. (@ben-page)c625d71#6964 Clarify CA configuration docs. (@jeffjo)58b8cb5#6950 Fix documentation typos. (@martinvd)7c1299d#6909 Remove confusing mention of rubygems~>semver operator. (@mjtko)7dfdcc6#6909semver@4.1.1: Synchronize documentation with PR #6909 (@othiym23)adfddf3#6925 Correct typo indoc/api/npm-ls.md(@oddurs)f5c534b#6920 Remove recommendation to run as root fromREADME.md. (@robertkowalski)3ef4459#6920npm-@googlegroups.comhas gone the way of all things. That means it's gone. (@robertkowalski)
v2.1.14 (2014-12-13):
v2.1.13 (2014-12-11):
cbb890e#6897 npm is a nice package manager that runs server-side JavaScript. (@othiym23)d9043c3#6893 Remove erroneous docs about preupdate / update / postupdate lifecycle scripts, which have never existed. (@devTristan)c5df4d0#6884 Update npmjs.org to npmjs.com in docs. (@linclark)cb6ff8d#6879 npm version: Update shrinkwrap post-check. (@othiym23)2a340bd#6868 Use magic numbers instead of regexps to distinguish tarballs from other things. (@daxxog)f1c8bdb#6861npm-registry-client@4.0.5: Distinguish between error properties that are part of the response and error strings that should be returned to the user. (@disrvptor)d3a1b63#6762 Makenpm outdatedignore private packages. (@KenanY)16d8542install.sh: Drop support for node < 0.8, remove engines bits. (@isaacs)b9c6046init-package-json@1.1.3: (@terinstock) noticed thatinit.licenseconfiguration doesn't stick. Make sure that dashed defaults don't trump dotted parameters. (@othiym23)b6d6acfwhich@1.0.8: No longer use graceful-fs for some reason. (@isaacs)d39f673request@2.51.0: Incorporate bug fixes. (@nylen)c7ad727columnify@1.3.2: Incorporate bug fixes. (@timoxley)
v2.1.12 (2014-12-04):
e5b1e44add alias verison=version (@isaacs)5eed7bdrequest@2.49.0(@nylen)e72f81dglob@4.3.1/minimatch@2.0.1(@isaacs)b8dcc36graceful-fs@3.0.5(@isaacs)
v2.1.11 (2014-11-27):
4861d28which@1.0.7: License update. (@isaacs)30a2ea8ini@1.3.2: License update. (@isaacs)6a4ea05fstream@1.0.3: Propagate error events to downstream streams. (@gfxmonk)a558695tar@1.0.3: Don't extract broken files, propagatedrainevent. (@gfxmonk)989624e#6767 Actually pass parameters when adding git repo to cach under Windows. (@othiym23)657af73#6774 When verifying paths on unbuild, resolve both source and target as symlinks. (@hokaccha)fd19c40#6713realize-package-specifier@1.3.0: Make it so thatnpm install foo@1work when a file named1exists. (@iarna)c8ac37anpm-registry-client@4.0.4: Fix regression in failed fetch retries. (@othiym23)
v2.1.10 (2014-11-20):
756f3d4#6735 Log "already built" messages at info, not error. (@smikes)1b7330d#6729npm-registry-client@4.0.3: GitHub won't redirect you through an HTML page to a compressed tarball if you don't tell it you accept JSON responses. (@KenanY)d9c7857#6506readdir-scoped-modules@1.0.1: Usegraceful-fsso the whole dependency tree gets read, even in case ofEMFILE. (@sakana)3a085beGrammar fix in docs. (@icylace)3f8e2ffDid you know that npm has a Code of Conduct? Add a link to it to CONTRIBUTING.md. (@isaacs)319ccf6glob@4.2.1: Performance tuning. (@isaacs)835f046readable-stream@1.0.33: Bug fixes. (@rvagg)a34c38drequest@2.48.0: Bug fixes. (@nylen)
v2.1.9 (2014-11-13):
eed9f61#6542npm owner add / removenow works properly with scoped packages (@othiym23)cd25973#6548 using sudo won't leave the cache's git directories with bad permissions (@othiym23)56930abfixed irregularnpm cache lsoutput (yes, that's a thing) (@othiym23)740f483legacy tests no longer poison user's own cache (@othiym23)ce37f14#6169 add terse output similar tonpm publish / unpublishfornpm owner add / remove(@KenanY)bf2b8a6#6680 pass auth credentials to registry when downloading search index (@terinjokes)00ecb61#6400.npmignoreis respected for git repos on cache / pack / publish (@othiym23)d1b3a9e#6311npm ls -l --depth=0no longer prints phantom duplicate children (@othiym23)07c5f34#6690uid-number@0.0.6: clarify confusing names in error-handling code (@isaacs)1ac9be9#6684npm init: don't report write if canceled (@smikes)7bb207d#5754 never remove app directories on failed install (@othiym23)705ce60#5754fs-vacuum@1.2.2: don't throw when another fs task writes to a directory being vacuumed (@othiym23)1b650f4#6255 ensure that order credentials are used from.npmrcdoesn't regress (@othiym23)9bb2c34#6644warnrather thaninfoon fetch failure (@othiym23)e34a7b6#6524npm-registry-client@4.0.2: proxy viarequestmore transparently (@othiym23)40afd6a#6524 push proxy settings intorequest(@tauren)
v2.1.8 (2014-11-06):
063d843npm version now updates version in npm-shrinkwrap.json (@faiq)3f53cd7#6559 save local dependencies in npm-shrinkwrap.json (@Torsph)e249262npm-faq.md: mention scoped pkgs in namespace Q (@smikes)6b06ec4#6642init-package-json@1.1.2: Handle bothinit-author-nameandinit.author.name. (@othiym23)9cb334c#6409 document commit-ish with GitHub URLs (@smikes)0aefae9#2959 npm run no longer fails silently (@flipside)e007a2c#3908 include command in spawn errors (@smikes)
v2.1.7 (2014-10-30):
6750b05#6398npm-registry-client@4.0.0: consistent API, handle relative registry paths, use auth more consistently (@othiym23)7719cfd#6560 use new npm-registry-client API (@othiym23)ed61971move caching of search metadata fromnpm-registry-clientto npm itself (@othiym23)3457041handle caching of metadata independently fromnpm-registry-client(@othiym23)20a331c#6538 map registry URLs to credentials more safely (@indexzero)4072e97#6589npm-registry-client@4.0.1: allow publishing of packages with names identical to built-in Node modules (@feross)254f0e4tar@1.0.2: better error-handling (@runk)73ee2aarequest@2.47.0(@mikeal)
v2.1.6 (2014-10-23):
681b398#6523 fix defaultlogeleveldoc (@KenanY)80b368f#6528npm versionshould work in a git directory without git (@terinjokes)5f5f9e4#6483init-package-json@1.1.1: Properly pick up default values from environment variables. (@othiym23)a114870perl 5.18.x doesn't like -pi without filenames (@othiym23)de5ba00request@2.46.0: Tests and cleanup. (@othiym23)76933f1fstream-npm@1.0.1: Always includeLICENSE[.*],LICENCE[.*],CHANGES[.*],CHANGELOG[.*], andHISTORY[.*]. (@jonathanong)
v2.1.5 (2014-10-16):
6a14b23#6397 Defactor npmconf back into npm. (@othiym23)4000e33#6323 InstallpeerDependenciesfrom top. (@othiym23)5d119ae#6498 Better error messages on malformed.npmrcproperties. (@nicks)ae18efb#6093 Replace instances of 'hash' with 'object' in documentation. (@zeke)53108b2#1558 Clarify how local paths should be used. (@KenanY)344fa1a#6488 Work around bug in marked. (@othiym23)
OUTDATED DEPENDENCY CLEANUP JAMBOREE
60c2942realize-package-specifier@1.2.0: Handle names and rawSpecs more consistently. (@iarna)1b5c95fsha@1.3.0: Change line endings? (@ForbesLindesay)d7dee3frequest@2.45.0: Dependency updates, better proxy support, better compressed response handling, lots of 'use strict'. (@mikeal)3d75180opener@1.4.0: Added gratuitous return. (@Domenic)8e2703fretry@0.6.1/npm-registry-client@3.2.4: Change of ownership. (@tim-kos)c87b00fonce@1.3.1: Wrap once with wrappy. (@isaacs)01ec790npm-user-validate@0.1.1: Correct repository URL. (@robertkowalski)389e52cglob@4.0.6: Now absolutely requiresgraceful-fs. (@isaacs)e15ab15ini@1.3.0: Tighten up whitespace handling. (@isaacs)7610f3earchy@1.0.0(@substack)9c13149semver@4.1.0: Add support for prerelease identifiers. (@bromanko)f096c25graceful-fs@3.0.4: Add a bunch of additional tests, skip the unfortunate complications ofgraceful-fs@3.0.3. (@isaacs)
v2.1.4 (2014-10-09):
3aeb440#6442 proxying git needsGIT_SSL_CAINFO(@wmertens)a8da8d6#6413 write builtin config on any global npm install (@isaacs)9e4d632#6343 don't pass run arguments to pre & post scripts (@TheLudd)d831b1f#6399 race condition: inflight installs, preventpeerDependencyproblems (@othiym23)82b775d#6384 race condition: inflight caching by URL rather than semver range (@othiym23)7bee042inflight@1.0.4: callback can take arbitrary number of parameters (@othiym23)3bff494#5195 fixed regex color regression fornpm search(@chrismeyersfsu)33ba2d5#6387 allownpm view globalif package is specified (@evanlucas)99c4cfc#6388 npm-publish → npm-developers(7) (@kennydude)
TEST CLEANUP EXTRAVAGANZA:
8d6bfcbtap tests run with no system-wide side effects (@chrismeyersfsu)7a1472fadded npm cache cleanup script (@chrismeyersfsu)0ce6a37stripped out dead test code (othiym23)- replace spawn with common.npm (@chrismeyersfsu):
v2.1.3 (2014-10-02):
BREAKING CHANGE FOR THE SQRT(i) PEOPLE ACTUALLY USING npm submodule:
1e64473rm -rf npm submodulecommand, which has been broken since the Carter Administration (@isaacs)
BREAKING CHANGE IF YOU ARE FOR SOME REASON STILL USING NODE 0.6 AND YOU SHOULD NOT BE DOING THAT CAN YOU NOT:
3e431f9joyent/node#8492 bye bye customFds, hello stdio (@othiym23)
Other changes:
ea607a8#6372 noisily error (without aborting) on multi-{install,build} (@othiym23)3ee2799#6372 only make cache creation requests in flight (@othiym23)1a90ec2#6372 wait to put Git URLs in flight until normalized (@othiym23)664795b#6372 log what is and isn't in flight (@othiym23)00ef580inflight@1.0.3: fix largely theoretical race condition, because we really really hate race conditions (@isaacs)1cde465#6363realize-package-specifier@1.1.0: handle local dependencies better (@iarna)86f084crealize-package-specifier@1.0.2: dependency realization! in its own module! (@iarna)553d830npm-package-arg@2.1.3: simplified semver, better tests (@iarna)bec9b61readable-stream@1.0.32: for some reason (@rvagg)ff08ec5dezalgo@1.0.1: use wrappy for instrumentability (@isaacs)
v2.1.2 (2014-09-29):
a1aa20e#6282normalize-package-data@1.0.3: don't prune bundledDependencies (@isaacs)a1f5fe1move locks back into cache, now path-aware (@othiym23)a432c4bconvert lib/utils/tar.js to use atomic streams (@othiym23)b8c3c74fs-write-stream-atomic@1.0.2: Now works with streams1 fs.WriteStreams. (@isaacs)c7ab76flogging cleanup (@othiym23)4b2d95d#6329 efficiently validate tmp tarballs safely (@othiym23)
v2.1.1 (2014-09-26):
563225d#6318 clean up locking; prefix lockfile with "." (@othiym23)c7f30e4#6318 remove locking code around tarball packing and unpacking (@othiym23)
v2.1.0 (2014-09-25):
NEW FEATURE:
3635601#5520 Add'npm view .'. (@evanlucas)
Other changes:
f24b552#6294 Lock cache → lock cache target. (@othiym23)ad54450#6296 Ensure that npm-debug.log file is created when rollbacks are done. (@isaacs)6810071docs: Default loglevel "http" → "warn". (@othiym23)35ac89aSkip installation of installed scoped packages. (@timoxley)e468527Ensure cleanup executes for scripts-whitespace-windows test. (@timoxley)ef9101bEnsure cleanup executes for packed-scope test. (@timoxley)69b4d18fs-write-stream-atomic@1.0.1: Fix a race condition in our race-condition fixer. (@isaacs)26b17ff#6272npmconfdecides what the default prefix is. (@othiym23)846facaFix development dependency is preferred over dependency. (@andersjanmyr)9d1a9db#3265 Re-apply a71615a. Fixes #3265 again, with a test! (@glasser)1d41db0marked-man@0.1.4: Fixes formatting of synopsis blocks in man docs. (@kapouer)a623da0#5867 Specify dummy git template dir when cloning to prevent copying hooks. (@boneskull)
v2.0.2 (2014-09-19):
42c872b#5920fs-write-stream-atomic@1.0.0(@isaacs)6784767#5920 make all write streams atomic (@isaacs)f6fac00#5920 barf on 0-length cached tarballs (@isaacs)3b37592write-file-atomic@1.1.0: use graceful-fs (@iarna)
v2.0.1 (2014-09-18):
74c5ab0#6201npmconf@2.1.0: scope always-auth to registry URI (@othiym23)774b127#6201npm-registry-client@3.2.2: use scoped always-auth settings (@othiym23)f2d2190#6201 support saving--always-authwhen logging in (@othiym23)17c941a#6163 usewrite-file-atomicinstead offs.writeFile()(@fiws)fb5724f#5925npm init -f: allownpm initto run without prompting (@michaelnisi)b706d63#3059 disable prepublish when runningnpm install --production(@jussi-kalliokoski)119f068attach the node version used when publishing a package to its registry metadata (@othiym23)8fe0081seriously, don't usenpm -g update npm(@thomblake)ea5b3d4request@2.44.0(@othiym23)
v2.0.0 (2014-09-12):
BREAKING CHANGES:
4378a17semver@4.0.0: prerelease versions no longer show up in ranges;^0.x.ybehaves the way it did insemver@2rather thansemver@3; docs have been reorganized for comprehensibility (@isaacs)c6ddb64npm now assumes that node is newer than 0.6 (@isaacs)
Other changes:
ea515c3#6043slide@1.1.6: wait until all callbacks have finished before proceeding (@othiym23)0b0a59d#6043 defer rollbacks until just before the CLI exits (@isaacs)a11c88b#6175 pack scoped packages correctly (@othiym23)e4e48e0#6121read-installed@3.1.2: don't mark linked dev dependencies as extraneous (@isaacs)d673e41cmd-shim@2.0.1: depend ongraceful-fsdirectly (@ForbesLindesay)9d54d45npm-registry-couchapp@2.5.3: make tests more reliable on Travis (@iarna)673d738ensure permissions are set correctly in cache when running as root (@isaacs)6e6a5fbprepare for upgrade tonode-semver@4.0.0(@isaacs)ab8dd87swap outronnformarked-man@0.1.3(@isaacs)803da54npm-registry-client@3.2.0: prepare fornode-semver@4.0.0and include more error information (@isaacs)4af0e71make default error display less scary (@isaacs)4fd9e79npm-registry-client@3.2.1: handle errors returned by the registry much, much better (@othiym23)ca791e2restore a long (always?) missing pass for deduping (@othiym23)ca0ef0ecorrectly interpret relative paths for local dependencies (@othiym23)5eb8db2npm-package-arg@2.1.2: support git+file:// URLs for local bare repos (@othiym23)860a185tweak docs to no longer advocate checking innode_modules(@hunterloftis)80e9033add links to nodejs.org downloads to docs (@meetar)
v1.4.28 (2014-09-12):
f4540b6#6043 defer rollbacks until just before the CLI exits (@isaacs)1eabfd5#6043slide@1.1.6: wait until all callbacks have finished before proceeding (@othiym23)
v2.0.0-beta.3 (2014-09-04):
fa79413#6119 fall back to registry installs if package.json is missing in a local directory (@iarna)16073e2npm-package-arg@2.1.0: support file URIs as local specs (@othiym23)9164acbgithub-url-from-username-repo@1.0.2: don't match strings that are already URIs (@othiym23)4067d6b#5629 support saving of local packages inpackage.json(@dylang)1b2ffdf#6097 document scoped packages (@seldo)0a67d53#6007request@2.42.0: properly set headers on proxy requests (@isaacs)9bac6b8npmconf@2.0.8: disallow semver ranges in tag configuration (@isaacs)d2d4d7c#6082 don't allow tagging with a semver range as the tag name (@isaacs)
v1.4.27 (2014-09-04):
4cf3c8f#6007 request@2.42.0: properly set headers on proxy requests (@isaacs)403cb52#6055 npmconf@1.1.8: restore case-insensitivity of environmental config (@iarna)
v2.0.0-beta.2 (2014-08-29):
SPECIAL LABOR DAY WEEKEND RELEASE PARTY WOOO
ed207e8npm-registry-client@3.1.7: Clean up auth logic and improve logging around auth decisions. Also error on trying to change a user document without writing to it. (@othiym23)66c7423npmconf@2.0.7: support -C as an alias for --prefix (@isaacs)0dc6a07#6059 run commands in prefix, not cwd (@isaacs)65d2179github-url-from-username-repo@1.0.1: part 3 handle slashes in branch names (@robertkowalski)e8d75d0#6057read-installed@3.1.1: properly handle extraneous dev dependencies of required dependencies (@othiym23)0602f70#6064 ls: do not show deps of extraneous deps (@isaacs)
v2.0.0-beta.1 (2014-08-28):
78a1fc1github-url-from-git@1.4.0: add support for git+https and git+ssh (@stefanbuck)bf247edcolumnify@1.2.1(@othiym23)4bbe682cmd-shim@2.0.0: upgrade to graceful-fs 3 (@ForbesLindesay)ae1d590npm-package-arg@2.0.4: accept slashes in branch names (@thealphanerd)b2f51aesemver@3.0.1: semver.clean() is cleaner (@isaacs)1d041a8github-url-from-username-repo@1.0.0: accept slashes in branch names (@robertkowalski)02c85d5async-some@1.0.1(@othiym23)5af493eensure lifecycle spawn errors caught properly (@isaacs)60fe012npmconf@2.0.6: init.version defaults to 1.0.0 (@isaacs)b4c717bnpm-registry-client@3.1.4: properly encode % in passwords (@isaacs)7b55f44doc: Fix 'npm help index' (@isaacs)
v1.4.26 (2014-08-28):
eceea95github-url-from-git@1.4.0: add support for git+https and git+ssh (@stefanbuck)e561758columnify@1.2.1(@othiym23)0c4fab3cmd-shim@2.0.0: upgrade to graceful-fs 3 (@ForbesLindesay)2d69e4dgithub-url-from-username-repo@1.0.0: accept slashes in branch names (@robertkowalski)81f9b2bensure lifecycle spawn errors caught properly (@isaacs)bfaab8cnpm-registry-client@2.0.7: properly encode % in passwords (@isaacs)91cfb58doc: Fix 'npm help index' (@isaacs)
v2.0.0-beta.0 (2014-08-21):
685f8benpm-registry-client@3.1.3: Print the notification header returned by the registry, and make sure status codes are printed without gratuitous quotes around them. (@isaacs / @othiym23)a8cb676#5900 removenpmfrom its ownenginesfield inpackage.json. None of us remember why it was there. (@timoxley)6c47201#5752, #6013 save git URLs correctly in_resolvedfields (@isaacs)e4e1223#5936 document the use of tags inpackage.json(@KenanY)c92b8d4#6004 manually installed scoped packages are tracked correctly (@dead-horse)21ca0aa#5945 link scoped packages correctly (@dead-horse)16bead7#5958 ensure that file streams work in all versions of node (@dead-horse)dbf0cabyou can now pass quoted args tonpm run-script(@bcoe)0583874tar@1.0.1: Add test for removing an extract target immediately after unpacking. (@isaacs)cdf3b04lockfile@1.0.0: Fix incorrect interaction betweenwait,stale, andretriesoptions. Part 2 of race condition leading toENOENT(@isaacs) errors.22d72a8fstream@1.0.2: Fix a double-finish call which can result in excess FS operations after thecloseevent. Part 1 of race condition leading toENOENTerrors. (@isaacs)
v1.4.25 (2014-08-21):
64c0ec2npm-registry-client@2.0.6: Print the notification header returned by the registry, and make sure status codes are printed without gratuitous quotes around them. (@othiym23)a8ed12btar@1.0.1: Add test for removing an extract target immediately after unpacking. (@isaacs)70fd11dlockfile@1.0.0: Fix incorrect interaction betweenwait,stale, andretriesoptions. Part 2 of race condition leading toENOENTerrors. (@isaacs)0072c4dfstream@1.0.2: Fix a double-finish call which can result in excess FS operations after thecloseevent. Part 2 of race condition leading toENOENTerrors. (@isaacs)
v2.0.0-alpha.7 (2014-08-14):
f23f1d8doc: update version doc to includepre-*increment args (@isaacs)b6bb746build: add 'make tag' to tag current release as latest (@isaacs)27c4bb6build: publish with--tag=v1.4-next(@isaacs)cff66c3build: add script to outputv1.4-nextpublish tag (@isaacs)22abec8build: remove outdateddocpublishmake target (@isaacs)1be4de5build: removeunpublishstep frommake publish(@isaacs)e429e20doc: add new changelog (@othiym23)9243d20lifecycle: test lifecycle path modification (@isaacs)021770blifecycle: BREAKING CHANGE do not add the directory containing node executable (@chulkilee)1d5c41dinstall: rename .gitignore when unpacking foreign tarballs (@isaacs)9aac267cache: detect non-gzipped tar files more reliably (@isaacs)3f24755readdir-scoped-modules@1.0.0(@isaacs)151cd2fread-installed@3.1.0(@isaacs)f5a9434test: fix Travis timeouts (@dylang)126cafcnpm-registry-couchapp@2.5.0(@othiym23)
v1.4.24 (2014-08-14):
9344bd9doc: add new changelog (@othiym23)4be76fddoc: update version doc to includepre-*increment args (@isaacs)e4f2620build: addmake tagto tag current release aslatest(@isaacs)ec2596abuild: publish with--tag=v1.4-next(@isaacs)9ee55f8build: add script to outputv1.4-nextpublish tag (@isaacs)aecb56fbuild: remove outdateddocpublishmake target (@isaacs)b57a9b7build: remove unpublish step frommake publish(@isaacs)2c6acb9install: rename.gitignorewhen unpacking foreign tarballs (@isaacs)22f3681cache: detect non-gzipped tar files more reliably (@isaacs)
v2.0.0-alpha.6 (2014-08-07):
BREAKING CHANGE:
Other changes:
d987707move fetch into npm-registry-client (@othiym23)9b318e2read-installed@3.0.0(@isaacs)9d73de7remove unnecessary mkdirps (@isaacs)33ccd13Don't squash execute perms in_git-remotes/dir (@adammeadows)48fd233npm-package-arg@2.0.1(@isaacs)
v1.4.23 (2014-07-31):
8dd11d1update several dependencies to avoid usingsemvers starting with 0.
v1.4.22 (2014-07-31):
d9a9e84read-package-json@1.2.4(@isaacs)86f0340github-url-from-git@1.2.0(@isaacs)a94136afstream@0.1.29(@isaacs)bb82d18glob@4.0.5(@isaacs)5b6bcf4cmd-shim@1.1.2(@isaacs)c2aa8b3license: Cleaned up legalese with actual lawyer (@isaacs)63fe0eeinit-package-json@1.0.0(@isaacs)
v2.0.0-alpha-5 (2014-07-22):
This release bumps up to 2.0 because of this breaking change, which could potentially affect how your package's scripts are run:
Other changes:
cd422c9#5748 link binaries for scoped packages (@othiym23)4c3c778#5758npm linkincludes scope when linking scoped package (@fengmk2)f9f58dd#5707 document generic pre- / post-commands (@sudodoki)ac7a480#5406npm cachedisplays usage when called without arguments (@michaelnisi)f4554e9Test fixes for Windows (@isaacs)- update dependencies (@othiym23)
v1.5.0-alpha-4 (2014-07-18):
- fall back to
_authconfig as default auth when using default registry (@isaacs) - support for 'init.version' for those who don't want to deal with semver 0.0.x oddities (@rvagg)
be06213remove residual support forwinlog level (@aterris)
v1.5.0-alpha-3 (2014-07-17):
a3a85dd--savescoped packages correctly (@othiym23)18a3385npm-registry-client@3.0.2(@othiym23)375988binvalid package names are an early error for optional deps (@othiym23)- consistently use
node-package-arginstead of arbitrary package spec splitting (@othiym23)
v1.4.21 (2014-07-14):
v1.5.0-alpha-2 (2014-07-01):
54cf625fix handling for 301s innpm-registry-client@3.0.1(@Raynos)e410861don't crash if no username set onwhoami(@isaacs)0353dderespect--jsonfor output (@isaacs)b3d112aoutdated: Don't show headings if there's nothing to output (@isaacs)bb4b90coutdated: Default tolatestrather than*for unspecified deps (@isaacs)
v1.4.20 (2014-07-02):
0353dderespect--jsonfor output (@isaacs)b3d112aoutdated: Don't show headings if there's nothing to output (@isaacs)bb4b90coutdated: Default tolatestrather than*for unspecified deps (@isaacs)
v1.5.0-alpha-1 (2014-07-01):
v1.5.0-alpha-0 (2014-07-01):
7f55057install scoped packages (#5239) (@othiym23)0df7e16publish scoped packages (#5239) (@othiym23)0689ba2support (and save) --scope=@s config (@othiym23)f34878fscope credentials to registry (@othiym23)0ac7ca2capture and store bearer tokens when sent by registry (@othiym23)63c3277only delete files that are created by npm (@othiym23)4f54043npm-package-arg@2.0.0(@othiym23)9e1460eread-package-json@1.2.3(@othiym23)719d8adfs-vacuum@1.2.1(@othiym23)9ef8fe4async-some@1.0.0(@othiym23)a964f65npmconf@2.0.1(@othiym23)113765bnpm-registry-client@3.0.0(@othiym23)
v1.4.19 (2014-07-01):
f687433relative URLS for working non-root registry URLS (@othiym23)bea190c#5591 bump nopt and npmconf (@isaacs)
v1.4.18 (2014-06-29):
- Bump glob dependency from 4.0.2 to 4.0.3. It now uses graceful-fs when available, increasing resilience to various filesystem errors. (@isaacs)
v1.4.17 (2014-06-27):
- replace escape codes with ansicolors (@othiym23)
- Allow to build all the docs OOTB. (@GeJ)
- Use core.longpaths on win32 git - fixes #5525 (@bmeck)
npmconf@1.1.2(@isaacs)- Consolidate color sniffing in config/log loading process (@isaacs)
- add verbose log when project config file is ignored (@isaacs)
- npmconf: Float patch to remove 'scope' from config defs (@isaacs)
- doc: npm-explore can't handle a version (@robertkowalski)
- Add user-friendly errors for ENOSPC and EROFS. (@voodootikigod)
- bump tar and fstream deps (@isaacs)
- Run the npm-registry-couchapp tests along with npm tests (@isaacs)
v1.2.8000 (2014-06-17):
- Same as v1.4.16, but with the spinner disabled, and a version number that starts with v1.2.
v1.4.16 (2014-06-17):
npm-registry-client@2.0.2(@isaacs)fstream@0.1.27(@isaacs)sha@1.2.4(@isaacs)rimraf@2.2.8(@isaacs)npmlog@1.0.1(@isaacs)npm-registry-client@2.0.1(@isaacs)- removed redundant dependency (@othiym23)
npmconf@1.0.5(@isaacs)- Properly handle errors that can occur in the config-loading process (@isaacs)
v1.4.15 (2014-06-10):
- cache: atomic de-race-ified package.json writing (@isaacs)
fstream@0.1.26(@isaacs)graceful-fs@3.0.2(@isaacs)osenv@0.1.0(@isaacs)- Only spin the spinner when we're fetching stuff (@isaacs)
- Update
osenv@0.1.0which removes ~/tmp as possible tmp-folder (@robertkowalski) ini@1.2.1(@isaacs)graceful-fs@3(@isaacs)- Update glob and things depending on glob (@isaacs)
- github-url-from-username-repo and read-package-json updates (@isaacs)
editor@0.1.0(@isaacs)columnify@1.1.0(@isaacs)- bump ansi and associated deps (@isaacs)
v1.4.14 (2014-06-05):
- char-spinner: update to not bork windows (@isaacs)
v1.4.13 (2014-05-23):
- Fix
npm installon a tarball. (ed3abf1, #5330, @othiym23) - Fix an issue with the spinner on Node 0.8.
(
9f00306, @isaacs) - Re-add
npm.commands.cache.cleanandnpm.commands.cache.readAPIs, and documentnpm.commands.cache.*as npm-cache(3). (e06799e, @isaacs)
v1.4.12 (2014-05-23):
- remove normalize-package-data from top level, de-^-ify inflight dep (@isaacs)
- Always sort saved bundleDependencies (@isaacs)
- add inflight to bundledDependencies (@othiym23)
v1.4.11 (2014-05-22):
- fix
npm lslabeling issue node-gyp@0.13.1- default repository to https:// instead of git://
- addLocalTarball: Remove extraneous unpack (@isaacs)
- Massive cache folder refactor (@othiym23 and @isaacs)
- Busy Spinner, no http noise (@isaacs)
- Per-project .npmrc file support (@isaacs)
npmconf@1.0.0, Refactor config/uid/prefix loading process (@isaacs)- Allow once-disallowed characters in passwords (@isaacs)
- Send npm version as 'version' header (@isaacs)
- fix cygwin encoding issue (Karsten Tinnefeld)
- Allow non-github repositories with
npm repo(@evanlucas) - Allow peer deps to be satisfied by grandparent
- Stop optional deps moving into deps on
update --save(@timoxley) - Ensure only matching deps update with
update --save*(@timoxley) - Add support for
prerelease,preminor,prepatchtonpm version
v1.4.10 (2014-05-05):
- Don't set referer if already set
- fetch: Send referer and npm-session headers
run-script: Support--parseableand--json- list runnable scripts (@evanlucas)
- Use marked instead of ronn for html docs
v1.4.9 (2014-05-01):
- Send referer header (with any potentially private stuff redacted)
- Fix critical typo bug in previous npm release
v1.4.8 (2014-05-01):
- Check SHA before using files from cache
- adduser: allow change of the saved password
- Make
npm installrespectconfig.unicode - Fix lifecycle to pass
Infinityfor config env value - Don't return 0 exit code on invalid command
- cache: Handle 404s and other HTTP errors as errors
- Resolve ~ in path configs to env.HOME
- Include npm version in default user-agent conf
- npm init: Use ISC as default license, use save-prefix for deps
- Many test and doc fixes
v1.4.7 (2014-04-15):
- Add
--save-prefixoption that can be used to override the default of^when usingnpm install --saveand its counterparts. (64eefdf, @thlorenz) - Allow
--silentto silence the echoing of commands that occurs withnpm run. (c95cf08, @Raynos) - Some speed improvements to the cache, which should improve install times.
(
cb94310,3b0870f,120f5a9, @isaacs) - Improve ability to retry registry requests when a subset of the registry
servers are down.
(
4a5257d,7686d02cb0, @isaacs) - Fix marking of peer dependencies as extraneous.
(
779b164,6680ba6ef2, @isaacs) - Fix npm crashing when doing
npm shrinkwrapin the presence of apackage.jsonwith no dependencies. (a9d9fa5, @kislyuk) - Fix error when using
npm viewon packages that have no versions or have been unpublished. (94df2f5, @juliangruber;2241a09, @isaacs)
v1.4.6 (2014-03-19):
- Fix extraneous package detection to work in more cases.
(
f671286, npm/read-installed#20, @LaurentVB)
v1.4.5 (2014-03-18):
- Sort dependencies in
package.jsonwhen doingnpm install --saveand all its variants. (6fd6ff7, @domenic) - Add
--save-exactoption, usable alongside--saveand its variants, which will write the exact version number intopackage.jsoninstead of the appropriate semver-compatibility range. (17f07df, @timoxley) - Accept gzipped content from the registry to speed up downloads and save
bandwidth.
(
a3762de, npm/npm-registry-client#40, @fengmk2) - Fix
npm ls's--depthand--logoptions. (1d29b17, npm/read-installed#13, @zertosh) - Fix "Adding a cache directory to the cache will make the world implode" in
certain cases.
(
9a4b2c4, domenic/path-is-inside#1, @pmarques) - Fix readmes not being uploaded in certain rare cases.
(
527b72c, @isaacs)
v1.4.4 (2014-02-20):
- Add
npm tas an alias fornpm test(which is itself an alias fornpm run test, or evennpm run-script test). We like making running your tests easy. (14e650b, @isaacs)
v1.4.3 (2014-02-16):
- Add back
npm prune --production, which was removed in 1.3.24. (acc4d02, @davglass) - Default
npm install --saveand its counterparts to use the^version specifier, instead of~. (0a3151c, @mikolalysenko) - Make
npm shrinkwrapoutput dependencies in a sorted order, so that diffs between shrinkwrap files should be saner now. (059b2bf, @Raynos) - Fix
npm dedupenot correctly respecting dependency constraints. (86028e9, @rafeca) - Fix
npm lsgiving spurious warnings when you used"latest"as a version specifier. (d2956400e0, @bajtos) - Fixed a bug where using
npm linkon packages without anamevalue could cause npm to delete itself. (401a642, @isaacs) - Fixed
npm install ./pkg@1.2.3to actually install the directory atpkg@1.2.3; before it would try to find version1.2.3of the package./pkgin the npm registry. (46d8768, @rlidwka; see alsof851b79) - Fix
npm outdatedto respect thecolorconfiguration option. (d4f6f3f, @timoxley) - Fix
npm outdated --parseable. (9575a23, @yhpark) - Fix a lockfile-related errors when using certain Git URLs.
(
164b97e, @nigelzor)
v1.4.2 (2014-02-13):
- Fixed an issue related to mid-publish GET requests made against the registry.
(
acbec48372, @isaacs)
v1.4.1 (2014-02-13):
- Fix
npm shrinkwrapforgetting to shrinkwrap dependencies that were also development dependencies. (9c575c5, @diwu1989) - Fixed publishing of pre-existing packages with uppercase characters in their
name.
(
9345d3b6c3, @isaacs)
v1.4.0 (2014-02-12):
- Remove
npm publish --force. See https://github.com/npm/npmjs.org/issues/148. (@isaacs, npm/npm-registry-client@2c8dba990d) - Other changes to the registry client related to saved configs and couch logins. (@isaacs; npm/npm-registry-client@25e2b019a1, npm/npm-registry-client@9e41e9101b, npm/npm-registry-client@2c8dba990d)
- Show an error to the user when doing
npm updateand thepackage.jsonspecifies a version that does not exist. (@evanlucas,027a33a) - Fix some issues with cache ownership in certain installation configurations.
(@outcoldman,
a132690) - Fix issues where GitHub shorthand dependencies
user/repowere not always treated the same as full Git URLs. (@robertkowalski,005d0b637a)
v1.3.26 (2014-02-02):
- Fixes and updates to publishing code
(
735427aandc0ac832, @isaacs) - Fix
npm bugswith no arguments. (b99d465, @Hoops)
v1.3.25 (2014-01-25):
v1.3.24 (2014-01-19):
- Make the search output prettier, with nice truncated columns, and a
--longoption to create wrapping columns. (20439b2and3a6942d, @timoxley) - Support multiple packagenames in
npm docs. (823010b, @timoxley) - Fix the
npm adduserbug regarding "Error: default value must be string or number" again. (b9b4248, @isaacs) - Fix
scriptsentries containing whitespaces on Windows. (80282ed, @robertkowalski) - Fix
npm updatefor Git URLs that have credentials in them (93fc364, @danielsantiago) - Fix
npm installoverwritingnpm link-ed dependencies when they are tagged Git dependencies. (af9bbd9, @evanlucas) - Remove
npm prune --productionsince it buggily removed some dependencies that were necessary for production; see #4509. Hopefully it can make its triumphant return, one day. (1101b6a, @isaacs)
Dependency updates:
909cccfread-package-json@1.1.6a3891b6rimraf@2.2.6ac6efbcsha@1.2.3dd30038node-gyp@0.12.2c8c3ebenpm-registry-client@0.3.34315286npmconf@0.1.12
v1.3.23 (2014-01-03):
- Properly handle installations that contained a certain class of circular
dependencies.
(
5dc93e8, @substack)
v1.3.22 (2013-12-25):
- Fix a critical bug in
npm adduserthat would manifest in the error message "Error: default value must be string or number." (fba4bd2, @isaacs) - Allow
npm bugsin the current directory to open the current package's bugs URL. (d04cf64, @evanlucas) - Several fixes to various error messages to include more useful or updated
information.
(
1e6f2a7,ff46366,8b4bb48; @rlidwka, @evanlucas)
v1.3.21 (2013-12-17):
- Fix a critical bug that prevented publishing due to incorrect hash
calculation.
(
4ca4a2c, @dominictarr)
v1.3.20 (2013-12-17):
- Fixes a critical bug in v1.3.19. Thankfully, due to that bug, no one could install npm v1.3.19 :)
v1.3.19 (2013-12-16):
- Adds atomic PUTs for publishing packages, which should result in far fewer requests and less room for replication errors on the server-side.
v1.3.18 (2013-12-16):
- Added an
--ignore-scriptsoption, which will preventpackage.jsonscripts from being run. Most notably, this will work onnpm install, so e.g.npm install --ignore-scriptswill not run preinstall and prepublish scripts. (d7e67bf, @sqs) - Fixed a bug introduced in 1.3.16 that would manifest with certain cache
configurations, by causing spurious errors saying "Adding a cache directory
to the cache will make the world implode."
(
966373f, @domenic) - Re-fixed the multiple download of URL dependencies, whose fix was reverted in
1.3.17.
(
a362c3f, @spmason)
v1.3.17 (2013-12-11):
- This release reverts
644c2ff, which avoided re-downloading URL and shinkwrap dependencies when doingnpm install. You can see the in-depth reasoning ind8c907e; the problem was, that the patch changed the behavior ofnpm install -fto reinstall all dependencies. - A new version of the no-re-downloading fix has been submitted as #4303 and will hopefully be included in the next release.
v1.3.16 (2013-12-11):
- Git URL dependencies are now updated on
npm install, fixing a two-year old bug (5829ecf, @robertkowalski). Additional progress on reducing the resulting Git-related I/O is tracked as #4191, but for now, this will be a big improvement. - Added a
--jsonmode tonpm outdatedto give a parseable output. (0b6c9b7, @yyx990803) - Made
npm outdatedmuch prettier and more useful. It now outputs a color-coded and easy-to-read table. (fd3017f, @quimcalpe) - Added the
--depthoption tonpm outdated, so that e.g. you can donpm outdated --depth=0to show only top-level outdated dependencies. (1d184ef, @yyx990803) - Added a
--no-git-tag-versionoption tonpm version, for doing the usual job ofnpm versionminus the Git tagging. This could be useful if you need to increase the version in other related files before actually adding the tag. (59ca984, @evanlucas) - Made
npm repoandnpm docswork without any arguments, adding them to the list of npm commands that work on the package in the current directory when invoked without arguments. (bf9048e, @robertkowalski;07600d0, @wilmoore). There are a few other commands we still want to implement this for; see #4204. - Pass through the
GIT_SSL_NO_VERIFYenvironment variable to Git, if it is set; we currently do this with a few other environment variables, but we missed that one. (c625de9, @arikon) - Fixed
npm dedupeon Windows due to incorrect path separators being used (7677de4, @mcolyer). - Fixed the
npm helpcommand when multiple words were searched for; it previously gave aReferenceError. (6a28dd1, @dereckson) - Stopped re-downloading URL and shrinkwrap dependencies, as demonstrated in
#3463
(
644c2ff, @spmason). You can use the--forceoption to force re-download and installation of all dependencies.
