Skip to content

Commit 202c18b

Browse files
iarnaJulien Gilli
authored and
Julien Gilli
committed
deps: upgrade to npm 2.10.1
Reviewed-By: Julien Gilli <[email protected]> PR-URL: nodejs/node-v0.x-archive#25364
1 parent 3122052 commit 202c18b

File tree

283 files changed

+6270
-2770
lines changed

Some content is hidden

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

283 files changed

+6270
-2770
lines changed

deps/npm/.eslintrc

-20
This file was deleted.

deps/npm/AUTHORS

+5
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,8 @@ erik wienhold <[email protected]>
274274
James Butler <[email protected]>
275275
Kevin Kragenbrink <[email protected]>
276276
Arnaud Rinquin <[email protected]>
277+
Mike MacCana <[email protected]>
278+
Antti Mattila <[email protected]>
279+
280+
Matt Zorn <[email protected]>
281+
Kyle Mitchell <[email protected]>

deps/npm/CHANGELOG.md

+158
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,161 @@
1+
### v2.10.1 (2015-05-14):
2+
3+
#### BUG FIXES & DOCUMENTATION TWEAKS
4+
5+
* [`dc77520`](https://github.com/npm/npm/commit/dc7752013ffce13a3d3f13e518a0052c22fc1158)
6+
When getting back a 404 from a request to a private registry that uses a
7+
registry path that extends past the root
8+
(`http://registry.enterprise.co/path/to/registry`), display the name of the
9+
nonexistent package, rather than the first element in the registry API path.
10+
Sorry, Artifactory users! ([@hayes](https://github.com/hayes))
11+
* [`f70dea9`](https://github.com/npm/npm/commit/f70dea9b4766f6eaa55012c3e8087e9cb04fd4ce)
12+
Make clearer that `--registry` can be used on a per-publish basis to push a
13+
package to a non-default registry. ([@mischkl](https://github.com/mischkl))
14+
* [`a3e26f5`](https://github.com/npm/npm/commit/a3e26f5b4465991a941a325468ab7725670d2a94)
15+
Did you know that GitHub shortcuts can have commit-ishes included
16+
(`org/repo#branch`)? They can! ([@iarna](https://github.com/iarna))
17+
* [`0e2c091`](https://github.com/npm/npm/commit/0e2c091a539b61fdc60423b6bbaaf30c24e4b1b8)
18+
Some errors from `readPackage` were being swallowed, potentially leading to
19+
invalid package trees on disk. ([@smikes](https://github.com/smikes))
20+
21+
#### DEPENDENCY UPDATES! STILL! MORE! AGAIN!
22+
23+
* [`0b901ad`](https://github.com/npm/npm/commit/0b901ad0811d84dda6ca0755a9adc8d47825edd0)
24+
`[email protected]`: Removed some cruft from the published package.
25+
([@isaacs](https://github.com/isaacs))
26+
* [`d713e0b`](https://github.com/npm/npm/commit/d713e0b14930c563e3fdb6ac6323bae2a8924652)
27+
`[email protected]`: Made compliant with `standard`, dropped support for Node 0.6,
28+
added (Travis) support for Node 0.12 and io.js.
29+
([@isaacs](https://github.com/isaacs))
30+
* [`a2d6578`](https://github.com/npm/npm/commit/a2d6578b6554c5c9d48fe2006751759f4da57520)
31+
`[email protected]`: Updated to use `tap@1`. ([@isaacs](https://github.com/isaacs))
32+
* [`64cd1a5`](https://github.com/npm/npm/commit/64cd1a570aaa5f24ccba190948ec9456297c97f5)
33+
`fstream@ 1.0.6`: Made compliant with [`standard`](http://npm.im/standard)
34+
(done by [@othiym23](https://github.com/othiym23), and then debugged and
35+
fixed by [@iarna](https://github.com/iarna)), and license changed to ISC.
36+
([@othiym23](https://github.com/othiym23) /
37+
[@iarna](https://github.com/iarna))
38+
* [`b527a7c`](https://github.com/npm/npm/commit/b527a7c2ba3c4002f443dd2c536ff4ff41a38b86)
39+
`[email protected]`: Callers can pass in their own `PATH` instead of relying on
40+
`process.env`. ([@isaacs](https://github.com/isaacs))
41+
42+
### v2.10.0 (2015-05-8):
43+
44+
#### THE IMPLICATIONS ARE MORE PROFOUND THAN THEY APPEAR
45+
46+
If you've done much development in The Enterprise®™, you know that keeping
47+
track of software licenses is far more important than one might expect / hope /
48+
fear. Tracking licenses is a hassle, and while many (if not most) of us have
49+
(reluctantly) gotten around to setting a license to use by default with all our
50+
new projects (even if it's just WTFPL), that's about as far as most of us think
51+
about it. In big enterprise shops, ensuring that projects don't inadvertently
52+
use software with unacceptably encumbered licenses is serious business, and
53+
developers spend a surprising (and appalling) amount of time ensuring that
54+
licensing is covered by writing automated checkers and other license auditing
55+
tools.
56+
57+
The Linux Foundation has been working on a machine-parseable syntax for license
58+
expressions in the form of [SPDX](https://spdx.org/), an appropriately
59+
enterprisey acronym. IP attorney and JavaScript culture hero [Kyle
60+
Mitchell](http://kemitchell.com/) has put a considerable amount of effort into
61+
bringing SPDX to JavaScript and Node. He's written
62+
[`spdx.js`](https://github.com/kemitchell/spdx.js), a JavaScript SPDX
63+
expression parser, and has integrated it into npm in a few different ways.
64+
65+
For you as a user of npm, this means:
66+
67+
* npm now has proper support for dual licensing in `package.json`, due to
68+
SPDX's compound expression syntax. Run `npm help package.json` for details.
69+
* npm will warn you if the `package.json` for your project is either missing a
70+
`"license"` field, or if the value of that field isn't a valid SPDX
71+
expression (pro tip: `"BSD"` becomes `"BSD-2-Clause"` in SPDX (unless you
72+
really want one of its variants); `"MIT"` and `"ISC"` are fine as-is; the
73+
[full list](https://github.com/shinnn/spdx-license-ids/blob/master/spdx-license-ids.json)
74+
is its own package).
75+
* `npm init` now demands that you use a valid SPDX expression when using it
76+
interactively (pro tip: I mostly use `npm init -y`, having previously run
77+
`npm config set init.license=MIT` / `npm config set init.author.email=foo` /
78+
`npm config set init.author.name=me`).
79+
* The documentation for `package.json` has been updated to tell you how to use
80+
the `"license"` field properly with SPDX.
81+
82+
In general, this shouldn't be a big deal for anybody other than people trying
83+
to run their own automated license validators, but in the long run, if
84+
everybody switches to this format, many people's lives will be made much
85+
simpler. I think this is an important improvement for npm and am very thankful
86+
to Kyle for taking the lead on this. Also, even if you think all of this is
87+
completely stupid, just [choose a license](http://en.wikipedia.org/wiki/License-free_software)
88+
anyway. Future you will thank past you someday, unless you are
89+
[djb](http://cr.yp.to/), in which case you are djb, and more power to you.
90+
91+
* [`8669f7d`](https://github.com/npm/npm/commit/8669f7d88c472ccdd60e140106ac43cca636a648)
92+
[#8179](https://github.com/npm/npm/issues/8179) Document how to use SPDX in
93+
`license` stanzas in `package.json`, including how to migrate from old busted
94+
license declaration arrays to fancy new compound-license clauses.
95+
([@kemitchell](https://github.com/kemitchell))
96+
* [`98ad98c`](https://github.com/npm/npm/commit/98ad98cb11f3d3ba29a488ef1ab050b066d9c7f6)
97+
[#8197](https://github.com/npm/npm/issues/8197) `[email protected]`
98+
Ensure that packages bootstrapped with `npm init` use an SPDX-compliant
99+
license expression. ([@kemitchell](https://github.com/kemitchell))
100+
* [`2ad3905`](https://github.com/npm/npm/commit/2ad3905e9139b0be2b22accf707b814469de813e)
101+
[#8197](https://github.com/npm/npm/issues/8197)
102+
`[email protected]`: Warn when a package is missing a license
103+
declaration, or using a license expression that isn't valid SPDX.
104+
([@kemitchell](https://github.com/kemitchell))
105+
* [`127bb73`](https://github.com/npm/npm/commit/127bb73ccccc59a1267851c702d8ebd3f3a97e81)
106+
[#8197](https://github.com/npm/npm/issues/8197) `[email protected]`: Switch from
107+
`BSD` to `ISC` for license, where the latter is valid SPDX.
108+
([@othiym23](https://github.com/othiym23))
109+
* [`e9a933a`](https://github.com/npm/npm/commit/e9a933a9148180d9d799f99f4154f5110ff2cace)
110+
[#8197](https://github.com/npm/npm/issues/8197) `[email protected]`: Switch from
111+
`BSD` to `ISC` for license, where the latter is valid SPDX.
112+
([@othiym23](https://github.com/othiym23))
113+
* [`412401f`](https://github.com/npm/npm/commit/412401fb6a19b18f3e02d97a24d4dafed650c186)
114+
[#8197](https://github.com/npm/npm/issues/8197) `[email protected]`: Switch from
115+
`BSD` to `ISC` for license, where the latter is valid SPDX.
116+
([@othiym23](https://github.com/othiym23))
117+
118+
As a corollary to the previous changes, I've put some work into making `npm
119+
install` spew out fewer pointless warnings about missing values in transitive
120+
dependencies. From now on, npm will only warn you about missing READMEs,
121+
license fields, and the like for top-level projects (including packages you
122+
directly install into your application, but we may relax that eventually).
123+
124+
Practically _nobody_ liked having those warnings displayed for child
125+
dependencies, for the simple reason that there was very little that anybody
126+
could _do_ about those warnings, unless they happened to be the maintainers of
127+
those dependencies themselves. Since many, many projects don't have
128+
SPDX-compliant licenses, the number of warnings reached a level where they ran
129+
the risk of turning into a block of visual noise that developers (read: me, and
130+
probably you) would ignore forever.
131+
132+
So I fixed it. If you still want to see the messages about child dependencies,
133+
they're still there, but have been pushed down a logging level to `info`. You
134+
can display them by running `npm install -d` or `npm install --loglevel=info`.
135+
136+
* [`eb18245`](https://github.com/npm/npm/commit/eb18245f55fb4cd62a36867744bcd1b7be0a33e2)
137+
Only warn on normalization errors for top-level dependencies. Transitive
138+
dependency validation warnings are logged at `info` level.
139+
([@othiym23](https://github.com/othiym23))
140+
141+
#### BUG FIXES
142+
143+
* [`e40e809`](https://github.com/npm/npm/commit/e40e8095d2bc9fa4eb8f01aa22067e0068fa8a54)
144+
`[email protected]`: TAP: The Next Generation. Fix up many tests to they work
145+
properly with the new major version of `node-tap`. Look at all the colors!
146+
([@isaacs](https://github.com/isaacs))
147+
* [`f9314e9`](https://github.com/npm/npm/commit/f9314e97d26532c0ef2b03e98f3ed300b7cd5026)
148+
`[email protected]`: Minor tweaks and bug fixes. ([@pgte](https://github.com/pgte))
149+
* [`45c2b1a`](https://github.com/npm/npm/commit/45c2b1aaa051733fa352074994ae6e569fd51e8b)
150+
[#8187](https://github.com/npm/npm/issues/8187) `npm ls` wasn't properly
151+
recognizing dependencies installed from GitHub repositories as git
152+
dependencies, and so wasn't displaying them as such.
153+
([@zornme](https://github.com/zornme))
154+
* [`1ab57c3`](https://github.com/npm/npm/commit/1ab57c38116c0403965c92bf60121f0f251433e4)
155+
In some cases, `npm help` was using something that looked like a regular
156+
expression where a glob pattern should be used, and vice versa.
157+
([@isaacs](https://github.com/isaacs))
158+
1159
### v2.9.1 (2015-04-30):
2160

3161
#### WOW! MORE GIT FIXES! YOU LOVE THOSE!

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

+30-31
Original file line numberDiff line numberDiff line change
@@ -155,71 +155,70 @@ after packing it up into a tarball (b).
155155
npm install sax@">=0.1.0 <0.2.0"
156156
npm install @myorg/privatepackage@">=0.1.0 <0.2.0"
157157

158-
* `npm install <githubname>/<githubrepo>`:
158+
* `npm install <git remote url>`:
159159

160-
Install the package at `https://github.com/githubname/githubrepo` by
161-
attempting to clone it using `git`.
160+
Install a package by cloning a git remote url. The format of the git
161+
url is:
162162

163-
Example:
163+
<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:/]<path>[#<commit-ish>]
164164

165-
npm install mygithubuser/myproject
165+
`<protocol>` is one of `git`, `git+ssh`, `git+http`, or
166+
`git+https`. If no `<commit-ish>` is specified, then `master` is
167+
used.
166168

167-
To reference a package in a generic git repo (not on GitHub), see git remote
168-
urls below.
169+
Examples:
169170

170-
* `npm install github:<githubname>/<githubrepo>`:
171+
git+ssh://[email protected]:npm/npm.git#v1.0.27
172+
git+https://[email protected]/npm/npm.git
173+
git://github.com/npm/npm.git#v1.0.27
171174

172-
The same as the above, but explicitly marked as a GitHub dependency.
175+
* `npm install <githubname>/<githubrepo>[#<commit-ish>]`:
176+
* `npm install github:<githubname>/<githubrepo>[#<commit-ish>]`:
173177

174-
Example:
178+
Install the package at `https://github.com/githubname/githubrepo` by
179+
attempting to clone it using `git`.
180+
181+
If you don't specify a *commit-ish* then `master` will be used.
182+
183+
Examples:
175184

176-
npm install github:npm/npm
185+
npm install mygithubuser/myproject
186+
npm install github:mygithubuser/myproject
177187

178-
* `npm install gist:[<githubname>/]<gistID>`:
188+
* `npm install gist:[<githubname>/]<gistID>[#<commit-ish>]`:
179189

180190
Install the package at `https://gist.github.com/gistID` by attempting to
181191
clone it using `git`. The GitHub username associated with the gist is
182192
optional and will not be saved in `package.json` if `--save` is used.
183193

194+
If you don't specify a *commit-ish* then `master` will be used.
195+
184196
Example:
185197

186198
npm install gist:101a11beef
187199

188-
* `npm install bitbucket:<bitbucketname>/<bitbucketrepo>`:
200+
* `npm install bitbucket:<bitbucketname>/<bitbucketrepo>[#<commit-ish>]`:
189201

190202
Install the package at `https://bitbucket.org/bitbucketname/bitbucketrepo`
191203
by attempting to clone it using `git`.
192204

205+
If you don't specify a *commit-ish* then `master` will be used.
206+
193207
Example:
194208

195209
npm install bitbucket:mybitbucketuser/myproject
196210

197-
* `npm install gitlab:<gitlabname>/<gitlabrepo>`:
211+
* `npm install gitlab:<gitlabname>/<gitlabrepo>[#<commit-ish>]`:
198212

199213
Install the package at `https://gitlab.com/gitlabname/gitlabrepo`
200214
by attempting to clone it using `git`.
201215

216+
If you don't specify a *commit-ish* then `master` will be used.
217+
202218
Example:
203219

204220
npm install gitlab:mygitlabuser/myproject
205221

206-
* `npm install <git remote url>`:
207-
208-
Install a package by cloning a git remote url. The format of the git
209-
url is:
210-
211-
<protocol>://[<user>[:<password>]@]<hostname><separator><path>[#<commit-ish>]
212-
213-
`<protocol>` is one of `git`, `git+ssh`, `git+http`, or
214-
`git+https`. If no `<commit-ish>` is specified, then `master` is
215-
used.
216-
217-
Examples:
218-
219-
git+ssh://[email protected]:npm/npm.git#v1.0.27
220-
git+https://[email protected]/npm/npm.git
221-
git://github.com/npm/npm.git#v1.0.27
222-
223222
You may combine multiple arguments, and even multiple types of arguments.
224223
For example:
225224

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

+41-5
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,54 @@ If a url is provided, it will be used by the `npm bugs` command.
9898
You should specify a license for your package so that people know how they are
9999
permitted to use it, and any restrictions you're placing on it.
100100

101-
The simplest way, assuming you're using a common license such as BSD-3-Clause
102-
or MIT, is to just specify the standard SPDX ID of the license you're using,
103-
like this:
101+
If you're using a common license such as BSD-2-Clause or MIT, add a
102+
current SPDX license identifier for the license you're using, like this:
104103

105104
{ "license" : "BSD-3-Clause" }
106105

107106
You can check [the full list of SPDX license IDs](https://spdx.org/licenses/).
108107
Ideally you should pick one that is
109108
[OSI](http://opensource.org/licenses/alphabetical) approved.
110109

111-
It's also a good idea to include a LICENSE file at the top level in
112-
your package.
110+
If your package is licensed under multiple common licenses, use an [SPDX license
111+
expression syntax version 2.0 string](http://npmjs.com/package/spdx), like this:
112+
113+
{ "license" : "(ISC OR GPL-3.0)" }
114+
115+
If you are using a license that hasn't been assigned an SPDX identifier, or if
116+
you are using a custom license, use the following valid SPDX expression:
117+
118+
{ "license" : "LicenseRef-LICENSE" }
119+
120+
Then include a LICENSE file at the top level of the package.
121+
122+
Some old packages used license objects or a "licenses" property containing an
123+
array of license objects:
124+
125+
// Not valid metadata
126+
{ "license" :
127+
{ "type" : "ISC"
128+
, "url" : "http://opensource.org/licenses/ISC"
129+
}
130+
}
131+
132+
// Not valid metadata
133+
{ "licenses" :
134+
[
135+
{ "type": "MIT"
136+
, "url": "http://www.opensource.org/licenses/mit-license.php"
137+
}
138+
, { "type": "Apache-2.0"
139+
, "url": "http://opensource.org/licenses/apache2.0.php"
140+
}
141+
]
142+
}
143+
144+
Those styles are now deprecated. Instead, use SPDX expressions, like this:
145+
146+
{ "license": "ISC" }
147+
148+
{ "license": "(MIT OR Apache-2.0)" }
113149

114150
## people fields: author, contributors
115151

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ similar) design doc to implement the APIs.
3131
If you set up continuous replication from the official CouchDB, and then
3232
set your internal CouchDB as the registry config, then you'll be able
3333
to read any published packages, in addition to your private ones, and by
34-
default will only publish internally. If you then want to publish a
35-
package for the whole world to see, you can simply override the
36-
`--registry` config for that command.
34+
default will only publish internally.
35+
36+
If you then want to publish a package for the whole world to see, you can
37+
simply override the `--registry` option for that `publish` command.
3738

3839
## I don't want my package published in the official registry. It's private.
3940

deps/npm/html/doc/README.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h2 id="legal-stuff">Legal Stuff</h2>
126126
<p>If you have a complaint about a package in the public npm registry,
127127
and cannot <a href="https://docs.npmjs.com/misc/disputes">resolve it with the package
128128
owner</a>, please email
129-
<a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#115;&#117;&#112;&#x70;&#111;&#114;&#116;&#x40;&#110;&#x70;&#109;&#x6a;&#115;&#46;&#99;&#x6f;&#x6d;">&#115;&#117;&#112;&#x70;&#111;&#114;&#116;&#x40;&#110;&#x70;&#109;&#x6a;&#115;&#46;&#99;&#x6f;&#x6d;</a> and explain the situation.</p>
129+
<a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#x3a;&#x73;&#117;&#112;&#112;&#x6f;&#114;&#x74;&#64;&#110;&#112;&#109;&#x6a;&#x73;&#46;&#99;&#x6f;&#x6d;">&#x73;&#117;&#112;&#112;&#x6f;&#114;&#x74;&#64;&#110;&#112;&#109;&#x6a;&#x73;&#46;&#99;&#x6f;&#x6d;</a> and explain the situation.</p>
130130
<p>Any data published to The npm Registry (including user account
131131
information) may be removed or modified at the sole discretion of the
132132
npm server administrators.</p>
@@ -169,5 +169,5 @@ <h2 id="see-also">SEE ALSO</h2>
169169
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
170170
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
171171
</table>
172-
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@2.9.1</p>
172+
<p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@2.10.1</p>
173173

deps/npm/html/doc/api/npm-bin.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ <h2 id="synopsis">SYNOPSIS</h2>
2828
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
2929
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
3030
</table>
31-
<p id="footer">npm-bin &mdash; npm@2.9.1</p>
31+
<p id="footer">npm-bin &mdash; npm@2.10.1</p>
3232

deps/npm/html/doc/api/npm-bugs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ <h2 id="synopsis">SYNOPSIS</h2>
3333
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
3434
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
3535
</table>
36-
<p id="footer">npm-bugs &mdash; npm@2.9.1</p>
36+
<p id="footer">npm-bugs &mdash; npm@2.10.1</p>
3737

0 commit comments

Comments
 (0)