Hi, a little hot-fix release for a bug introduced in 3.3.11. The ENOENT fix
last week (f0e2088
) broke
upgrades of modules that have bundled dependencies (like npm
, augh!)
aedf7cf
#10192 If a bundled module is going to be replacing a module that's currently on disk (for instance, when you upgrade a module that includes bundled dependencies) we want to select the version from the bundle in preference over the one that was there previously. (@iarna)
This is a dependency update week, so that means no PRs from our lovely users. Look for those next week. As it happens, the dependencies updated were just devdeps, so nothing for you all to worry about.
But the bug fixes, oh geez, I tracked down some really long standing stuff
this week!! The headliner is those intermittent ENOENT
errors that no one
could reproduce consistently? I think they're nailed! But also pretty
important, the bug where hapi
would install w/ a dep missing? Squashed!
f0e2088
#10026 Eliminate some, if not many, of the EONENT errorsnpm@3
has seen over the past few months. This was happening when npm would, in its own mind, correct a bundled dependency, due to apackage.json
specifying an incompatible version. Then, when npm extracted the bundled version, what was on disk didn't match its mind and… well, when it tried to act on what was in its mind, we got anENOENT
because it didn't actually exist on disk. (@iarna)
-
712fd9c
#10153 Imagine that you have a module, let's call itfun-time
, and it depends on two dependencies,need-fun@1
andneed-time
. Further,need-time
requiresneed-fun@2
. So after install the logical tree will look like this:fun-time ├── need-fun@1 └── need-time └── need-fun@2
Now, the
fun-time
author also distributes a shrinkwrap, but it only includes theneed-fun@1
in it.Resolving dependencies would look something like this:
- Require
need-fun@1
: Use version from shrinkwrap (ignoring version) - Require
need-time
: User version in package.json - Require
need-fun@2
: Use version from shrinkwrap, which oh hey, is already installed at the top level, so no further action is needed.
Which results in this tree:
fun-time ├── need-fun@1 └── need-time
We're ignoring the version check on things specified in the shrinkwrap so that you can override the version that will be installed. This is because you may want to use a different version than is specified by your dependencies' dependencies'
package.json
files.To fix this, we now only allow overrides of a dependency version when that dependency is a child (in the tree) of the thing that requires it. This means that when we're looking for
need-fun@2
we'll seeneed-fun@1
and reject it because, although it's from a shrinkwrap, it's parent isfun-time
and the package doing the requiring isneed-time
.(@iarna)
- Require
3de1463
#9187 If you were using a module with thebin
field in yourpackage.json
set to a string on a non-npmjs registry then npm would crash, due to the our expectation that thebin
field would be an object. We now pass allpackage.json
data through a routine that normalizes the format, including thebin
field. (This is the same routine that yourpackage.json
is passed through when read off of disk or sent to the registry for publication.) Doing this also ensures that older modules on npm's own registry will be treated exactly the same as new ones. (In the past we weren't always super careful about scrubbingpackage.json
data on publish. And even when we were, those rules have subtly changed over time.) (@iarna)
Hey you all! Welcome to a busy bug fix and PR week. We've got changes
to how npm install
replaces dependencies during updates, improvements
to shrinkwrap behavior, and all sorts of doc updates.
In other news, npm@3
landed in node master in preparation for node@5
with 41923c0
.
971fd47
#9929 Make the tree more consistent by doing updates in place. This means that trees after a dependency version update will more often look the same as after a fresh install. (@iarna)
eb28a8c
#9647 If a shrinkwrap already has dev deps, don't throw them away when someone later runsnpm install --save
. (@iarna)
291162c
#10021 Improve wording in the FAQ to be more empathetic and less jokey. (@TaMe3971)9a28c54
#10020 Document the command to see the list of config defaults in the section on config defaults. (@lady3bean)8770b0a
#7600 Add shortcuts to all command documentation. (@RichardLitt)e9b7d0d
#9950 On errors that can be caused by outdated node & npm, suggest updating as a part of the error message. (@ForbesLindesay)
This week sees a few small changes ready to land:
25a234b
#9668 Installnpm@3
's bundled dependencies withnpm@2
, so that the ancient npm that ships with node 0.8 can installnpm@3
directly. (@othiym23)
a332f61
#9927 Update error messages where we report a list of versions that you could have installed to show this as a comma separated list instead of as JSON. (@iarna)
4cd74b0
nock@2.15.0
(@pgte)9360976
tap@2.1.1
(@isaacs)1ead0a4
which@1.2.0
(@isaacs)759f88a
has-unicode@1.0.1
(@iarna)
This is a small update release, we're reverting
22a3af0
from last week's
release, as it is resulting in crashes. We'll revisit this PR during this
week.
So, as Kat mentioned in last week's 2.x release, we're now swapping weeks between accepting PRs and doing dependency updates, in an effort to keep release management work from taking over our lives. This week is a PR week, so we've got a bunch of goodies for you.
Relatedly, this week means 3.3.6 is now latest
and it is WAY faster than
previous 3.x releases. Give it or this a look!
2289234
#9643 #9664npm@3
was triggeringnpm@2
's build mechanics when it was linking bin files into the tree. This was originally intended to trigger rebuilds of bundled modules, butnpm@3
's flat module structure confused it. This caused two seemingly unrelated issues. First, failing optional dependencies could under some circumstances (if they were built during this phase) trigger a full build failure. And second, rebuilds were being triggered of already installed modules, again, in some circumstances. Both of these are fixed by disabling thenpm@2
mechanics and adding a special rebuild phase for the initial installation of bundled modules. (@iarna)
b78fec9
#9766 Refactor all attempts to read the module name or package name to go via a single function, with appropriate guards unusual circumstances where they aren't where we expect them. This ultimately will ensure we don't see any more recurrences of thelocaleCompare
error and related crashers. (@iarna)
22a3af0
#9553 Factor the lifecycle code to manage paths out into its own module and use that. (@kentcdodds)6a29fe3
#9677 Start testing our stuff in node 4 on travis (@fscherwi)508c6a4
#9669 MakerecalculateMetadata
more resilient to unexpectedly bogus dependency specifiers. (@tmct)3c44763
#9643 Updateinstall --only
to ignore theNODE_ENV
var and just use the only value, if specified. (@watilde)87336c3
#9879npm@3
's shrinkwrap was refusing to shrinkwrap if an optional dependency was missing– patch it to allow this. (@mantoni)
82659fd
#9208 Correct the npm style guide around quote usage (@aaroncrows)a69c83a
#9645 Fix spelling error in README (@dkoleary88)f2cf054
#9714 Fix typos in our documentation (@reggi)7224bef
#9759 Fix typo in npm-team docs (@zkat)7e6e007
#9820 Correct documentation as tobinding.gyp
(@KenanY)
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!
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)
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!
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!
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!
Anyway -- here's your version bump! :)
4aeb94c
request@2.64.0
: No longer defaulting toapplication/json
forjson
requests. Also some minor doc and packaging patches. (@simov)minimatch@3.0.0
: No longer packaging browser modules. (@isaacs)a18b213
glob@5.0.15
: Upgradedminimatch
dependency. (@isaacs)9eb64d4
nock@2.13.0
(@pgte)
I have the most exciting news for you this week. YOU HAVE NO IDEA. Well, ok, maybe you do if you follow my twitter.
Performance just got 5 bazillion times better (under some circumstances,
ymmv, etc). So– my test scenario is our very own website. In npm@2
, on my
macbook running npm ls
takes about 5 seconds. Personally it's more than
I'd like, but it's entire workable. In npm@3
it has been taking 50 seconds,
which is appalling. But after doing some work on Monday isolating the performance
issues I've been able to reduce npm@3
's run time back down to 5 seconds.
Other scenarios were even worse, there was one that until now in npm@3
that
took almost 6 minutes, and has been reduced to 14 seconds.
7bc0d4c
cf42217
#8826 Stop using deepclone on super big datastructures. Avoid cloning all-together even when that means mutating things, when possible. Otherwise use a custom written tree-copying function that understands the underlying datastructure well enough to only copy what we absolutely need to. (@iarna)
In other news, look for us this Friday and Saturday at the amazing Open Source and Feelings conference, where something like a third of the company will be attending.
cc5e6a0
hoek@2.16.3
(@nlf)912a516
boom@2.9.0
(@arb)63944e9
bluebird@2.10.1
(@petkaantonov)ef16003
mime-types@2.1.7
&mime-db@1.19.0
(@dougwilson)2b8c0dd
request@2.64.0
(@simov)8139124
brace-expansion@1.1.1
(@juliangruber)
Some of you all may not be aware, but npm is ALSO a company. I tell you this 'cause npm-the-company had an all-staff get together this week, flying in our remote folks from around the world. That was great, but it also basically eliminated normal work on Monday and Tuesday.
Still, we've got a couple of really important bug fixes this week. Plus a lil bit from the now LTS 2.x branch.
If you previously updated to npm 3 and you try to update again, you may get
an error messaging telling you that npm won't install npm into itself. Until you
are at 3.3.5 or greater, you can get around this with npm install -f -g npm
.
bef06f5
#9741 Uh... so... er... it seems that sincenpm@3.2.0
on Windows with a default configuration, it's been impossible to update npm. Well, that's not actually true, there's a work around (see above), but it shouldn't be complaining in the first place. (@iarna)
-
330b496
#9667 We were keeping track of metadata about your project while packing the tree in a way that resulted in this data being written to packed tar files headers. When this metadata included cycles, it resulted in the the tar file entering an infinite recursive loop and eventually crashing with a stack overflow.I've patched this by keeping track of your metadata by closing over the variables in question instead, and I've further restricted gathering and tracking the metadata to times when it's actually needed. (Which is only if you need bundled modules.) (@iarna)
829921f
#9741 Packages with invalid names or versions were crashing the installer. These are now captured and warned as was originally intended. (@iarna)
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)6643ada
request@2.63.0
: Useapplication/json
as the default content type when makingjson
requests. (@simov)
This is a relatively quiet release, bringing a few bug fixes and some module updates, plus via the 2.14.5 release some forward compatibility fixes with versions of Node that aren't yet released.
But, EXCITING NEWS FRIENDS, this week marks the exit of npm@3
from beta. This means that the week of this release,
v3.3.3 will
become latest
and this version (v3.3.4) will become next
!!
What I call "cruft", by which I mean, files sitting around in
your node_modules
folder, will no longer produce warnings in
npm ls
nor during npm install
. This brings npm@3
's behavior
in line with npm@2
.
ebb92ca
retry@0.8.0
(@tim-kos)55f1285
normalize-package-data@2.3.4
(@zkat)6d4ebff
sha@2.0.1
(@ForbesLindesay)09a9c7a
semver@5.0.3
(@isaacs)745000f
node-gyp@3.0.3
(@rvagg)
That's right folks. As of this week, npm@next
is npm@3
, which means it'll be
npm@latest
next week! 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.
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 deprecate
so you can actually deprecate scoped modules now (it never worked). (@zkat)
idk. Some old thing. We don't talk about it anymore.
cf1b39f
#9584 Fix ancient references tonode-waf
in the docs to refer to thenode-gyp
version of things. (@KenanY)
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.
e07354f
sha@2.0.1
: Upgraded graceful-fs! (@ForbesLindesay)83cb6ee
node-gyp@3.0.3
(@rvagg)
0d60888
normalize-package-data@2.3.4
: Use an external package to check for built-in node modules. (@sindresorhus)79b4dac
retry@0.8.0
(@tim-kos)c164941
request@2.62.0
: node 4 added to build targets. Option initialization issues fixed. (@simov)0fd878a
lru-cache@2.7.0
: Cache serialization support and fixes a cache length bug. (@isaacs)6a7a114
nock@2.12.0
(@pgte)6b25e6d
semver@5.0.3
: Removed uglify-js dead code. (@isaacs)
This short week brought us brings us a few small bug fixes, a doc change and a whole lotta dependency updates.
Plus, as usual, this includes a forward port of everything in
npm@2.14.4
.
THIS IS BETA SOFTWARE. npm@3
will remain in beta until
we're confident that it's stable and have assessed the effect of
the breaking changes on the community. During that time we will
still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be publishing new releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
.
We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant
bugs remaining. So do us a solid and deploy it in non-critical
CI environments and for day-to-day use, but maybe don't use it
for production maintenance or frontline continuous deployment
just yet.
So waaaay back at the start of August, I fixed a bug with
#9198. That fix made it
so that if you had two modules installed that both installed the
same binary (eg gulp
& gulp-cli
), that removing one wouldn't
remove the binary if it was owned by the other.
It did this by doing some hocus-pocus that, turns out, was Unix-specific, so on Windows it just threw up its hands and stopped removing installed binaries at all. Not great.
So today we're fixing that– it let us maintain the same safety that we added in #9198, but ALSO works with windows.
The documentation of the internal APIs of npm is going away,
because it would lead people into thinking they should integrate
with npm by using it. Please don't do that! In the future, we'd
like to give you a suite of stand alone modules that provide
better, more stand alone APIs for your applications to build on.
But for now, call the npm binary with process.exec
or
process.spawn
instead.
We never meant to have this be a restriction in the first place and it was only just discovered with the recent node 4.0.0 release candidate.
We're updating all of npm's deps to use the most recent
graceful-fs
. This turns out to be important for future not yet
released versions of node, because older versions monkey-patch
fs
in ways that will break in the future. Plus it ALSO makes
use of process.binding
which is an internal API that npm
definitely shouldn't have been using. We're not done yet, but
this is the bulk of them.
e7bc98e
write-file-atomic@1.1.3
(@iarna)7417600
tar@2.2.1
(@zkat)e4e9d40
read-package-json@2.0.1
(@zkat)481611d
read-installed@4.0.3
(@zkat)0dabbda
npm-registry-client@7.0.4
(@zkat)c075a91
fstream@1.0.8
(@zkat)2e4341a
fs-write-stream-atomic@1.0.4
(@zkat)18ad16e
fs-vacuum@1.2.7
(@zkat)
9d6666b
node-gyp@3.0.1
(@rvagg)349c4df
retry@0.7.0
(@tim-kos)f507551
which@1.1.2
(@isaacs)e5b6743
nopt@3.0.4
(@zkat)
316382d
mime-types@2.1.6
&mime-db@1.18.0
64b741e
spdx-correct@1.0.1
fff62ac
process-nextick-args@1.0.3
9d6488c
cryptiles@2.0.5
1912012
bluebird@2.10.0
4d09402
readdir-scoped-modules@1.0.2
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 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:
505d9e4
node-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:
10cb189
write-file-atomic@1.1.3
(@thefourtheye)edfb80b
tar@2.2.1
(@thefourtheye)aa6e1ee
read-package-json@2.0.1
(@thefourtheye)18971a3
read-installed@4.0.3
(@thefourtheye)a4cba71
fstream@1.0.8
(@thefourtheye)70a38e2
fs-write-stream-atomic@1.0.4
(@thefourtheye)9cbd20f
fs-vacuum@1.2.7
(@thefourtheye)
c4dd521
#9506 Makenpm link
work on Windows when using node pre-release/RC releases. (@jon-hall)b6bc29c
#9544process.binding
is being deprecated, so our only direct usage has been removed. (@ChALkeR)
d940594
tap@1.4.1
(@isaacs)ee38486
which@1.1.2
: Added tests for Windows-related dead code that was previously helping a silent failure happen. Travis stuff, too. (@isaacs)
475daf5
#9492 Clarify how.npmignore
and.gitignore
are found and used by npm. (@addaleax)b2c391d
nopt@3.0.4
: Minor clarifications to docs about how array and errors work. (@zkat)
This is a tiny little maintenance release, both to update dependencies and to
keep npm@3
up to date with changes made to npm@2
.
@othiym23 is putting out this release (again) as
his esteemed colleague @iarna finishes relocating
herself, her family, and her sizable anime collection all the way across North
America. It contains all the goodies in
npm@2.14.3
and one other
dependency update.
THIS IS BETA SOFTWARE. npm@3
will remain in beta until we're
confident that it's stable and have assessed the effect of the breaking
changes on the community. During that time we will still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be
publishing new releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those versions until we're ready to switch everyone over to
npm@3
. We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant bugs
remaining. So do us a solid and deploy it in non-critical CI environments
and for day-to-day use, but maybe don't use it for production maintenance or
frontline continuous deployment just yet.
That said, it's getting there! It will be leaving beta very soon!
bb5de34
is-my-json-valid@2.12.2
: Upgrade to a new, modernized version ofjson-pointer
. (@mafintosh)
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™.
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.npmrc
files when missing so downstream packagers can run tests on packed npm. (@othiym23)
No actual dep updates this week, but we're bumping a couple of devDeps:
8454835
tap@1.4.0
: Addt.contains()
as alias tot.match()
(@isaacs)13d2216
deep-equal@1.0.1
: Makenull == undefined
in non-strict mode (@isaacs)
Hi all, this npm@3
update brings you another round of bug fixes. The
headliner here is that npm update
works again. We're running down the
clock on blocker 3.x issues! Shortly after that hits zero we'll be
promoting 3.x to latest!!
And of course, we have changes that were brought forward from 2.x. Check out the release notes for 2.14.1 and 2.14.2.
THIS IS BETA SOFTWARE. npm@3
will remain in beta until we're
confident that it's stable and have assessed the effect of the breaking
changes on the community. During that time we will still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be
publishing new releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those versions until we're ready to switch everyone over to
npm@3
. We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant bugs
remaining. So do us a solid and deploy it in non-critical CI environments
and for day-to-day use, but maybe don't use it for production maintenance or
frontline continuous deployment just yet.
f130a00
#9095npm update
once again works! Previously, after selecting packages to update, it would then pick the wrong location to run the install from. (@iarna)
d088b7d
#9227 Add some additional logging at the verbose and silly levels when running lifecycle scripts. Hopefully this will make debugging issues with them a bit easier! (@saper)
-
f4a5784
#9308 Make fetching metadata for local modules faster! This ALSO means that doing things like runningnpm repo
won't build your module and maybe runprepublish
. (@iarna) -
4468c92
#9205 Fix a bug where local modules would sometimes not resolve relative links using the correct base path. (@iarna) -
d395a6b
#8995 Certain combinations of packages could result in different install orders for their initial installation than for reinstalls run on the same folder. (@iarna) -
d119ea6
#9113 Make extraneous packages always up innpm ls
. Previously, if an extraneous package had a dependency that depended back on the original package this would result in the package not showing up inls
. (@iarna) -
02420dc
#9113 Stop warning about missing top level package.json files. Errors in said files will still be reported. (@iarna)
1ed1364
rimraf@2.4.3
(@isaacs) Added EPERM to delay/retry loope7b8315
read@1.0.7
Smaller distribution package, better metadata (@isaacs)
b273bcc
mime-types@2.1.5
df6e225
mime-db@1.17.0
785f2ad
is-my-json-valid@2.12.1
88170dd
form-data@1.0.0-rc3
af5357b
request@2.61.0
337f96a
chalk@1.1.1
3dfd74d
async@1.4.2
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 ThepreferGlobal
warning shouldn't happen if the dependency being installed is listed indevDependencies
. (@saper)222fcec
#9409preferGlobal
now prints a warning when there are no dependencies for the current package. (@zkat)5cfed6d
#9409 Verify thatpreferGlobal
is warning as expected (when apreferGlobal
dependency is installed, but isn't listed in eitherdependencies
ordevDependencies
). (@zkat)
eeafce2
validate-npm-package-license@3.0.1
: Include additional metadata in parsed license object, useful for license checkers. (@kemitchell)1502a28
normalise-package-data@2.3.2
: Updated to usevalidate-npm-package-license@3.0.1
. (@othiym23)cbde823
init-package-json@1.9.1
: Add asilent
option to suppress output on writing the generatedpackage.json
. Also, updated to usevalidate-npm-package-license@3.0.1
. (@zkat)08fda46
tar@2.2.0
: Minor improvements. (@othiym23)dc2f20b
rimraf@2.4.3
:EPERM
now triggers a delay / retry loop (since Windows throws this when things still hold a handle). (@isaacs)e8acb27
read@1.0.7
: Fix licensing ambiguity. (@isaacs)
73a1ee0
#9386 Include additional unignorable files in documentation. (@mjhasbach)0313e40
#9396 Improve theEISDIR
error 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)
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-gyp
that 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
.npmrc
files 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.npmrc
was packed into packages, leaking those credentials. npm will no longer include.npmrc
when 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.
b9474a8
fstream-npm@1.0.5
: Stop publishing build cruft (config.gypi
) and per-project.npmrc
files 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)
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/d
and/s
when invokingcmd.exe
. (@saper)
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)
This is a pretty EXCITING week. But I may be a little excitable– or possibly sleep deprived, it's sometimes hard to tell them apart. =D So Kat really went the extra mile this week and got the client side support for teams and orgs out in this week's 2.x release. You can't use that just yet, 'cause we have to turn on some server side stuff too, but this way it'll be there for you all the moment we do! Check out the details over in the 2.14.0 release notes!
But we over here in 3.x ALSO got a new feature this week, check out the new
--only
and --also
flags for better control over when dev and production
dependencies are used by various npm commands.
That, and some important bug fixes round out this week. Enjoy everyone!
THIS IS BETA SOFTWARE. EXCITING NEW BETA WARNING!!! Ok, I fibbed,
EXACTLY THE SAME BETA WARNINGS: npm@3
will remain in beta until we're
confident that it's stable and have assessed the effect of the breaking
changes on the community. During that time we will still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be
publishing new releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those versions until we're ready to switch everyone over to
npm@3
. We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant bugs
remaining. So do us a solid and deploy it in non-critical CI environments
and for day-to-day use, but maybe don't use it for production maintenance or
frontline continuous deployment just yet.
Hey we've got a SUPER cool new feature for you all, thanks to the fantastic
work of @davglass and
@bengl we have --only=prod
,
--only=dev
, --also=prod
and --also=dev
options. These apply in
various ways to: npm install
, npm ls
, npm outdated
and npm update
.
So for instance:
npm install --only=dev
Only installs dev dependencies. By contrast:
npm install --only=prod
Will only install prod dependencies and is very similar to --production
but differs in that it doesn't set the environment variables that
--production
does.
The related new flag, --also
is most useful with things like:
npm shrinkwrap --also=dev
As shrinkwraps don't include dev deps by default. This replaces passing in
--dev
in that scenario.
And that leads into the fact that this deprecates --dev
as its semantics
across commands were inconsistent and confusing.
b31812e
#8996 When removing a module that has bin files, if one that we're going to remove is a symlink to a DIFFERENT module, leave it alone. This only happens when you have two modules that try to provide the same bin. (@iarna)
d2178a9
#9223 Close a bunch of infinite loops that could show up with symlink cycles in your dependencies. (@iarna)
Well, not just yet. This was scheduled for next week, but it snuck into 2.x this week.
139dd92
#8716npm init
will now only pick up the modules you install, not everything else that got flattened with them. (@iarna)
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
:
6424170
Added newnpm team
command and subcommands. (@zkat)52220d1
Added documentation for newnpm team
command. (@zkat)4e66830
Updatednpm access
to support teams and organizations. (@zkat)ea3eb87
Gussied up docs fornpm access
with new commands. (@zkat)6e0b431
Fix upnpm whoami
to make the underlying API usable elsewhere. (@zkat)f29c931
npm-registry-client@7.0.1
: Upgradenpm-registry-client
API to supportteam
andaccess
calls against the registry. (@zkat)
c977e12
init-package-json@1.8.0
: Checks for somenpm@3
metadata. (@iarna)5c8c9e5
columnify@1.5.2
: Updated some dependencies. (@timoxley)5d56742
chownr@1.0.1
: Tests, docs, and minor style nits. (@isaacs)
Lot's of lovely bug fixes for npm@3
. I'm also suuuuper excited that I
think we have a handle on stack explosions that effect a small portion of
our users. We also have some tantalizing clues as to where some low hanging
fruit may be for performance issues.
And of course, in addition to the npm@3
specific bug fixes, there are some
great one's coming in from npm@2
! @othiym23
put together that release this week– check out its
release notes for the deets.
THIS IS BETA SOFTWARE. Just like the airline safety announcements,
we're not taking this plane off till we finish telling you: npm@3
will
remain in beta until we're confident that it's stable and have assessed the
effect of the breaking changes on the community. During that time we will
still be doing npm@2
releases, with npm@2
tagged as latest
and next
.
We'll also be publishing new releases of npm@3
as npm@v3.x-next
and
npm@v3.x-latest
alongside those versions until we're ready to switch
everyone over to npm@3
. We need your help to find and fix its remaining
bugs. It's a significant rewrite, so we are sure there still significant
bugs remaining. So do us a solid and deploy it in non-critical CI
environments and for day-to-day use, but maybe don't use it for production
maintenance or frontline continuous deployment just yet.
a8c8a13
#9050 Resolve peer deps relative to the parent of the requirer (@iarna)05f0226
#9077 Fix crash when savinggit+ssh
urls (@iarna)e4a3808
#8951 Extend our patch to allow*
to match something when a package only has prerelease versions to everything and not just the cache. (@iarna)d135abf
#8871 Don't warn about a missingpackage.json
or missing fields in the global install directory. (@iarna)
990ee4f
path-is-inside@1.0.1
(@domenic)1f71ec0
lodash.clonedeep@3.0.2
(@jdalton)a091354
marked@0.3.5
(@chjj)fc51f28
tap@1.3.2
(@isaacs)3569ec0
nock@2.10.0
(@pgte)ad5f6fd
npm-registry-mock@1.0.1
(@isaacs)
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!
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 --link
against them. (@murgatroid99)422da66
#9108 Clear up minor confusion around wording inbundledDependencies
section ofpackage.json
docs. (@derekpeterson)6b42d99
#9146 Include scripts that run forpreversion
,version
, andpostversion
in the section for lifecycle scripts rather than the genericnpm run-script
output. (@othiym23)
91a48bb
chmodr@1.0.1
: Ignore symbolic links when recursively changing mode, just like the Unix command. (@isaacs)4bbc86e
nock@2.10.0
(@pgte)
A bunch of stuff got deferred for various reasons, which just means more branches to land next week!
Don't forget to check out Kat's 2.x release for other quiet goodies.
THIS IS BETA SOFTWARE. Yes, we're still reminding you of this. No,
you can't be excused. npm@3
will remain in beta until we're confident
that it's stable and have assessed the effect of the breaking changes on the
community. During that time we will still be doing npm@2
releases, with
npm@2
tagged as latest
and next
. We'll also be publishing new
releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
. We need your
help to find and fix its remaining bugs. It's a significant rewrite, so we
are sure there still significant bugs remaining. So do us a solid and
deploy it in non-critical CI environments and for day-to-day use, but maybe
don't use it for production maintenance or frontline continuous deployment
just yet.
6e53c3d
#8985 Many thanks to @bengl for noticing that one of our tests wasn't testing what it claimed it was testing! (@bengl)
eb2c7aa
#9068 Stop sorting keys in thepackage.json
that we haven't edited. Many thanks to @Qix- for bringing this up and providing a first pass at a patch for this. (@iarna)
555f60c
marked@0.3.4
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. :)
So here it is. The patch. Hope it helps. (Thanks, @ktarplee!)
Hooray.
This is a smallish release with a new config option and some bug fixes. And lots of module updates.
THIS IS BETA SOFTWARE. Yes, we're still reminding you of this. No,
you can't be excused. npm@3
will remain in beta until we're confident
that it's stable and have assessed the effect of the breaking changes on the
community. During that time we will still be doing npm@2
releases, with
npm@2
tagged as latest
and next
. We'll also be publishing new
releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
. We need your
help to find and fix its remaining bugs. It's a significant rewrite, so we
are sure there still significant bugs remaining. So do us a solid and
deploy it in non-critical CI environments and for day-to-day use, but maybe
don't use it for production maintenance or frontline continuous deployment
just yet.
-
b3ee452
#9038 We previously disabled the use of the newfs.access
API on Windows, but the bug we were seeing is fixed inio.js@1.5.0
so we now usefs.access
if you're using that version or greater. (@iarna) -
b181fa3
#8921 #8637 Rejigger how we validate modules for install. This allow is to fix a problem where arch/os checking wasn't being done at all. It also made it easy to add back in a check that declines to install a module in itself unless you force it. (@iarna)
These are all development dependencies and semver-compatible subdep upgrades, so they should not have visible impact on users.
6b3f6d9
standard@4.3.3
f4e22e5
readable-stream@2.0.2
(inside concat-stream)f130bfc
minimatch@2.0.10
(inside node-gyp's copy of glob)36c6a0d
caseless@0.11.0
80df59c
chalk@1.1.0
ea935d9
bluebird@2.9.34
3588a0c
extend@3.0.0
c6a8450
form-data@1.0.0-rc2
a04925b
har-validator@1.8.0
ee7c095
has-ansi@2.0.0
944fc34
hawk@3.1.0
783dc7b
lodash._basecallback@3.3.1
acef0fe
lodash._baseclone@3.3.0
dfe959a
lodash._basedifference@3.0.3
a03bc76
lodash._baseflatten@3.1.4
8a07d50
lodash._basetostring@3.0.1
7785e3f
lodash._baseuniq@3.0.3
826fb35
lodash._createcache@3.1.2
76030b3
lodash._createpadding@3.6.1
1a49ec6
lodash._getnative@3.9.1
eebe47f
lodash.isarguments@3.0.4
09994d4
lodash.isarray@3.0.4
b6f8dbf
lodash.keys@3.1.2
c67dd6b
lodash.pad@3.1.1
4add042
lodash.repeat@3.0.1
e04993c
lru-cache@2.6.5
2ed7da4
mime-db@1.15.0
ae08244
mime-types@2.1.3
e71410e
os-homedir@1.0.1
67c13e0
process-nextick-args@1.0.2
12ee041
qs@4.0.0
15564a6
spdx-license-ids@1.0.2
8733bff
supports-color@2.0.0
230943c
tunnel-agent@0.4.1
26a4653
ansi-styles@2.1.0
3d27081
bl@1.0.0
9efa110
async@1.4.0
- As usual, we've ported all the
npm@2
goodies in this week's v2.13.3 release.
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
!
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)
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=public
when 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)
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)
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)79efd79
minimatch@2.0.10
: A pattern like'*.!(x).!(y)'
should not match a name like'a.xyz.yab'
. (@isaacs)39c7dc9
request@2.60.0
: A few bug fixes and doc updates. (@simov)72d3c3a
rimraf@2.4.2
: Minor doc and dep updates (@isaacs)7513035
nock@2.9.1
(@pgte)3d9aa82
Fixes this thing where Kat decided to savenock
as a regular dependency ;) (@othiym23)
Rebecca: So Kat, I hear this week's other release uses a dialog between us to explain what changed?
Kat: Well, you could say that…
Rebecca: I would! This week I fixed more npm@3
bugs!
Kat: That sounds familiar.
Rebecca: Eheheheh, well, before we look at those, a word from our sponsor…
THIS IS BETA SOFTWARE. Yes, we're still reminding you of this. No,
you can't be excused. npm@3
will remain in beta until we're confident
that it's stable and have assessed the effect of the breaking changes on the
community. During that time we will still be doing npm@2
releases, with
npm@2
tagged as latest
and next
. We'll also be publishing new
releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
. We need your
help to find and fix its remaining bugs. It's a significant rewrite, so we
are sure there still significant bugs remaining. So do us a solid and
deploy it in non-critical CI environments and for day-to-day use, but maybe
don't use it for production maintenance or frontline continuous deployment
just yet.
Rebecca: Ok, enough of the dialoguing, that's Kat's schtick. But do remember kids, betas hide in dark hallways waiting to break your stuff, stuff like…
-
6d69ec9
#8967 Removing a module linked into your globals would result in having all of its subdeps removed. Since the npm release process does exactly this, it burned me -every- -single- -week-. =D While we're here, we also removed extraneous warns that used to spill out when you'd remove a symlink. (@iarna) -
fdb360f
#8874 Linking scoped modules was failing outright, but this fixes that and updates our tests so we don't do it again. (@iarna)
9fafb18
#8701npm@3
introduced permissions checks that run before it actually tries to do something. This saves you from having an install fail half way through. We did this using the shiny newfs.access
function available innode 0.12
andio.js
, with fallback options for older nodes. Unfortunately the way we implemented the fallback caused racey problems for Windows systems. This fixes that by ensuring we only ever run any one check on a directory once. BUT it turns out there are bugs infs.access
on Windows. So this ALSO just disables the use offs.access
on Windows entirely until that settles out. (@iarna)
- Check out Kat's super-fresh release notes for v2.13.2
and see all the changes we ported from
npm@2
.
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
!
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!
769f06e
Updated tests forgetResolved
so the URLs are run throughnormalize-git-url
. (@zkat)edbae68
#8881 Added tests to verify thatgit+https:
URLs are handled compatibly. (@zkat)
bad4e014
#8924 Make sure documented default values inlib/cache.js
properly correspond to current code. (@watilde)e7a11fd
#8036 Clarify the documentation for.npmrc
to clarify that it's not read at the project level when doing global installs. (@espadrine)
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)
bfa1f45
normalize-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)6f757d2
glob@5.0.15
: Better handling of ENOTSUP (@isaacs)0920819
node-gyp@2.0.2
: Fixes an issue with long paths on Win32 (@TooTallNate)
So, v3.1.1
managed to actually break installing local modules. And then
immediately after I drove to an island for the weekend. 😁 So let's get
this fixed outside the usual release train!
Fortunately it didn't break installing global modules and so you could swap it out for another version at least.
THIS IS BETA SOFTWARE. Yes, we're still reminding you of this. No,
you can't be excused. npm@3
will remain in beta until we're confident
that it's stable and have assessed the effect of the breaking changes on the
community. During that time we will still be doing npm@2
releases, with
npm@2
tagged as latest
and next
. We'll also be publishing new
releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
. We need your
help to find and fix its remaining bugs. It's a significant rewrite, so we
are sure there still significant bugs remaining. So do us a solid and
deploy it in non-critical CI environments and for day-to-day use, but maybe
don't use it for production maintenance or frontline continuous deployment
just yet.
Rebecca's up too late writing tests, so you can have npm@3
bug fixes! Lots
of great new issues from you all! ❤️️ Keep it up!
THIS IS BETA SOFTWARE. Yes, we're still reminding you of this. No,
you can't be excused. npm@3
will remain in beta until we're confident
that it's stable and have assessed the effect of the breaking changes on the
community. During that time we will still be doing npm@2
releases, with
npm@2
tagged as latest
and next
. We'll also be publishing new
releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those
versions until we're ready to switch everyone over to npm@3
. We need your
help to find and fix its remaining bugs. It's a significant rewrite, so we
are sure there still significant bugs remaining. So do us a solid and
deploy it in non-critical CI environments and for day-to-day use, but maybe
don't use it for production maintenance or frontline continuous deployment
just yet.
9badfd6
#8608 Make global installs and uninstalls MUCH faster by only reading the directories of modules referred to by arguments. (@iarna075a5f0
#8660 Failed optional deps would still result in the optional deps own dependencies being installed. We now find them and fail them out of the tree. (@iarnac9fbbb5
#8863 The "no compatible version found" error message was including only the version requested, not the name of the package we wanted. Ooops! (@iarna32e6bbd
#8806 The "uninstall" lifecycle was being run after all of a module's dependencies has been removed. This reverses that order-- this means "uninstall" lifecycles can make use of the package's dependencies. (@iarna
- Check out the v2.13.1 release notes
and see all the changes we ported from
npm@2
.
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.
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)22fdc1d
Visually emphasize the correct way to write lifecycle scripts. (@josh-egan)
413c3ac
Use npm's2.x
branch for testing its2.x
branch. (@iarna)7602f64
Don't prompt for GnuPG passphrase in version lifecycle tests. (@othiym23)
d338668
#8796fstream-npm@1.0.4
: When packing the package tarball, npm no longer crashes for packages with certain combinations of.npmignore
entries,.gitignore
entries, and lifecycle scripts. (@iarna)dbe7c9c
nock@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.
This has been a brief week of bug fixes, plus some fun stuff merged forward from this weeks 2.x release. See the 2.13.0 release notes for details on that.
You all have been AWESOME with
all
the
npm@3
bug reports! Thank you and keep up the great work!
Remember how last week we said npm@3
would go to 3.0-next
and latest
tags? Yeaaah, no, please use npm@v3.x-next
and npm@v3.x-latest
going forward.
I dunno why we said "suuure, we'll never do a feature release till we're out
of beta" when we're still forward porting npm@2.x
features. ¯\_(ツ)_/¯
If you do accidentally use the old tag names, I'll be maintaining them for a few releases, but they won't be around forever.
THIS IS BETA SOFTWARE. npm@3
will remain in beta until we're
confident that it's stable and have assessed the effect of the breaking
changes on the community. During that time we will still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be
publishing new releases of npm@3
as npm@v3.x-next
and npm@v3.x-latest
alongside those versions until we're ready to switch everyone over to
npm@3
. We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant bugs
remaining. So do us a solid and deploy it in non-critical CI environments
and for day-to-day use, but maybe don't use it for production maintenance
or frontline continuous deployment just yet.
0030ade
#8685 Windows would hang when trying to clone git repos (@euprogramador)b259bcc
#8786 Windows permissions checks would cause installations to fail under some circumstances. We're disabling the checks entirely for this release. I'm hoping to check back with this next week to get a Windows friendly fix in. (@iarna)
0848698
#8686 Stop leaving progress bar cruft on the screen during publication (@ajcrites)57c3cea
#8695 Remote packages with shrinkwraps made npm cause node + iojs to explode and catch fire. NO MORE. (@iarna)2875ba3
#8723 I uh, told you that engineStrict checking had gone away last week. TURNS OUT I LIED. So this is making that actually be true. (@iarna)28064e5
#3358 Consistently allow Unicode BOMs at the start of package.json files. Previously this was allowed some of time, like when you were installing modules, but not others, like running npm version or installing w/--save
. (@iarna)3cb6ad2
#8736npm@3
wasn't running the "install" lifecycle in your current (toplevel) module. This broke modules that relied on C compilation. BOO. (@iarna)68da583
#8766 To my great shame,npm link package
wasn't working AT ALL if you didn't havepackage
already installed. (@iarna)edd7448
read-package-tree@5.0.0
: This update makes read-package-tree not explode when there's bad data in your node_modules folder.npm@2
silently ignores this sort of thing. (@iarna)0bb08c8
#8778 RELATEDLY, we now show any errors from your node_modules folder after your installation completes as warnings. We're also reporting these innpm ls
now. (@iarna)6c248ff
#8779 Hey, you know how we used to complain if yourpackage.json
was missing stuff? Well guess what, we are again. I know, I know, you can thank me later. (@iarna)d6f7c98
So, when we were rolling back after errors we had untested code that tried to undo moves. Being untested it turns out it was very broken. I've removed it until we have time to do this right. (@iarna)
Just the one. Others came in via the 2.x release. Do check out its changelog, immediately following this message.
4e602c5
lodash@3.2.2
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, 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.
f1f7a85
Add ping command to CLI (@michaelnisi)8cec629
Add ping command to npm-registry-client (@michaelnisi)0c0c92d
Fixed ping command issues (added docs, tests, fixed minor bugs, etc) (@zkat)
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)
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.
022691a
graceful-fs@4.1.2
: Updated so we can monkey patch globally. (@isaacs)c9fb0fd
Globally monkey-patch graceful-fs. This should fix some errors when installing packages with lots of dependencies. (@isaacs)
5587d0d
Nice clarification fordirectories.bin
(@ujane)20673c7
Hey, Windows folks! Check outnvm-windows
(@ArtskydJ)
5afa2d5
validate-npm-package-name@2.2.2
: Documented package name rules in README (@zeusdeux)021f4d9
rimraf@2.4.1
: #74 Use async function for bin (to better handle Window'sEBUSY
) (@isaacs)5223432
osenv@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)8ebbc90
npm-cache-filename@1.0.2
: Make sure different git references get different cache folders. This should preventfoo/bar#v1.0
andfoo/bar#master
from sharing the same cache folder. (@tomekwi)367b854
lru-cache@2.6.5
: Minor test/typo changes (@isaacs)9fcae61
glob@5.0.13
: Tiny doc change + stop firing 'match' events for ignored items. (@isaacs)
7827249
PeerDependencies
errors now include the package version. (@NickHeiner)
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.
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!
7e5da23
When using the new, "fixed" cache directory creator, be extra-careful to not callprocess.getuid()
on platforms that lack it. (@othiym23)
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.git
isn'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)
679bf47
#40read-installed@4.0.1
: Handle prerelease versions in top-level dependencies not inpackage.json
without marking those packages as invalid. (@benjamn)3a67410
tap@1.3.1
(@isaacs)151904a
nopt@3.0.3
(@isaacs)
Wow, it's finally here! This has been a long time coming. We are all delighted and proud to be getting this out into the world, and are looking forward to working with the npm user community to get it production-ready as quickly as possible.
npm@3
constitutes a nearly complete rewrite of npm's installer to be
easier to maintain, and to bring a bunch of valuable new features and
design improvements to you all.
@othiym23 and @isaacs have been talking about the changes in this release for well over a year, and it's been the primary focus of @iarna since she joined the team.
Given that this is a near-total rewrite, all changes listed here are @iarna's work unless otherwise specified.
THIS IS BETA SOFTWARE. npm@3
will remain in beta until we're
confident that it's stable and have assessed the effect of the breaking
changes on the community. During that time we will still be doing npm@2
releases, with npm@2
tagged as latest
and next
. We'll also be
publishing new releases of npm@3
as npm@3.0-next
and npm@3.0-latest
alongside those versions until we're ready to switch everyone over to
npm@3
. We need your help to find and fix its remaining bugs. It's a
significant rewrite, so we are sure there still significant bugs
remaining. So do us a solid and deploy it in non-critical CI environments
and for day-to-day use, but maybe don't use it for production maintenance
or frontline continuous deployment just yet.
grunt
, gulp
, and broccoli
plugin maintainers take note! You will be
affected by this change!
- #6930
(#6565)
peerDependencies
no longer cause anything to be implicitly installed. Instead, npm will now warn if a packagespeerDependencies
are missing, but it's up to the consumer of the module (i.e. you) to ensure the peers get installed / are included inpackage.json
as directdependencies
ordevDependencies
of your package. - #3803
npm also no longer checks
peerDependencies
until after it has fully resolved the tree.
This shifts the responsibility for fulfilling peer dependencies from library
/ framework / plugin maintainers to application authors, and is intended to
get users out of the dependency hell caused by conflicting peerDependency
constraints. npm's job is to keep you out of dependency hell, not put you
in it.
- #6931 The rarely-used
package.json
optionengineStrict
has been deprecated for several months, producing warnings when it was used. Starting withnpm@3
, the value of the field is ignored, and engine violations will only produce warnings. If you, as a user, want strictengines
field enforcement, just runnpm config set engine-strict true
.
As with the peer dependencies change, this is about shifting control from
module authors to application authors. It turns out engineStrict
was very
difficult to understand even harder to use correctly, and more often than
not just made modules using it difficult to deploy.
77f1aec
Withnpm view
(akanpm info
), always return arrays for versions, maintainers, etc. Previously npm would return a plain value if there was only one, and multiple values if there were more. (@KenanY)
Again, this is a BETA RELEASE, so not everything is working just yet. Here are the issues that we already know about. If you run into something that isn't on this list, let us know!
- #8575 Circular deps will never be removed by the prune-on-uninstall code.
- #8588 Local deps where the dep name and the name in the package.json differ don't result in an error.
- #8637
Modules can install themselves as direct dependencies.
npm@2
declined to do this. - #8660 Dependencies of failed optional dependencies aren't rolled back when the optional dependency is, and then are reported as extraneous thereafter.
-
#5919 Previously the installer had a set of steps it executed for each package and it would immediately start executing them as soon as it decided to act on a package.
But now it executes each of those steps at the same time for all packages, waiting for all of one stage to complete before moving on. This eliminates many race conditions and makes the code easier to reason about.
This fixes, for instance:
- #6926
(#5001,
#6170)
install
andpostinstall
lifecycle scripts now only executeafter
all the module with the script's dependencies are installed.
You'll now get a tree much like the one produced by npm ls
that
highlights in orange the packages that were installed. Similarly, any
removed packages will have their names prefixed by a -
.
Also, npm outdated
used to include the name of the module in the
Location
field:
Package Current Wanted Latest Location
deep-equal MISSING 1.0.0 1.0.0 deep-equal
glob 4.5.3 4.5.3 5.0.10 rimraf > glob
Now it shows the module that required it as the final point in the
Location
field:
Package Current Wanted Latest Location
deep-equal MISSING 1.0.0 1.0.0 npm
glob 4.5.3 4.5.3 5.0.10 npm > rimraf
Previously the Location
field was telling you where the module was on
disk. Now it tells you what requires the module. When more than one thing
requires the module you'll see it listed once for each thing requiring it.
- #6928
(#2931
#2950)
npm install
when you have annpm-shrinkwrap.json
will ensure you have the modules specified in it are installed in exactly the shape specified no matter what you had when you started. - #6913
(#1341
#3124
#4956
#6349
#5465)
npm install
when some of your dependencies are missing sub-dependencies will result in those sub-dependencies being installed. That is,npm install
now knows how to fix broken installs, most of the time. - #5465
If you directly
npm install
a module that's already a subdep of something else and your new version is incompatible, it will now install the previous version nested in the things that need it. a2b50cf
#5693 When installing a new module, if it's mentioned in yournpm-shrinkwrap.json
or yourpackage.json
use the version specifier from there if you didn't specify one yourself.
Your dependencies will now be installed maximally flat. Insofar as is
possible, all of your dependencies, and their dependencies, and THEIR
dependencies will be installed in your project's node_modules
folder with no
nesting. You'll only see modules nested underneath one another when two (or
more) modules have conflicting dependencies.
- #3697 This will hopefully eliminate most cases where windows users ended up with paths that were too long for Explorer and other standard tools to deal with.
- #6912 (#4761 #4037) This also means that your installs will be deduped from the start.
- #5827 This deduping even extends to git deps.
- #6936 (#5698) Various commands are dedupe aware now.
This has some implications for the behavior of other commands:
npm uninstall
removes any dependencies of the module that you specified that aren't required by any other module. Previously, it would only remove those that happened to be installed under it, resulting in left over cruft if you'd ever deduped.npm ls
now shows you your dependency tree organized around what requires what, rather than where those modules are on disk.- #6937
npm dedupe
now flattens the tree in addition to deduping.
And bundling of dependencies when packing or publishing changes too:
- #2442 bundledDependencies no longer requires that you specify deduped sub deps. npm can now see that a dependency is required by something bundled and automatically include it. To put that another way, bundledDependencies should ONLY include things that you included in dependencies, optionalDependencies or devDependencies.
- #5437
When bundling a dependency that's both a
devDependency
and the child of a regulardependency
, npm bundles the child dependency.
As a demonstration of our confidence in our own work, npm's own
dependencies are now flattened, deduped, and bundled in the npm@3
style.
This means that npm@3
can't be packed or published by npm@2
, which is
something to be aware of if you're hacking on npm.
First of all, they should be idempotent now
(#5779). No more differences
because the first time you install (without npm-shrinkwrap.json
) and the
second time (with npm-shrinkwrap.json
).
- #6781
Second, if you save your changes to
package.json
and you havenpm-shrinkwrap.json
, then it will be updated as well. This applies to all of the commands that update your tree:npm install --save
npm update --save
npm dedupe --save
(#6410)npm uninstall --save
- #4944
(#5161
#5448)
Third, because
node_modules
folders are now deduped and flat, shrinkwrap has to also be smart enough to handle this.
And finally, enjoy this shrinkwrap bug fix:
- #3675
When shrinkwrapping a dependency that's both a
devDependency
and the child of a regulardependency
, npm now correctly includes the child.
- #6911 (#1257 #5340 #6420) The spinner is gone (yay? boo? will you miss it?), and in its place npm has progress bars, so you actually have some sense of how long installs will take. It's provided in Unicode and non-Unicode variants, and Unicode support is automatically detected from your environment.
The bottom is where we usually hide the less interesting bits of each release, but each of these are small but incredibly useful bits of this release, and very much worth checking out:
9ebe312
Build system maintainers, rejoice: npm does a better job of cleaning up after itself in your temporary folder.- #6942 Check for permissions issues prior to actually trying to install anything.
- Emit warnings at the end of the installation when possible, so that they'll be on your screen when npm stops.
- #3505
npm --dry-run
: You can now ask that npm only report what it would have done with the new--dry-run
flag. This can be passed to any of the commands that change yournode_modules
folder:install
,uninstall
,update
anddedupe
. 81b46fb
npm now knows the correct URLs fornpm bugs
andnpm repo
for repositories hosted on Bitbucket and GitLab, just like it does for GitHub (and GitHub support now extends to projects hosted as gists as well as traditional repositories).5be4008a
npm has been cleaned up to pass thestandard
style checker. Forrest and Rebecca both feel this makes it easier to read and understand the code, and should also make it easier for new contributors to put merge-ready patches. (@othiym23)
6401643
Make sure the global install directory exists before installing to it. (@thefourtheye)- #6158 When we remove modules we do so inside-out running unbuild for each one.
960a765
The short usage information for each subcommand has been brought in sync with the documentation. (@smikes)
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.
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
: AllowUNLICENSED
andSEE 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)
9d8cac9
#8548 Remove extraneous newline fromnpm view
output, 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)
5018335
#8365 Add details about which git environment variables are whitelisted by npm. (@nmalaguti)bed9edd
#8554 Fix typo in version docs. (@rainyday)
7ce2f06
request@2.58.0
: Refactor tunneling logic, and useextend
instead of abusingutil._extend
. (@simov)e6c6195
nock@2.6.0
: Refined interception behavior. (@pgte)9583cc3
fstream-npm@1.0.3
: Ensure thatmain
entry inpackage.json
is always included in the bundled package tarball. (@coderhaoxin)df89493
fstream@1.0.7
(@isaacs)9744049
dezalgo@1.0.3
:dezalgo
should be usable in the browser, and can be now thatasap
has been upgraded to be browserifiable. (@mvayngrib)
This was a very quiet week. This release was done by @iarna, while the rest of the team hangs out at NodeConf Adventure!
9f439da
spdx@0.4.1
: License range updates (@kemitchell)2dd055b
normalize-package-data@2.2.1
: Fixes a crashing bug when the package.jsonscripts
property is not an object. (@iarna)e02e85d
osenv@0.1.2
: Switches to using theos-tmpdir
module instead ofos.tmpdir()
for greate consistency in behavior between node versions. (@iarna)a6f0265
ini@1.3.4
(@isaacs)7395977
rimraf@2.4.0
(@isaacs)
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
31aada4
#8401npm outdated
output is just that much nicer to consume now, due to sorting by name. (@watilde)458a919
#8469 Explicitly setcwd
forpreversion
,version
, andpostversion
scripts. This makes the scripts findable relative to the root dir. (@alexkwolfe)55d6d71
Ensure package name and version are included in display duringnpm version
lifecycle execution. Gets rid of those littleundefined
s in the console. (@othiym23)
3901e49
#8462 English apparently requires correspondence between indefinite articles and attached nouns. (@Enet4)5a744e4
#8421 The effect ofnpm prune
's--production
flag and how to use it have been documented a bit better. (@foiseworth)eada625
We've updated our.mailmap
andAUTHORS
files to make sure credit is given where credit is due. (@othiym23)
c929fd1
readable-stream@1.1.13
: Manually dedupedv1.1.13
(streams3) to make deduping more reliable onnpm@<3
. (@othiym23)a9b4b78
request@2.57.0
: Replace dependency on IncomingMessage's.client
with.socket
as the former was deprecated in io.js 2.2.0. (@othiym23)4b5e557
abbrev@1.0.7
: Better testing, with coverage. (@othiym23)561affe
semver@4.3.6
: .npmignore added for less cruft, and better testing, with coverage. (@othiym23)60aef3c
graceful-fs@3.0.8
: io.js fixes. (@zkat)f8bd453
config-chain@1.1.9
: Added MIT license to package.json (@zkat)
This release brought to you from poolside at the Omni Amelia Island Resort and JSConf 2015, which is why it's so tiny.
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)
b72de41
node-gyp@2.0.0
: Use a newer version ofgyp
, and generally improve support for Visual Studios and Windows. (@TooTallNate)8edbe21
node-gyp@2.0.1
: Don't crash when Python's version doesn't parse as valid semver. (@TooTallNate)ba0e0a8
glob@5.0.10
: Add coverage to tests. (@isaacs)7333701
request@2.56.0
: Bug fixes and dependency upgrades. (@simov)
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!
b07f7c7
#7906 Add newscripts
to allow you to run scripts before and after thenpm version
command 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)
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)
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)d3526ce
Improve 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)
fc52160
#4700 #5044init-package-json@1.6.0
: Make entering an invalid version while runningnpm init
give 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)6d74a2d
npm-package-arg@4.0.1
: Fix tests on windows (@Bacra) and with more recenthosted-git-info
. (@iarna)50f7178
hosted-git-info@2.1.4
: Correct spelling in its documentation. (@iarna)d7956ca
glob@5.0.7
: Fix a bug where unusual error conditions could make further use of the module fail. (@isaacs)44f7d74
tap@1.1.0
: Update to the most recent tap to get a whole host of bug fixes and integration with coveralls. (@isaacs)c21e8a8
nock@2.2.0
(@othiym23)
- Add missing ISC license file to package (@kasicka):
- Switch license to BSD-2-Clause from plain "BSD" (@isaacs):
- Switch license to ISC from BSD (@isaacs):
- Switch license to ISC from MIT (@isaacs):
dc77520
When 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)f70dea9
Make clearer that--registry
can be used on a per-publish basis to push a package to a non-default registry. (@mischkl)a3e26f5
Did you know that GitHub shortcuts can have commit-ishes included (org/repo#branch
)? They can! (@iarna)0e2c091
Some errors fromreadPackage
were being swallowed, potentially leading to invalid package trees on disk. (@smikes)
0b901ad
lru-cache@2.6.3
: Removed some cruft from the published package. (@isaacs)d713e0b
mkdirp@0.5.1
: Made compliant withstandard
, dropped support for Node 0.6, added (Travis) support for Node 0.12 and io.js. (@isaacs)a2d6578
glob@1.0.3
: Updated to usetap@1
. (@isaacs)64cd1a5
fstream@ 1.0.6
: Made compliant withstandard
(done by @othiym23, and then debugged and fixed by @iarna), and license changed to ISC. (@othiym23 / @iarna)b527a7c
which@1.1.1
: Callers can pass in their ownPATH
instead of relying onprocess.env
. (@isaacs)
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.json
for details. - npm will warn you if the
package.json
for 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 init
now 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.json
has 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 inlicense
stanzas 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.0
Ensure that packages bootstrapped withnpm init
use 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 fromBSD
toISC
for license, where the latter is valid SPDX. (@othiym23)e9a933a
#8197once@1.3.2
: Switch fromBSD
toISC
for license, where the latter is valid SPDX. (@othiym23)412401f
#8197semver@4.3.4
: Switch fromBSD
toISC
for 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
.
eb18245
Only warn on normalization errors for top-level dependencies. Transitive dependency validation warnings are logged atinfo
level. (@othiym23)
e40e809
tap@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)f9314e9
nock@1.9.0
: Minor tweaks and bug fixes. (@pgte)45c2b1a
#8187npm ls
wasn't properly recognizing dependencies installed from GitHub repositories as git dependencies, and so wasn't displaying them as such. (@zornme)1ab57c3
In some cases,npm help
was using something that looked like a regular expression where a glob pattern should be used, and vice versa. (@isaacs)
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)
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 shrinkwrap
documentation use code formatting for examples consistently. It would be great to do this for more commands HINT HINT. (@RichardLitt)1ff636e
#8105 Document that the globalnpmrc
goes in$PREFIX/etc/npmrc
, instead of$PREFIX/npmrc
. (@anttti)c3f2f7c
#8127 Document how to usenpm run build
directly (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)
5abfc9c
#7973npm run-script
completion 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 Useosenv
to parse the environment'sPATH
in 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)
000cd8b
rimraf@2.3.3
: More informative assertions on argument validation failure. (@isaacs)530a2e3
lru-cache@2.6.2
: Revert to old key access-time behavior, as it was correct all along. (@isaacs)d88958c
minimatch@2.0.7
: Feature detection and test improvements. (@isaacs)3fa39e4
nock@1.7.1
(@pgte)
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:
2799322
#7426 Include local modules innpm outdated
andnpm 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)
18ce0ec
#3032npm unpublish
will 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)
faf65a7
init-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-json
contributed by @michaelnisi). (@MisumiRize)7f10f38
editor@1.0.0
:1.0.0
is 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)
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 thefromBase
flag (rescued from the dustbin of history by @deanmarano). (@othiym23)d8eee6c
init-package-json@1.4.1
: Add support for a default author, and only add scope to a package name once. (@othiym23)4fc5d98
lru-cache@2.6.1
: Small tweaks to cache value aging and entry counting that are irrelevant to npm. (@isaacs)1fe5840
#7946 Makenpm init
text friendlier. (@sandfox)
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 inresolved
fields innpm-shrinkwrap.json
. (@othiym23)394c2f5
Switch 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)
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)
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-info
to pass along credentials embedded in git URLs. Test it. Test it a lot. (@othiym23)
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 withpeerDependencies
were installing thepeerDependencies
into the wrong directory. (@ewie)649e31a
#7920 TestpeerDependency
installs involving scoped packages usingnpm-package-arg
instead of simple path tests, for consistency. (@othiym23)
@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
standard
style 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-all
to be the same astest
andtap
scripts. (@watilde)8299b5f
Set a timeout for tap tests fornpm run-script test-all
. (@othiym23)
d90d0b9
#7924 Removechild-process-close
, as it was included for Node 0.6 compatibility, and npm no longer supports 0.6. (@robertkowalski)16427c1
lru-cache@2.5.2
: More accurate updating of expiry times whenmaxAge
is set. (@isaacs)03cce83
nock@1.6.0
: Mocked network error handling. (@pgte)f93b1f0
glob@5.0.5
: Usepath-is-absolute
polyfill, allowing newer Node.js and io.js versions to usepath.isAbsolute()
. (@sindresorhus)a70d694
request@2.55.0
: Bug fixes and simplification. (@simov)2aecc6f
columnify@1.5.1
: Switch to using babel from 6to5. (@timoxley)
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_ASKPASS
in their environment if they want to experiment with interactive cloning, but should also set--no-spin
on 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/repo
instead 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.json
files published with the new shorthand syntax can only be read bynpm@2.8.0
and 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-exact
pins versions for registry dependencies. This is documented (so checknpm help install
for 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-info
shortcut 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-exact
is 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.0
and 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.0
andnpm-package-arg@4.0.0
. (@iarna)f40ecaa
#7867 Extract a common method to use when cloning git repos for testing. (@othiym23)
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)
20e9003
tar@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=foo
will not setlatest
to that version. (@linclark)
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.maybeGithub
needs 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)
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-scripts
with `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-json
no longer cachespackage.json
files, 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)dd20f57
init-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).
1f380f6
#7820are-we-there-yet@1.0.4
: Usereadable-stream
instead of built-instream
module to better support Node.js 0.8.x. (@SonicHedgehog)d380188
semver@4.3.3
: Don't throw onsemver.parse(null)
, and parse numeric version strings more robustly. (@isaacs)01d9964
nock@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 thatloaded
is set correctly. (@charmander)1349e27
#7818 UpdateREADME.md
to point out that the install script now lives on https://www.npmjs.com. (@weisjohn)
300834e
tar@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)0dc6875
semver@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)
5811468
#7713 Add a test fornpm link
andnpm link <package>
. (@watilde)3cf3b0c
#7713 Only use absolute symbolic links whennpm link
ing. (@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 thecafile
config to be changed. (@KenanY)a840a13
#7746 Only fix up URL paths when there are paths to fix up. (@othiym23)
94df809
request@2.54.0
: Fixes for Node.js 0.12 and io.js. (@simov)98a13ea
opener@1.4.1
: Deal withstart
on Windows more conventionally. (@domenic)c2417c7
require-inject@1.2.0
: Add installGlobally to bypass cleanups. (@iarna)
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)c910399
small typo fix toCHANGELOG.md
(@e-jigsaw)
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 whenbundledDependencies
isn't an array. (@KenanY)3a12723
#7661 Allow setting--registry
on 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)
6a498c6
npm-registry-couchapp@2.6.7
: Ensure that npm continues to work with new registry architecture. (@bcoe)bd72c47
glob@5.0.3
: Updated to latest version. (@isaacs)4bfbaa2
npmlog@1.2.0
: Getting up to date with latest version (but not using any of the new features). (@othiym23)
3703b0b
Add regression test fornpm version
to ensuremessage
property in config continues to be honored. (@dannyfritz)
1549106
#7641 Due to 448efd0, runningnpm shrinkwrap --dev
caused production dependencies to no longer be included innpm-shrinkwrap.json
. Whoopsie! (@othiym23)
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
#7552bundledDependencies
are 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)
fcd9247
#7597 Awk varies pretty dramatically from platform to platform, so use Perl to generate the AUTHORS list instead. (@KenanY)721b17a
#7598npm install --save
really isn't experimental anymore. (@RichardLitt)
a91f2c7
#7559node-gyp@1.0.3
Switchnode-gyp
to usestdio
instead ofcustomFds
so it stops printing a deprecation warning every time you build a native dependency. (@jeffbski)0c85db7
rimraf@2.3.2
: Globbing now deals with paths containing valid glob metacharacters better. (@isaacs)d14588e
minimatch@2.0.4
: Bug fixes. (@isaacs)aa9952e
graceful-fs@3.0.6
: Bug fixes. (@isaacs)
6823807
#7121npm install --save
for 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 functiongitEnv
instead of the results of invoking it. (@functino)c618eed
#2556 Make it possible to install Git dependencies when using--link
by not linking just the Git dependencies. (@smikes)
abdd040
read-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)
c56cfcd
#7525npm dedupe
handles scoped packages. (@KidkArolis)1b8ba74
#7531npm stars
andnpm whoami
will 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 aswanted
bynpm outdated
. (@othiym23)2abc3ee
Addnpm upgrade
as an alias fornpm update
. (@othiym23)bcd4722
#7508 FreeBSD usesEAI_FAIL
instead ofENOTFOUND
. (@othiym23)21c1ac4
#7507 Update support URL in generic error handler tohttps:
fromhttp:
. (@watilde)b6bd99a
#7492 On install, thepackage.json
engineStrict
deprecation only warns for the current package. (@othiym23)4ef1412
#7075 If you try to tag a release as a valid semver range,npm publish
andnpm tag
will error early instead of proceeding. (@smikes)ad53d0f
Userimraf
in npm build script because Windows doesn't know what rm is. (@othiym23)8885c4d
rimraf@2.3.1
: Better Windows support. (@isaacs)8885c4d
glob@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?
42c605c
Fix typo inCHANGELOG.md
(@adrianblynch)c9bd58d
Add note aboutnode_modules/.bin
being added to the path innpm run-script
. (@quarterto)903bdd1
Matt Ranney confused the world when he renamednode-redis
toredis
. "The world" includes npm's documentation. (@RichardLitt)dea9bb2
Fix typo in contributor link. (@watilde)1226ca9
Properly close code block in npm-install.md. (@olizilla)
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 runstop
andstart
scripts (plus their pre- and post- scripts) when there's norestart
script defined. This makes it easier to support graceful restarts of services managed by npm. (@watilde / @scien)
145af65
#4887 Replace calls to thenode-gyp
script bundled with npm by passing the--node-gyp=/path/to/node-gyp
option to npm. Swap inpangyp
or a version ofnode-gyp
modified 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--dev
and--prod
tonpm 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-script
into lifecycle scripts and scripts directly invoked vianpm run-script
. (@watilde)a5edc17
#6749init-package-json@1.3.1
: Support for passing scopes tonpm init
so packages are initialized as part of that scope / organization / team. (@watilde)
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-present
flag 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 unlink
is 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)9748d5c
Add parent to error onETARGET
error. (@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.json
files. (@deestan)628fcdb
Remove 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)
5bc70e6
#7417 Provide concrete examples of how the newnpm update
defaults work in practice, tied to actual test cases. Everyone interested in usingnpm update -g
now that it's been fixed should read these documents, as should anyone interested in writing documentation for npm. (@smikes)8ac6f21
#6543 Clarifynpm-scripts
warnings to de-emphasize dangers of usinginstall
scripts. (@zeke)ebe3b37
#6711 Note that git tagging of versions can be disabled via--no-git-tag-verson
. (@smikes)2ef5771
#6711 Documentgit-tag-version
configuration option. (@KenanY)95e59b2
Document thatNODE_ENV=production
behaves analogously to--production
onnpm install
. (@stefaneg)687117a
#7463 Document the new script grouping behavior in the man page fornpm run-script
. (@othiym23)536b2b6
Rescue one of the the disabled tests and make it work properly. (@smikes)
89fc6a4
which@1.0.9
: Test for being run as root, as well as the current user. (@isaacs)5d0612f
glob@4.4.1
: Better error message to explain why calling sync glob with a callback results in an error. (@isaacs)64b07f6
tap@0.7.1
: More accurate counts of pending & skipped tests. (@rmg)8fda451
semver@4.3.1
: Make official the fact thatnode-semver
has moved from @isaacs's organization to @npm's. (@isaacs)
8b98f0e
#4471npm outdated
(and onlynpm outdated
) now defaults to--depth=0
. See the docs for--depth
for the mildly confusing details. (@smikes)aa79194
#6565 TweakpeerDependency
deprecation warning to include which peer dependency on which package is going to need to change. (@othiym23)5fa067f
#7171 TweakengineStrict
deprecation warning to include whichpackage.json
is using it. (@othiym23)0fe0caa
glob@4.4.0
: Glob patterns can now ignore matches. (@isaacs)
38c4825
#5068 Add new logout command, and make it do something useful on both bearer-based and basic-based authed clients. (@othiym23)4bf0f5d
npm-registry-client@6.1.1
: Support newlogout
endpoint to invalidate token for sessions. (@othiym23)
c8e08e6
#6565 Warn thatpeerDependency
behavior is changing and add a note to the docs. (@othiym23)7c81a5f
#7171 Warn thatengineStrict
inpackage.json
will be going away in the next major version of npm (coming soon!) (@othiym23)
add5890
#4668read-package-json@1.3.1
: Warn when abin
symbolic link is a dangling reference. (@nicks)4b42071
semver@4.3.0
: Add functions to extract parts of the version triple, fix a typo. (@isaacs)a9aff38
Use full path for man pages as the symbolic link source, instead of just the file name. (@bengl)6fd0fbd
#7233 Ensureglobalconfig
path exists before trying to edit it. (@ljharb)a0a2620
ini@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!
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.
0e8d473
#7281npm-registry-mock@1.0.0
: Clean up API, setconnection: close
. (@robertkowalski)4707bba
Further update tests to work withnpm-registry-mock@1.0.0
. (@othiym23)41a0f89
Got rid of completely gratuitous global config manipulation in tests. (@othiym23)
fec4c96
Allow--no-proxy
to overrideHTTP_PROXY
setting in environment. (@othiym23)589acb9
Only setaccess
when publshing when it's explicitly set. (@othiym23)1027087
Add script andMakefile
stanza to update AUTHORS. (@KenanY)eeff04d
AddNPMOPTS
to top-level install inMakefile
to overrideuserconfig
. (@aredridel)0d17328
fstream@1.0.4
: Run chown only when necessary. (@silkentrance)9aa4622
columnify@1.4.1
: ES6ified! (@timoxley)51b2fd1
Update default version indocs/npm-config.md
. (@lucthev)
f9313a0
#7226 Ensure that all request settings are copied onto the agent. (@othiym23)e186f6e
Only setaccess
on publish when it differs from the norm. (@othiym23)f9313a0
Allow overriding request's environment-based proxy handling. (@othiym23)f9313a0
Properly handle retry failures on fetch. (@othiym23)
Let's accentuate the positive: the dist-tag
endpoints for npm dist-tag {add,rm,ls}
are now live on the public npm registry.
f70272b
npm-registry-client@6.0.3
: Properly escape JSON tag version strings and filter_etag
from CouchDB docs. (@othiym23)
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 public
andnpm access restricted
: Toggle visibility of scoped packages. (@othiym23)dc51810
#6243 / #6854 NEWnpm dist-tags
: Directly managedist-tags
on packages. Most notably,dist-tags
can now be deleted. (@othiym23)4c7c132
#7181 / #6854npm-registry-client@6.0.1
: Add newaccess
anddist-tags
endpoints (@othiym23)
29a6ef3
#6850 Be smarter about determining base of file deletion when unbuilding. (@phated)4ad01ea
init-package-json@1.2.0
: Support--save-exact
innpm init
. (@gustavnikolaj)
e662a60
The newwhoami
endpoint might not return a value. (@othiym23)c2cccd4
npm-registry-client@5.0.0
: Includes the following fine changes (@othiym23):
98e1e10
#6791 Add caching based on Last-Modified / If-Modified-Since headers. Includes thisnpm-registry-client@5.0.0
change (@lxe):
706d49a
#7107getCacheStat
passes 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)
c6fb430
#4197 Reportumask
as a 0-padded octal literal. (@smikes)209713e
#4197umask@1.1.0
: Properly handleumask
s (i.e. not decimal numbers). (@smikes)9eac0a1
Make the example for bin links non-destructive. (@KevinSheedy)6338bcf
glob@4.3.5
: " -> ', for some reason. (@isaacs)
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 -g
is 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)38eef22
npm-install-checks@1.0.5
: Compatibility with npmlog@^1. (@iarna)
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 Onlychown
template 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 restart
behavior (@smikes)fb8e31b
#6982 when doing registry operations, ensure registry URL always ends with/
(@othiym23)5bcba65
pull 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.json
from private registries. (@othiym23)9b9de06
glob@4.3.2
: Better handling of trailing slashes. (@isaacs)030f3c7
semver@4.2.0
: Diffing between version strings. (@isaacs)
a4e4e33
#6987read-installed@3.1.5
: fixed a regression where a new / empty package would cause read-installed to throw. (@othiym23 / @pgilad)
e5a2dee
#6951fs-vacuum@1.2.5
: Usepath-is-inside
for better Windows normalization. (@othiym23)ac6167c
#6955 Callpath.normalize
inlib/utils/gently-rm.js
for 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.com
has gone the way of all things. That means it's gone. (@robertkowalski)
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 outdated
ignore private packages. (@KenanY)16d8542
install.sh: Drop support for node < 0.8, remove engines bits. (@isaacs)b9c6046
init-package-json@1.1.3
: (@terinstock) noticed thatinit.license
configuration doesn't stick. Make sure that dashed defaults don't trump dotted parameters. (@othiym23)b6d6acf
which@1.0.8
: No longer use graceful-fs for some reason. (@isaacs)d39f673
request@2.51.0
: Incorporate bug fixes. (@nylen)c7ad727
columnify@1.3.2
: Incorporate bug fixes. (@timoxley)
e5b1e44
add alias verison=version (@isaacs)5eed7bd
request@2.49.0
(@nylen)e72f81d
glob@4.3.1
/minimatch@2.0.1
(@isaacs)b8dcc36
graceful-fs@3.0.5
(@isaacs)
4861d28
which@1.0.7
: License update. (@isaacs)30a2ea8
ini@1.3.2
: License update. (@isaacs)6a4ea05
fstream@1.0.3
: Propagate error events to downstream streams. (@gfxmonk)a558695
tar@1.0.3
: Don't extract broken files, propagatedrain
event. (@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@1
work when a file named1
exists. (@iarna)c8ac37a
npm-registry-client@4.0.4
: Fix regression in failed fetch retries. (@othiym23)
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-fs
so the whole dependency tree gets read, even in case ofEMFILE
. (@sakana)3a085be
Grammar fix in docs. (@icylace)3f8e2ff
Did you know that npm has a Code of Conduct? Add a link to it to CONTRIBUTING.md. (@isaacs)319ccf6
glob@4.2.1
: Performance tuning. (@isaacs)835f046
readable-stream@1.0.33
: Bug fixes. (@rvagg)a34c38d
request@2.48.0
: Bug fixes. (@nylen)
eed9f61
#6542npm owner add / remove
now works properly with scoped packages (@othiym23)cd25973
#6548 using sudo won't leave the cache's git directories with bad permissions (@othiym23)56930ab
fixed irregularnpm cache ls
output (yes, that's a thing) (@othiym23)740f483
legacy tests no longer poison user's own cache (@othiym23)ce37f14
#6169 add terse output similar tonpm publish / unpublish
fornpm owner add / remove
(@KenanY)bf2b8a6
#6680 pass auth credentials to registry when downloading search index (@terinjokes)00ecb61
#6400.npmignore
is respected for git repos on cache / pack / publish (@othiym23)d1b3a9e
#6311npm ls -l --depth=0
no 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.npmrc
doesn't regress (@othiym23)9bb2c34
#6644warn
rather thaninfo
on fetch failure (@othiym23)e34a7b6
#6524npm-registry-client@4.0.2
: proxy viarequest
more transparently (@othiym23)40afd6a
#6524 push proxy settings intorequest
(@tauren)
063d843
npm version now updates version in npm-shrinkwrap.json (@faiq)3f53cd7
#6559 save local dependencies in npm-shrinkwrap.json (@Torsph)e249262
npm-faq.md: mention scoped pkgs in namespace Q (@smikes)6b06ec4
#6642init-package-json@1.1.2
: Handle bothinit-author-name
andinit.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)
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)ed61971
move caching of search metadata fromnpm-registry-client
to npm itself (@othiym23)3457041
handle 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)254f0e4
tar@1.0.2
: better error-handling (@runk)73ee2aa
request@2.47.0
(@mikeal)
681b398
#6523 fix defaultlogelevel
doc (@KenanY)80b368f
#6528npm version
should work in a git directory without git (@terinjokes)5f5f9e4
#6483init-package-json@1.1.1
: Properly pick up default values from environment variables. (@othiym23)a114870
perl 5.18.x doesn't like -pi without filenames (@othiym23)de5ba00
request@2.46.0
: Tests and cleanup. (@othiym23)76933f1
fstream-npm@1.0.1
: Always includeLICENSE[.*]
,LICENCE[.*]
,CHANGES[.*]
,CHANGELOG[.*]
, andHISTORY[.*]
. (@jonathanong)
6a14b23
#6397 Defactor npmconf back into npm. (@othiym23)4000e33
#6323 InstallpeerDependencies
from top. (@othiym23)5d119ae
#6498 Better error messages on malformed.npmrc
properties. (@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
60c2942
realize-package-specifier@1.2.0
: Handle names and rawSpecs more consistently. (@iarna)1b5c95f
sha@1.3.0
: Change line endings? (@ForbesLindesay)d7dee3f
request@2.45.0
: Dependency updates, better proxy support, better compressed response handling, lots of 'use strict'. (@mikeal)3d75180
opener@1.4.0
: Added gratuitous return. (@Domenic)8e2703f
retry@0.6.1
/npm-registry-client@3.2.4
: Change of ownership. (@tim-kos)c87b00f
once@1.3.1
: Wrap once with wrappy. (@isaacs)01ec790
npm-user-validate@0.1.1
: Correct repository URL. (@robertkowalski)389e52c
glob@4.0.6
: Now absolutely requiresgraceful-fs
. (@isaacs)e15ab15
ini@1.3.0
: Tighten up whitespace handling. (@isaacs)7610f3e
archy@1.0.0
(@substack)9c13149
semver@4.1.0
: Add support for prerelease identifiers. (@bromanko)f096c25
graceful-fs@3.0.4
: Add a bunch of additional tests, skip the unfortunate complications ofgraceful-fs@3.0.3
. (@isaacs)
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, preventpeerDependency
problems (@othiym23)82b775d
#6384 race condition: inflight caching by URL rather than semver range (@othiym23)7bee042
inflight@1.0.4
: callback can take arbitrary number of parameters (@othiym23)3bff494
#5195 fixed regex color regression fornpm search
(@chrismeyersfsu)33ba2d5
#6387 allownpm view global
if package is specified (@evanlucas)99c4cfc
#6388 npm-publish → npm-developers(7) (@kennydude)
TEST CLEANUP EXTRAVAGANZA:
8d6bfcb
tap tests run with no system-wide side effects (@chrismeyersfsu)7a1472f
added npm cache cleanup script (@chrismeyersfsu)0ce6a37
stripped out dead test code (othiym23)- replace spawn with common.npm (@chrismeyersfsu):
BREAKING CHANGE FOR THE SQRT(i) PEOPLE ACTUALLY USING npm submodule
:
1e64473
rm -rf npm submodule
command, 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:
3e431f9
joyent/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)00ef580
inflight@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)86f084c
realize-package-specifier@1.0.2
: dependency realization! in its own module! (@iarna)553d830
npm-package-arg@2.1.3
: simplified semver, better tests (@iarna)bec9b61
readable-stream@1.0.32
: for some reason (@rvagg)ff08ec5
dezalgo@1.0.1
: use wrappy for instrumentability (@isaacs)
a1aa20e
#6282normalize-package-data@1.0.3
: don't prune bundledDependencies (@isaacs)a1f5fe1
move locks back into cache, now path-aware (@othiym23)a432c4b
convert lib/utils/tar.js to use atomic streams (@othiym23)b8c3c74
fs-write-stream-atomic@1.0.2
: Now works with streams1 fs.WriteStreams. (@isaacs)c7ab76f
logging cleanup (@othiym23)4b2d95d
#6329 efficiently validate tmp tarballs safely (@othiym23)
563225d
#6318 clean up locking; prefix lockfile with "." (@othiym23)c7f30e4
#6318 remove locking code around tarball packing and unpacking (@othiym23)
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)6810071
docs: Default loglevel "http" → "warn". (@othiym23)35ac89a
Skip installation of installed scoped packages. (@timoxley)e468527
Ensure cleanup executes for scripts-whitespace-windows test. (@timoxley)ef9101b
Ensure cleanup executes for packed-scope test. (@timoxley)69b4d18
fs-write-stream-atomic@1.0.1
: Fix a race condition in our race-condition fixer. (@isaacs)26b17ff
#6272npmconf
decides what the default prefix is. (@othiym23)846faca
Fix development dependency is preferred over dependency. (@andersjanmyr)9d1a9db
#3265 Re-apply a71615a. Fixes #3265 again, with a test! (@glasser)1d41db0
marked-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)
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)3b37592
write-file-atomic@1.1.0
: use graceful-fs (@iarna)
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-auth
when logging in (@othiym23)17c941a
#6163 usewrite-file-atomic
instead offs.writeFile()
(@fiws)fb5724f
#5925npm init -f
: allownpm init
to run without prompting (@michaelnisi)b706d63
#3059 disable prepublish when runningnpm install --production
(@jussi-kalliokoski)119f068
attach the node version used when publishing a package to its registry metadata (@othiym23)8fe0081
seriously, don't usenpm -g update npm
(@thomblake)ea5b3d4
request@2.44.0
(@othiym23)
BREAKING CHANGES:
4378a17
semver@4.0.0
: prerelease versions no longer show up in ranges;^0.x.y
behaves the way it did insemver@2
rather thansemver@3
; docs have been reorganized for comprehensibility (@isaacs)c6ddb64
npm 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)d673e41
cmd-shim@2.0.1
: depend ongraceful-fs
directly (@ForbesLindesay)9d54d45
npm-registry-couchapp@2.5.3
: make tests more reliable on Travis (@iarna)673d738
ensure permissions are set correctly in cache when running as root (@isaacs)6e6a5fb
prepare for upgrade tonode-semver@4.0.0
(@isaacs)ab8dd87
swap outronn
formarked-man@0.1.3
(@isaacs)803da54
npm-registry-client@3.2.0
: prepare fornode-semver@4.0.0
and include more error information (@isaacs)4af0e71
make default error display less scary (@isaacs)4fd9e79
npm-registry-client@3.2.1
: handle errors returned by the registry much, much better (@othiym23)ca791e2
restore a long (always?) missing pass for deduping (@othiym23)ca0ef0e
correctly interpret relative paths for local dependencies (@othiym23)5eb8db2
npm-package-arg@2.1.2
: support git+file:// URLs for local bare repos (@othiym23)860a185
tweak docs to no longer advocate checking innode_modules
(@hunterloftis)80e9033
add links to nodejs.org downloads to docs (@meetar)
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)
fa79413
#6119 fall back to registry installs if package.json is missing in a local directory (@iarna)16073e2
npm-package-arg@2.1.0
: support file URIs as local specs (@othiym23)9164acb
github-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)9bac6b8
npmconf@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)
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)
SPECIAL LABOR DAY WEEKEND RELEASE PARTY WOOO
ed207e8
npm-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)66c7423
npmconf@2.0.7
: support -C as an alias for --prefix (@isaacs)0dc6a07
#6059 run commands in prefix, not cwd (@isaacs)65d2179
github-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)
78a1fc1
github-url-from-git@1.4.0
: add support for git+https and git+ssh (@stefanbuck)bf247ed
columnify@1.2.1
(@othiym23)4bbe682
cmd-shim@2.0.0
: upgrade to graceful-fs 3 (@ForbesLindesay)ae1d590
npm-package-arg@2.0.4
: accept slashes in branch names (@thealphanerd)b2f51ae
semver@3.0.1
: semver.clean() is cleaner (@isaacs)1d041a8
github-url-from-username-repo@1.0.0
: accept slashes in branch names (@robertkowalski)02c85d5
async-some@1.0.1
(@othiym23)5af493e
ensure lifecycle spawn errors caught properly (@isaacs)60fe012
npmconf@2.0.6
: init.version defaults to 1.0.0 (@isaacs)b4c717b
npm-registry-client@3.1.4
: properly encode % in passwords (@isaacs)7b55f44
doc: Fix 'npm help index' (@isaacs)
eceea95
github-url-from-git@1.4.0
: add support for git+https and git+ssh (@stefanbuck)e561758
columnify@1.2.1
(@othiym23)0c4fab3
cmd-shim@2.0.0
: upgrade to graceful-fs 3 (@ForbesLindesay)2d69e4d
github-url-from-username-repo@1.0.0
: accept slashes in branch names (@robertkowalski)81f9b2b
ensure lifecycle spawn errors caught properly (@isaacs)bfaab8c
npm-registry-client@2.0.7
: properly encode % in passwords (@isaacs)91cfb58
doc: Fix 'npm help index' (@isaacs)
685f8be
npm-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 removenpm
from its ownengines
field inpackage.json
. None of us remember why it was there. (@timoxley)6c47201
#5752, #6013 save git URLs correctly in_resolved
fields (@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)dbf0cab
you can now pass quoted args tonpm run-script
(@bcoe)0583874
tar@1.0.1
: Add test for removing an extract target immediately after unpacking. (@isaacs)cdf3b04
lockfile@1.0.0
: Fix incorrect interaction betweenwait
,stale
, andretries
options. Part 2 of race condition leading toENOENT
(@isaacs) errors.22d72a8
fstream@1.0.2
: Fix a double-finish call which can result in excess FS operations after theclose
event. Part 1 of race condition leading toENOENT
errors. (@isaacs)
64c0ec2
npm-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)a8ed12b
tar@1.0.1
: Add test for removing an extract target immediately after unpacking. (@isaacs)70fd11d
lockfile@1.0.0
: Fix incorrect interaction betweenwait
,stale
, andretries
options. Part 2 of race condition leading toENOENT
errors. (@isaacs)0072c4d
fstream@1.0.2
: Fix a double-finish call which can result in excess FS operations after theclose
event. Part 2 of race condition leading toENOENT
errors. (@isaacs)
f23f1d8
doc: update version doc to includepre-*
increment args (@isaacs)b6bb746
build: add 'make tag' to tag current release as latest (@isaacs)27c4bb6
build: publish with--tag=v1.4-next
(@isaacs)cff66c3
build: add script to outputv1.4-next
publish tag (@isaacs)22abec8
build: remove outdateddocpublish
make target (@isaacs)1be4de5
build: removeunpublish
step frommake publish
(@isaacs)e429e20
doc: add new changelog (@othiym23)9243d20
lifecycle: test lifecycle path modification (@isaacs)021770b
lifecycle: BREAKING CHANGE do not add the directory containing node executable (@chulkilee)1d5c41d
install: rename .gitignore when unpacking foreign tarballs (@isaacs)9aac267
cache: detect non-gzipped tar files more reliably (@isaacs)3f24755
readdir-scoped-modules@1.0.0
(@isaacs)151cd2f
read-installed@3.1.0
(@isaacs)f5a9434
test: fix Travis timeouts (@dylang)126cafc
npm-registry-couchapp@2.5.0
(@othiym23)
9344bd9
doc: add new changelog (@othiym23)4be76fd
doc: update version doc to includepre-*
increment args (@isaacs)e4f2620
build: addmake tag
to tag current release aslatest
(@isaacs)ec2596a
build: publish with--tag=v1.4-next
(@isaacs)9ee55f8
build: add script to outputv1.4-next
publish tag (@isaacs)aecb56f
build: remove outdateddocpublish
make target (@isaacs)b57a9b7
build: remove unpublish step frommake publish
(@isaacs)2c6acb9
install: rename.gitignore
when unpacking foreign tarballs (@isaacs)22f3681
cache: detect non-gzipped tar files more reliably (@isaacs)
BREAKING CHANGE:
Other changes:
d987707
move fetch into npm-registry-client (@othiym23)9b318e2
read-installed@3.0.0
(@isaacs)9d73de7
remove unnecessary mkdirps (@isaacs)33ccd13
Don't squash execute perms in_git-remotes/
dir (@adammeadows)48fd233
npm-package-arg@2.0.1
(@isaacs)
8dd11d1
update several dependencies to avoid usingsemver
s starting with 0.
d9a9e84
read-package-json@1.2.4
(@isaacs)86f0340
github-url-from-git@1.2.0
(@isaacs)a94136a
fstream@0.1.29
(@isaacs)bb82d18
glob@4.0.5
(@isaacs)5b6bcf4
cmd-shim@1.1.2
(@isaacs)c2aa8b3
license: Cleaned up legalese with actual lawyer (@isaacs)63fe0ee
init-package-json@1.0.0
(@isaacs)
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 link
includes scope when linking scoped package (@fengmk2)f9f58dd
#5707 document generic pre- / post-commands (@sudodoki)ac7a480
#5406npm cache
displays usage when called without arguments (@michaelnisi)f4554e9
Test fixes for Windows (@isaacs)- update dependencies (@othiym23)
- fall back to
_auth
config 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)
be06213
remove residual support forwin
log level (@aterris)
a3a85dd
--save
scoped packages correctly (@othiym23)18a3385
npm-registry-client@3.0.2
(@othiym23)375988b
invalid package names are an early error for optional deps (@othiym23)- consistently use
node-package-arg
instead of arbitrary package spec splitting (@othiym23)
54cf625
fix handling for 301s innpm-registry-client@3.0.1
(@Raynos)e410861
don't crash if no username set onwhoami
(@isaacs)0353dde
respect--json
for output (@isaacs)b3d112a
outdated: Don't show headings if there's nothing to output (@isaacs)bb4b90c
outdated: Default tolatest
rather than*
for unspecified deps (@isaacs)
0353dde
respect--json
for output (@isaacs)b3d112a
outdated: Don't show headings if there's nothing to output (@isaacs)bb4b90c
outdated: Default tolatest
rather than*
for unspecified deps (@isaacs)
7f55057
install scoped packages (#5239) (@othiym23)0df7e16
publish scoped packages (#5239) (@othiym23)0689ba2
support (and save) --scope=@s config (@othiym23)f34878f
scope credentials to registry (@othiym23)0ac7ca2
capture and store bearer tokens when sent by registry (@othiym23)63c3277
only delete files that are created by npm (@othiym23)4f54043
npm-package-arg@2.0.0
(@othiym23)9e1460e
read-package-json@1.2.3
(@othiym23)719d8ad
fs-vacuum@1.2.1
(@othiym23)9ef8fe4
async-some@1.0.0
(@othiym23)a964f65
npmconf@2.0.1
(@othiym23)113765b
npm-registry-client@3.0.0
(@othiym23)
f687433
relative URLS for working non-root registry URLS (@othiym23)bea190c
#5591 bump nopt and npmconf (@isaacs)
- 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)
- 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)
- Same as v1.4.16, but with the spinner disabled, and a version number that starts with v1.2.
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)
- 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.0
which 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)
- char-spinner: update to not bork windows (@isaacs)
- Fix
npm install
on a tarball. (ed3abf1
, #5330, @othiym23) - Fix an issue with the spinner on Node 0.8.
(
9f00306
, @isaacs) - Re-add
npm.commands.cache.clean
andnpm.commands.cache.read
APIs, and documentnpm.commands.cache.*
as npm-cache(3). (e06799e
, @isaacs)
- remove normalize-package-data from top level, de-^-ify inflight dep (@isaacs)
- Always sort saved bundleDependencies (@isaacs)
- add inflight to bundledDependencies (@othiym23)
- fix
npm ls
labeling 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
,prepatch
tonpm version
- Don't set referer if already set
- fetch: Send referer and npm-session headers
run-script
: Support--parseable
and--json
- list runnable scripts (@evanlucas)
- Use marked instead of ronn for html docs
- Send referer header (with any potentially private stuff redacted)
- Fix critical typo bug in previous npm release
- Check SHA before using files from cache
- adduser: allow change of the saved password
- Make
npm install
respectconfig.unicode
- Fix lifecycle to pass
Infinity
for 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
- Add
--save-prefix
option that can be used to override the default of^
when usingnpm install --save
and its counterparts. (64eefdf
, @thlorenz) - Allow
--silent
to 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
, https://github.com/npm/npm-registry-client/commit/7686d02cb0b844626d6a401e58c0755ef3bc8432, @isaacs) - Fix marking of peer dependencies as extraneous.
(
779b164
, https://github.com/npm/read-installed/commit/6680ba6ef235b1ca3273a00b70869798ad662ddc, @isaacs) - Fix npm crashing when doing
npm shrinkwrap
in the presence of apackage.json
with no dependencies. (a9d9fa5
, @kislyuk) - Fix error when using
npm view
on packages that have no versions or have been unpublished. (94df2f5
, @juliangruber;2241a09
, @isaacs)
- Fix extraneous package detection to work in more cases.
(
f671286
, npm/read-installed#20, @LaurentVB)
- Sort dependencies in
package.json
when doingnpm install --save
and all its variants. (6fd6ff7
, @domenic) - Add
--save-exact
option, usable alongside--save
and its variants, which will write the exact version number intopackage.json
instead 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--depth
and--log
options. (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)
- Add
npm t
as 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)
- Add back
npm prune --production
, which was removed in 1.3.24. (acc4d02
, @davglass) - Default
npm install --save
and its counterparts to use the^
version specifier, instead of~
. (0a3151c
, @mikolalysenko) - Make
npm shrinkwrap
output dependencies in a sorted order, so that diffs between shrinkwrap files should be saner now. (059b2bf
, @Raynos) - Fix
npm dedupe
not correctly respecting dependency constraints. (86028e9
, @rafeca) - Fix
npm ls
giving spurious warnings when you used"latest"
as a version specifier. (https://github.com/npm/read-installed/commit/d2956400e0386931c926e0f30c334840e0938f14, @bajtos) - Fixed a bug where using
npm link
on packages without aname
value could cause npm to delete itself. (401a642
, @isaacs) - Fixed
npm install ./pkg@1.2.3
to actually install the directory atpkg@1.2.3
; before it would try to find version1.2.3
of the package./pkg
in the npm registry. (46d8768
, @rlidwka; see alsof851b79
) - Fix
npm outdated
to respect thecolor
configuration option. (d4f6f3f
, @timoxley) - Fix
npm outdated --parseable
. (9575a23
, @yhpark) - Fix a lockfile-related errors when using certain Git URLs.
(
164b97e
, @nigelzor)
- Fixed an issue related to mid-publish GET requests made against the registry. (https://github.com/npm/npm-registry-client/commit/acbec48372bc1816c67c9e7cbf814cf50437ff93, @isaacs)
- Fix
npm shrinkwrap
forgetting to shrinkwrap dependencies that were also development dependencies. (9c575c5
, @diwu1989) - Fixed publishing of pre-existing packages with uppercase characters in their name. (https://github.com/npm/npm-registry-client/commit/9345d3b6c3d8510dd5c4418f27ee1fce59acebad, @isaacs)
- Remove
npm publish --force
. See npm/npm-registry-couchapp#148. (@isaacs, npm/npm-registry-client@2c8dba990de6a59af6545b75cc00a6dc12777c2a) - Other changes to the registry client related to saved configs and couch logins. (@isaacs; npm/npm-registry-client@25e2b019a1588155e5f87d035c27e79963b75951, npm/npm-registry-client@9e41e9101b68036e0f078398785f618575f3cdde, npm/npm-registry-client@2c8dba990de6a59af6545b75cc00a6dc12777c2a)
- Show an error to the user when doing
npm update
and thepackage.json
specifies 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/repo
were not always treated the same as full Git URLs. (@robertkowalski, https://github.com/meryn/normalize-package-data/commit/005d0b637aec1895117fcb4e3b49185eebf9e240)
- Fixes and updates to publishing code
(
735427a
andc0ac832
, @isaacs) - Fix
npm bugs
with no arguments. (b99d465
, @Hoops)
- Make the search output prettier, with nice truncated columns, and a
--long
option to create wrapping columns. (20439b2
and3a6942d
, @timoxley) - Support multiple packagenames in
npm docs
. (823010b
, @timoxley) - Fix the
npm adduser
bug regarding "Error: default value must be string or number" again. (b9b4248
, @isaacs) - Fix
scripts
entries containing whitespaces on Windows. (80282ed
, @robertkowalski) - Fix
npm update
for Git URLs that have credentials in them (93fc364
, @danielsantiago) - Fix
npm install
overwritingnpm link
-ed dependencies when they are tagged Git dependencies. (af9bbd9
, @evanlucas) - Remove
npm prune --production
since 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:
909cccf
read-package-json@1.1.6
a3891b6
rimraf@2.2.6
ac6efbc
sha@1.2.3
dd30038
node-gyp@0.12.2
c8c3ebe
npm-registry-client@0.3.3
4315286
npmconf@0.1.12
- Properly handle installations that contained a certain class of circular
dependencies.
(
5dc93e8
, @substack)
- Fix a critical bug in
npm adduser
that would manifest in the error message "Error: default value must be string or number." (fba4bd2
, @isaacs) - Allow
npm bugs
in 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)
- Fix a critical bug that prevented publishing due to incorrect hash
calculation.
(
4ca4a2c
, @dominictarr)
- Fixes a critical bug in v1.3.19. Thankfully, due to that bug, no one could install npm v1.3.19 :)
- Adds atomic PUTs for publishing packages, which should result in far fewer requests and less room for replication errors on the server-side.
- Added an
--ignore-scripts
option, which will preventpackage.json
scripts from being run. Most notably, this will work onnpm install
, so e.g.npm install --ignore-scripts
will 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)
- 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 -f
to 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.
- 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
--json
mode tonpm outdated
to give a parseable output. (0b6c9b7
, @yyx990803) - Made
npm outdated
much prettier and more useful. It now outputs a color-coded and easy-to-read table. (fd3017f
, @quimcalpe) - Added the
--depth
option tonpm outdated
, so that e.g. you can donpm outdated --depth=0
to show only top-level outdated dependencies. (1d184ef
, @yyx990803) - Added a
--no-git-tag-version
option tonpm version
, for doing the usual job ofnpm version
minus 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 repo
andnpm docs
work 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_VERIFY
environment 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 dedupe
on Windows due to incorrect path separators being used (7677de4
, @mcolyer). - Fixed the
npm help
command 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--force
option to force re-download and installation of all dependencies.