Skip to content

Commit 03cfbd6

Browse files
othiym23Julien Gilli
authored and
Julien Gilli
committed
deps: upgrade npm to 2.9.1
Reviewed-By: Julien Gilli <[email protected]> PR-URL: nodejs/node-v0.x-archive#25289
1 parent 101e103 commit 03cfbd6

File tree

288 files changed

+2276
-1137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+2276
-1137
lines changed

deps/npm/AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,6 @@ Michiel Sikma <[email protected]>
271271
Jakob Krigovsky <[email protected]>
272272
Charmander <[email protected]>
273273
erik wienhold <[email protected]>
274+
James Butler <[email protected]>
275+
Kevin Kragenbrink <[email protected]>
276+
Arnaud Rinquin <[email protected]>

deps/npm/CHANGELOG.md

+146
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,149 @@
1+
### v2.9.1 (2015-04-30):
2+
3+
#### WOW! MORE GIT FIXES! YOU LOVE THOSE!
4+
5+
The first item below is actually a pretty big deal, as it fixes (with a
6+
one-word change and a much, much longer test case (thanks again,
7+
[@iarna](https://github.com/iarna))) a regression that's been around for months
8+
now. If you're depending on multiple branches of a single git dependency in a
9+
single project, you probably want to check out `[email protected]` and verify that
10+
things (again?) work correctly in your project.
11+
12+
* [`178a6ad`](https://github.com/npm/npm/commit/178a6ad540215820d16217465a5f220d8c95a313)
13+
[#7202](https://github.com/npm/npm/issues/7202) When caching git
14+
dependencies, do so by the whole URL, including the branch name, so that if a
15+
single application depends on multiple branches from the same repository (in
16+
practice, multiple version tags), every install is of the correct version,
17+
instead of reusing whichever branch the caching process happened to check out
18+
first. ([@iarna](https://github.com/iarna))
19+
* [`63b79cc`](https://github.com/npm/npm/commit/63b79ccde092a9cb3b1f34abe43e1d2ba69c0dbf)
20+
[#8084](https://github.com/npm/npm/issues/8084) Ensure that Bitbucket,
21+
GitHub, and Gitlab dependencies are installed the same way as non-hosted git
22+
dependencies, fixing `npm install --link`.
23+
([@laiso](https://github.com/laiso))
24+
25+
#### DOCUMENTATION FIXES AND TWEAKS
26+
27+
These changes may seem simple and small (except Lin's fix to the package name
28+
restrictions, which was more an egregious oversight on our part), but cleaner
29+
documentation makes npm significantly more pleasant to use. I really appreciate
30+
all the typo fixes, clarifications, and formatting tweaks people send us, and
31+
am delighted that we get so many of these pull requests. Thanks, everybody!
32+
33+
* [`ca478dc`](https://github.com/npm/npm/commit/ca478dcaa29b8f07cd6fe515a3c4518166819291)
34+
[#8137](https://github.com/npm/npm/issues/8137) Somehow, we had failed to
35+
clearly document the full restrictions on package names.
36+
[@linclark](https://github.com/linclark) has now fixed that, although we will
37+
take with us to our graves the reasons why the maximum package name length is 214
38+
characters (well, OK, it was that that was the longest name in the registry
39+
when we decided to put a cap on the name length).
40+
([@linclark](https://github.com/linclark))
41+
* [`b574076`](https://github.com/npm/npm/commit/b5740767c320c1eff3576a8d63952534a0fbb936)
42+
[#8079](https://github.com/npm/npm/issues/8079) Make the `npm shrinkwrap`
43+
documentation use code formatting for examples consistently. It would be
44+
great to do this for more commands HINT HINT.
45+
([@RichardLitt](https://github.com/RichardLitt))
46+
* [`1ff636e`](https://github.com/npm/npm/commit/1ff636e2db3852a53e38c866fed7eafdacd307fc)
47+
[#8105](https://github.com/npm/npm/issues/8105) Document that the global
48+
`npmrc` goes in `$PREFIX/etc/npmrc`, instead of `$PREFIX/npmrc`.
49+
([@anttti](https://github.com/anttti))
50+
* [`c3f2f7c`](https://github.com/npm/npm/commit/c3f2f7c299342e1c1eccc55a976a63c607f51621)
51+
[#8127](https://github.com/npm/npm/issues/8127) Document how to use `npm run
52+
build` directly (hint: it's different from `npm build`!).
53+
([@mikemaccana](https://github.com/mikemaccana))
54+
* [`873e467`](https://github.com/npm/npm/commit/873e46757e1986761b15353f94580a071adcb383)
55+
[#8069](https://github.com/npm/npm/issues/8069) Take the old, dead npm
56+
mailing list address out of `package.json`. It seems that people don't have
57+
much trouble figuring out how to report errors to npm.
58+
([@robertkowalski](https://github.com/robertkowalski))
59+
60+
#### ENROBUSTIFICATIONMENT
61+
62+
* [`5abfc9c`](https://github.com/npm/npm/commit/5abfc9c9017da714e47a3aece750836b4f9af6a9)
63+
[#7973](https://github.com/npm/npm/issues/7973) `npm run-script` completion
64+
will only suggest run scripts, instead of including dependencies. If for some
65+
reason you still wanted it to suggest dependencies, let us know.
66+
([@mantoni](https://github.com/mantoni))
67+
* [`4b564f0`](https://github.com/npm/npm/commit/4b564f0ce979dc74c09604f4d46fd25a2ee63804)
68+
[#8081](https://github.com/npm/npm/issues/8081) Use `osenv` to parse the
69+
environment's `PATH` in a platform-neutral way.
70+
([@watilde](https://github.com/watilde))
71+
* [`a4b6238`](https://github.com/npm/npm/commit/a4b62387b41848818973eeed056fd5c6570274f3)
72+
[#8094](https://github.com/npm/npm/issues/8094) When we refactored the
73+
configuration code to split out checking for IPv4 local addresses, we
74+
inadvertently completely broke it by failing to return the values. In
75+
addition, just the call to `os.getInterfaces()` could throw on systems where
76+
querying the network configuration requires elevated privileges (e.g. Amazon
77+
Lambda). Add the return, and trap errors so they don't cause npm to explode.
78+
Thanks to [@mhart](https://github.com/mhart) for bringing this to our
79+
attention! ([@othiym23](https://github.com/othiym23))
80+
81+
#### DEPENDENCY UPDATES WAIT FOR NO SOPHONT
82+
83+
* [`000cd8b`](https://github.com/npm/npm/commit/000cd8b52104942ac3404f0ad0651d82f573da37)
84+
`[email protected]`: More informative assertions on argument validation failure.
85+
([@isaacs](https://github.com/isaacs))
86+
* [`530a2e3`](https://github.com/npm/npm/commit/530a2e369128270f3e098f0e9be061533003b0eb)
87+
`[email protected]`: Revert to old key access-time behavior, as it was correct
88+
all along. ([@isaacs](https://github.com/isaacs))
89+
* [`d88958c`](https://github.com/npm/npm/commit/d88958ca02ce81b027b9919aec539d0145875a59)
90+
`[email protected]`: Feature detection and test improvements.
91+
([@isaacs](https://github.com/isaacs))
92+
* [`3fa39e4`](https://github.com/npm/npm/commit/3fa39e4d492609d5d045033896dcd99f7b875329)
93+
`[email protected]` ([@pgte](https://github.com/pgte))
94+
95+
### v2.9.0 (2015-04-23):
96+
97+
This week was kind of a breather to concentrate on fixing up the tests on the
98+
`multi-stage` branch, and not mess with git issues for a little while.
99+
Unfortunately, There are now enough severe git issues that we'll probably have
100+
to spend another couple weeks tackling them. In the meantime, enjoy these two
101+
small features. They're just enough to qualify for a semver-minor bump:
102+
103+
#### NANOFEATURES
104+
105+
* [`2799322`](https://github.com/npm/npm/commit/279932298ce5b589c5eea9439ac40b88b99c6a4a)
106+
[#7426](https://github.com/npm/npm/issues/7426) Include local modules in `npm
107+
outdated` and `npm update`. ([@ArnaudRinquin](https://github.com/ArnaudRinquin))
108+
* [`2114862`](https://github.com/npm/npm/commit/21148620fa03a582f4ec436bb16bd472664f2737)
109+
[#8014](https://github.com/npm/npm/issues/8014) The prefix used before the
110+
version on version tags is now configurable via `tag-version-prefix`. Be
111+
careful with this one and read the docs before using it.
112+
([@kkragenbrink](https://github.com/kkragenbrink))
113+
114+
#### OTHER MINOR TWEAKS
115+
116+
* [`18ce0ec`](https://github.com/npm/npm/commit/18ce0ecd2d94ad3af01e997f1396515892dd363c)
117+
[#3032](https://github.com/npm/npm/issues/3032) `npm unpublish` will now use
118+
the registry set in `package.json`, just like `npm publish`. This only
119+
applies, for now, when unpublishing the entire package, as unpublishing a
120+
single version requires the name be included on the command line and
121+
therefore doesn't read from `package.json`. ([@watilde](https://github.com/watilde))
122+
* [`9ad2100`](https://github.com/npm/npm/commit/9ad210042242e51d52b2a8b633d8e59248f5faa4)
123+
[#8008](https://github.com/npm/npm/issues/8008) Once again, when considering
124+
what to install on `npm install`, include `devDependencies`.
125+
([@smikes](https://github.com/smikes))
126+
* [`5466260`](https://github.com/npm/npm/commit/546626059909dca1906454e820ca4e315c1795bd)
127+
[#8003](https://github.com/npm/npm/issues/8003) Clarify the documentation
128+
around scopes to make it easier to understand how they support private
129+
packages. ([@smikes](https://github.com/smikes))
130+
131+
#### DEPENDENCIES WILL NOT STOP UNTIL YOU ARE VERY SLEEPY
132+
133+
* [`faf65a7`](https://github.com/npm/npm/commit/faf65a7bbb2fad13216f64ed8f1243bafe743f97)
134+
`[email protected]`: If there are multiple validation errors and
135+
warnings, ensure they all get displayed (includes a rad new way of testing
136+
`init-package-json` contributed by
137+
[@michaelnisi](https://github.com/michaelnisi)).
138+
([@MisumiRize](https://github.com/MisumiRize))
139+
* [`7f10f38`](https://github.com/npm/npm/commit/7f10f38d29a8423d7cde8103fa7b64ac728da1e0)
140+
`[email protected]`: `1.0.0` is literally more than `0.1.0` (no change aside from
141+
version number). ([@substack](https://github.com/substack))
142+
* [`4979af3`](https://github.com/npm/npm/commit/4979af3fcae5a3962383b7fdad3162381e62eefe)
143+
[#6805](https://github.com/npm/npm/issues/6805) `[email protected]`:
144+
Decode scoped package names sent by the registry so they look nicer.
145+
([@mmalecki](https://github.com/mmalecki))
146+
1147
### v2.8.4 (2015-04-16):
2148

3149
This is the fourth release of npm this week, so it's mostly just landing a few

deps/npm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ authors:
235235
git add AUTHORS &&\
236236
git commit -m "update AUTHORS" || true
237237

238-
publish: link doc authors
238+
publish: authors link doc
239239
@git push origin :v$(shell npm -v) 2>&1 || true
240240
git clean -fd &&\
241241
git push origin $(BRANCH) &&\

deps/npm/doc/cli/npm-build.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ npm-build(1) -- Build a package
1212

1313
This is the plumbing command called by `npm link` and `npm install`.
1414

15-
It should generally not be called directly.
15+
It should generally be called during installation, but if you need to run it
16+
directly, run:
17+
18+
npm run-script build
1619

1720
## SEE ALSO
1821

deps/npm/doc/cli/npm-shrinkwrap.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ npm-shrinkwrap(1) -- Lock down dependency versions
99

1010
This command locks down the versions of a package's dependencies so
1111
that you can control exactly which versions of each dependency will be
12-
used when your package is installed. The "package.json" file is still
13-
required if you want to use "npm install".
12+
used when your package is installed. The `package.json` file is still
13+
required if you want to use `npm install`.
1414

15-
By default, "npm install" recursively installs the target's
15+
By default, `npm install` recursively installs the target's
1616
dependencies (as specified in package.json), choosing the latest
1717
available version that satisfies the dependency's semver pattern. In
1818
some situations, particularly when shipping software where each change
@@ -53,13 +53,13 @@ and package C:
5353
}
5454

5555
If these are the only versions of A, B, and C available in the
56-
registry, then a normal "npm install A" will install:
56+
registry, then a normal `npm install A` will install:
5757

5858
5959
6060
6161

62-
However, if [email protected] is published, then a fresh "npm install A" will
62+
However, if [email protected] is published, then a fresh `npm install A` will
6363
install:
6464

6565
@@ -96,7 +96,7 @@ This generates npm-shrinkwrap.json, which will look something like this:
9696
}
9797

9898
The shrinkwrap command has locked down the dependencies based on
99-
what's currently installed in node_modules. When "npm install"
99+
what's currently installed in node_modules. When `npm install`
100100
installs a package with a npm-shrinkwrap.json file in the package
101101
root, the shrinkwrap file (rather than package.json files) completely
102102
drives the installation of that package and all of its dependencies
@@ -109,31 +109,31 @@ files.
109109
### Using shrinkwrapped packages
110110

111111
Using a shrinkwrapped package is no different than using any other
112-
package: you can "npm install" it by hand, or add a dependency to your
113-
package.json file and "npm install" it.
112+
package: you can `npm install` it by hand, or add a dependency to your
113+
package.json file and `npm install` it.
114114

115115
### Building shrinkwrapped packages
116116

117117
To shrinkwrap an existing package:
118118

119-
1. Run "npm install" in the package root to install the current
119+
1. Run `npm install` in the package root to install the current
120120
versions of all dependencies.
121121
2. Validate that the package works as expected with these versions.
122-
3. Run "npm shrinkwrap", add npm-shrinkwrap.json to git, and publish
122+
3. Run `npm shrinkwrap`, add npm-shrinkwrap.json to git, and publish
123123
your package.
124124

125125
To add or update a dependency in a shrinkwrapped package:
126126

127-
1. Run "npm install" in the package root to install the current
127+
1. Run `npm install` in the package root to install the current
128128
versions of all dependencies.
129-
2. Add or update dependencies. "npm install" each new or updated
129+
2. Add or update dependencies. `npm install` each new or updated
130130
package individually and then update package.json. Note that they
131131
must be explicitly named in order to be installed: running `npm
132132
install` with no arguments will merely reproduce the existing
133133
shrinkwrap.
134134
3. Validate that the package works as expected with the new
135135
dependencies.
136-
4. Run "npm shrinkwrap", commit the new npm-shrinkwrap.json, and
136+
4. Run `npm shrinkwrap`, commit the new npm-shrinkwrap.json, and
137137
publish your package.
138138

139139
You can use npm-outdated(1) to view dependencies with newer versions
@@ -142,13 +142,13 @@ available.
142142
### Other Notes
143143

144144
A shrinkwrap file must be consistent with the package's package.json
145-
file. "npm shrinkwrap" will fail if required dependencies are not
145+
file. `npm shrinkwrap` will fail if required dependencies are not
146146
already installed, since that would result in a shrinkwrap that
147147
wouldn't actually work. Similarly, the command will fail if there are
148148
extraneous packages (not referenced by package.json), since that would
149149
indicate that package.json is not correct.
150150

151-
Since "npm shrinkwrap" is intended to lock down your dependencies for
151+
Since `npm shrinkwrap` is intended to lock down your dependencies for
152152
production use, `devDependencies` will not be included unless you
153153
explicitly set the `--dev` flag when you run `npm shrinkwrap`. If
154154
installed `devDependencies` are excluded, then npm will print a

deps/npm/doc/files/npmrc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The four relevant files are:
1717

1818
* per-project config file (/path/to/my/project/.npmrc)
1919
* per-user config file (~/.npmrc)
20-
* global config file ($PREFIX/npmrc)
20+
* global config file ($PREFIX/etc/npmrc)
2121
* npm builtin config file (/path/to/npm/npmrc)
2222

2323
All npm config files are an ini-formatted list of `key = value`

deps/npm/doc/files/package.json.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,23 @@ them. The name and version together form an identifier that is assumed
1717
to be completely unique. Changes to the package should come along with
1818
changes to the version.
1919

20-
The name is what your thing is called. Some tips:
20+
The name is what your thing is called.
2121

22+
Some rules:
23+
24+
* The name must be shorter than 214 characters. This includes the scope for
25+
scoped packages.
26+
* The name can't start with a dot or an underscore.
27+
* New packages must not have uppercase letters in the name.
28+
* The name ends up being part of a URL, an argument on the command line, and a
29+
folder name. Therefore, the name can't contain any non-URL-safe characters.
30+
31+
Some tips:
32+
33+
* Don't use the same name as a core Node module.
2234
* Don't put "js" or "node" in the name. It's assumed that it's js, since you're
2335
writing a package.json file, and you can specify the engine using the "engines"
2436
field. (See below.)
25-
* The name ends up being part of a URL, an argument on the command line, and a
26-
folder name. Any name with non-url-safe characters will be rejected.
27-
Also, it can't start with a dot or an underscore.
2837
* The name will probably be passed as an argument to require(), so it should
2938
be something short, but also reasonably descriptive.
3039
* You may want to check the npm registry to see if there's something by that name

deps/npm/doc/misc/npm-config.md

+13
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,19 @@ it will install the specified tag.
804804
Also the tag that is added to the package@version specified by the `npm
805805
tag` command, if no explicit tag is given.
806806

807+
### tag-version-prefix
808+
809+
* Default: `"v"`
810+
* Type: String
811+
812+
If set, alters the prefix used when tagging a new version when performing a
813+
version increment using `npm-version`. To remove the prefix altogether, set it
814+
to the empty string: `""`.
815+
816+
Because other tools may rely on the convention that npm version tags look like
817+
`v1.0.0`, _only use this property if it is absolutely necessary_. In
818+
particular, use care when overriding this setting for public packages.
819+
807820
### tmp
808821

809822
* Default: TMPDIR environment variable, or "/tmp"

deps/npm/doc/misc/npm-scope.md

+28-8
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ followed by a slash, e.g.
1313
Scopes are a way of grouping related packages together, and also affect a few
1414
things about the way npm treats the package.
1515

16-
**As of 2014-09-03, scoped packages are not supported by the public npm registry**.
17-
However, the npm client is backwards-compatible with un-scoped registries, so
18-
it can be used to work with scoped and un-scoped registries at the same time.
16+
Scoped packages are supported by the public npm registry. The npm
17+
client is backwards-compatible with un-scoped registries, so it can be
18+
used to work with scoped and un-scoped registries at the same time.
1919

2020
## Installing scoped packages
2121

@@ -51,10 +51,29 @@ just specifying to require the module `mypackage` in the folder called `@myorg`.
5151

5252
## Publishing scoped packages
5353

54-
Scoped packages can be published to any registry that supports them.
55-
*As of 2014-09-03, the public npm registry does not support scoped packages*,
56-
so attempting to publish a scoped package to the registry will fail unless
57-
you have associated that scope with a different registry, see below.
54+
Scoped packages can be published to any registry that supports them, including
55+
the public npm registry.
56+
57+
(As of 2015-04-19, the public npm registry **does** support scoped packages)
58+
59+
If you wish, you may associate a scope with a registry; see below.
60+
61+
### Publishing public scoped packages to the public npm registry
62+
63+
To publish a public scoped package, you must specify `--access public` with
64+
the initial publication. This will publish the package and set access
65+
to `public` as if you had run `npm access public` after publishing.
66+
67+
### Publishing private scoped packages to the npm registry
68+
69+
To publish a private scoped package to the npm registry, you must have
70+
an [npm Private Modules](https://www.npmjs.com/private-modules)
71+
account.
72+
73+
You can then publish the module with `npm publish` or `npm publish
74+
--access restricted`, and it will be present in the npm registry, with
75+
restricted access. You can then change the access permissions, if
76+
desired, with `npm access` or on the npmjs.com website.
5877

5978
## Associating a scope with a registry
6079

@@ -81,4 +100,5 @@ that registry instead.
81100
## SEE ALSO
82101

83102
* npm-install(1)
84-
* npm-publish(1)
103+
* npm-publish(1)
104+
* npm-access(1)

0 commit comments

Comments
 (0)