Skip to content

Commit 3e76cb7

Browse files
zkatMyles Borins
authored and
Myles Borins
committed
deps: upgrade to npm 2.14.16
PR-URL: #4960 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent be7cbdb commit 3e76cb7

File tree

160 files changed

+996
-705
lines changed

Some content is hidden

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

160 files changed

+996
-705
lines changed

deps/npm/.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
2+
sudo: false
23
node_js:
34
- "5"
45
- "4"
@@ -11,7 +12,7 @@ env:
1112
before_install:
1213
- "npm config set spin false"
1314
- "npm install -g npm/npm#2.x"
14-
- "sudo mkdir -p /var/run/couchdb"
15+
- "mkdir -p /var/run/couchdb"
1516
script: "npm run-script test-all"
1617
notifications:
1718
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8

deps/npm/AUTHORS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,12 @@ ekmartin <[email protected]>
329329
Rafał Pocztarski <[email protected]>
330330
Ashley Williams <[email protected]>
331331
Mark Reeder <[email protected]>
332+
Tiago Rodrigues <[email protected]>
333+
Chris Rebert <[email protected]>
334+
Jeff McMahan <[email protected]>
335+
Scott Addie <[email protected]>
336+
Julian Simioni <[email protected]>
337+
Jimb Esser <[email protected]>
338+
Hal Henke <[email protected]>
339+
Alexis Campailla <[email protected]>
340+
Beau Gunderson <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,124 @@
1+
### v2.14.16 (2016-01-21):
2+
3+
Good to see you all again! It's been a while since we had an LTS release, and
4+
the team continues to work hard to both get the issue tracker under control, and
5+
get our test suite to be awesome and reliable.
6+
7+
This is also the first LTS release of this year.
8+
9+
We're gonna have an interesting time -- most of our focus this year will be
10+
around stability and maintainability of the CLI, so you might actually end up
11+
seeing a number of updates even over here, just for the sake of making sure
12+
we're stable, that bugs get fixed, and tests have proper coverage.
13+
14+
What better way to start this effort, then, than getting Travis tests green, fix
15+
a few things here and there, and tweak a bunch of documentation? 😁
16+
17+
#### FIX ALL THE BUGS AND TWEAK ALL THE THINGS
18+
19+
* [`24b13fb`](https://github.com/npm/npm/commit/24b13fbc57d34db1d5b0a37bcca122c00deba978)
20+
[#11158](https://github.com/npm/npm/pull/11158)
21+
Fix custom node-gyp env var quoting on Windows.
22+
([@orangemocha](https://github.com/orangemocha))
23+
* [`e2503f2`](https://github.com/npm/npm/commit/e2503f2be40157b05a9c500ec3b5d16090ffee50)
24+
[#11142](https://github.com/npm/npm/pull/11142)
25+
Fix race condition with `correctMkdir` in the cache directory.
26+
([@Jimbly](https://github.com/Jimbly))
27+
28+
* [`5c0e4c4`](https://github.com/npm/npm/commit/5c0e4c45a29d774ab729e86044377d4e5e424252)
29+
[#10940](https://github.com/npm/npm/pull/10940)
30+
Ignore failures replacing `package.json`. writeFileAtomic is not atomic in
31+
Windows, it fails if the file is being accessed concurrently.
32+
([@orangemocha](https://github.com/orangemocha))
33+
* [`2c44d8d`](https://github.com/npm/npm/commit/2c44d8dc8c267d5e054d0175ce2f4750f0986463)
34+
[#10903](https://github.com/npm/npm/pull/10903)
35+
Add tests for `npm adduser --scope`.
36+
([@ekmartin](https://github.com/ekmartin))
37+
* [`4cb25d0`](https://github.com/npm/npm/commit/4cb25d0fed5c7792dfd1aec891380ecc1f8a5761)
38+
[#10903](https://github.com/npm/npm/pull/10903)
39+
Add a message informing users when they have been successfully logged in.
40+
([@ekmartin](https://github.com/ekmartin))
41+
* [`fe3ec6d`](https://github.com/npm/npm/commit/fe3ec6d6658262054c0c19c55373c21e84ab9f17)
42+
[#10628](https://github.com/npm/npm/pull/10628)
43+
Tell users how to open an issue with a package that has errored.
44+
([@trodrigues](https://github.com/trodrigues))
45+
46+
#### DOCS DOCS DOCS
47+
48+
We got a TON of lovely documentation patches, too! Thanks all for submitting!
49+
50+
* [`22482a1`](https://github.com/npm/npm/commit/22482a1f22079d72c3f8ca55c2f0c153bdd024c0)
51+
[#11188](https://github.com/npm/npm/pull/11188)
52+
Briefly explain what's included when you publish.
53+
([@beaugunderson](https://github.com/beaugunderson))
54+
* [`fa47724`](https://github.com/npm/npm/commit/fa4772438df0c66a19309dd1c1a3ce43cbee5461)
55+
[#11150](https://github.com/npm/npm/pull/11150)
56+
Advise use of `--depth Infinity` instead of `--depth 9999` in `npm update`.
57+
([@halhenke](https://github.com/halhenke))
58+
* [`248ddfe`](https://github.com/npm/npm/commit/248ddfe8f7ddd3318e14bf61de41cab4a638c8a3)
59+
[#11130](https://github.com/npm/npm/pull/11130)
60+
Nuke "using npm programmatically" section from README. The programmatic npm
61+
API is unsupported, and is not guaranteed not to break in non-major versions.
62+
Removing this section so newcomers aren't encouraged to discover or use it.
63+
([@ljharb](https://github.com/ljharb))
64+
* [`ae9c452`](https://github.com/npm/npm/commit/ae9c4521222d60ab4a69c19fee5e361c62f41fae)
65+
[#11128](https://github.com/npm/npm/pull/11128)
66+
Add link to local paths section indocs for `package.json`.
67+
([@orangejulius](https://github.com/orangejulius))
68+
* [`663a8c6`](https://github.com/npm/npm/commit/663a8c6b4b1647f9b86c15ef32e30023edc8c060)
69+
[#11044](https://github.com/npm/npm/pull/11044)
70+
Update default value documentation for the color option in npm's config.
71+
([@scottaddie](https://github.com/scottaddie))
72+
* [`5c1dda0`](https://github.com/npm/npm/commit/5c1dda0d3a18b2954872dba33fbc696ff0700ffe)
73+
[#11037](https://github.com/npm/npm/pull/11037)
74+
Correct the name property max length constraint verbiage.
75+
([@scottaddie](https://github.com/scottaddie))
76+
* [`8288365`](https://github.com/npm/npm/commit/8288365d08e97fa3a5b0d31703c015a8be49e07f)
77+
[#10990](https://github.com/npm/npm/pull/10990)
78+
Update folder docs to reflect that process.installPrefix was removed as of
79+
0.8.x.
80+
([@jeffmcmahan](https://github.com/jeffmcmahan))
81+
* [`61d63fa`](https://github.com/npm/npm/commit/61d63fa22c4f09742180c2de460a4ffb6c32738e)
82+
[#10790](https://github.com/npm/npm/pull/10790)
83+
Clarify that `npm install foo` is the same as `npm install foo@latest` now.
84+
([@cvrebert](https://github.com/cvrebert))
85+
* [`442c920`](https://github.com/npm/npm/commit/442c9207f375354c91d36df8711ba2d33e1c97f3)
86+
[#10789](https://github.com/npm/npm/pull/10789)
87+
Link over to `npm-dist-tag(1)` in `npm install` docs when they talk about the
88+
`pkg@<tag>` syntax.
89+
([@cvrebert](https://github.com/cvrebert))
90+
* [`dca7a5e`](https://github.com/npm/npm/commit/dca7a5e2be3bfa306a870a123707d35c732406c0)
91+
[#10788](https://github.com/npm/npm/pull/10788)
92+
Link to tag docs in docs for `npm publish --tag`.
93+
([@cvrebert](https://github.com/cvrebert))
94+
* [`a72904e`](https://github.com/npm/npm/commit/a72904e8d4ab1d43ae8150fbe3f6468b0cbb1efd)
95+
[#10787](https://github.com/npm/npm/pull/10787)
96+
Explain why the `latest` tag matters.
97+
([@cvrebert](https://github.com/cvrebert))
98+
* [`9d0697a`](https://github.com/npm/npm/commit/9d0697a534046df7efda32170014041bbc1f4e7d)
99+
[#10785](https://github.com/npm/npm/pull/10785)
100+
Replace some quite marks in `npm dist-tag` docs for the sake of consistency.
101+
([@cvrebert](https://github.com/cvrebert))
102+
103+
#### I REALLY LIKE GREEN. CAN YOU TELL?
104+
105+
So Travis is all green now on `npm@2`, thanks to the removal of nock and a few
106+
other test suite tweaks. This is a fantastic step towards making sure we can all
107+
have confidence in our test suite! 🎉
108+
109+
* [`64995be`](https://github.com/npm/npm/commit/64995be6d874356b15c136f9867302d805dfe1e9) [`75ab216`](https://github.com/npm/npm/commit/75ab2164cf79e28ac7f7ebe714f3c5aee99c6626) [`a9f6fe9`](https://github.com/npm/npm/commit/a9f6fe9dc558f17c4a7b9eb83329ac080f7df4b7) [`649c193`](https://github.com/npm/npm/commit/649c193adadf714c2819837f9372a29d724a5ec0) [`94cb05e`](https://github.com/npm/npm/commit/94cb05eaa9e5ad6675cf15c4ac0a44fbdde05900) [`6541690`](https://github.com/npm/npm/commit/65416907008061ac5a5f66b1630a57776803b526) [`255be6f`](https://github.com/npm/npm/commit/255be6f5bca9e3d216f3a5cbdf6714c6c9fcf132) [`9e84fa4`](https://github.com/npm/npm/commit/9e84fa43c49d04cf86ca1678e2a61412f5559cb9) [`8a587b0`](https://github.com/npm/npm/commit/8a587b0c1696ae7302891fa6355fc3e8670e00d3) [`bf812a5`](https://github.com/npm/npm/commit/bf812a54e497a573493346399798aa0b9373ac24)
110+
[#10903](https://github.com/npm/npm/pull/10903)
111+
Get rid of nock from tests, and get Travis green.
112+
([@zkat](https://github.com/zkat) and [@iarna](https://github.com/iarna))
113+
* [`70a5310`](https://github.com/npm/npm/commit/70a5310712c6666e753ca8f3bfff4a780ec6292d)
114+
115+
Better 0.8 compatibility, and ability to run in travis docker stuff. This
116+
means the test suite should run a lot faster, too!
117+
([@iarna](https://github.com/iarna))
118+
* [`28fae39`](https://github.com/npm/npm/commit/28fae399212eda5554e6c0ffd8c9591144ab7b9d)
119+
Get rid of sudo, for Travis!
120+
([@zkat](https://github.com/zkat))
121+
1122
### v2.14.15 (2015-12-10):
2123

3124
Did you know that Bob Ross reached the rank of master sergeant in the US Air

deps/npm/README.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -138,52 +138,6 @@ must remove them yourself manually if you want them gone. Note that
138138
this means that future npm installs will not remember the settings that
139139
you have chosen.
140140

141-
## Using npm Programmatically
142-
143-
Although npm can be used programmatically, its API is meant for use by the CLI
144-
*only*, and no guarantees are made regarding its fitness for any other purpose.
145-
If you want to use npm to reliably perform some task, the safest thing to do is
146-
to invoke the desired `npm` command with appropriate arguments.
147-
148-
The semantic version of npm refers to the CLI itself, rather than the
149-
underlying API. _The internal API is not guaranteed to remain stable even when
150-
npm's version indicates no breaking changes have been made according to
151-
semver._
152-
153-
If you _still_ would like to use npm programmatically, it's _possible_. The API
154-
isn't very well documented, but it _is_ rather simple.
155-
156-
Eventually, npm will be just a thin CLI wrapper around the modules that it
157-
depends on, but for now, there are some things that only the CLI can do. You
158-
should try using one of npm's dependencies first, and only use the API if what
159-
you're trying to do is only supported by npm itself.
160-
161-
```javascript
162-
var npm = require("npm")
163-
npm.load(myConfigObject, function (er) {
164-
if (er) return handlError(er)
165-
npm.commands.install(["some", "args"], function (er, data) {
166-
if (er) return commandFailed(er)
167-
// command succeeded, and data might have some info
168-
})
169-
npm.registry.log.on("log", function (message) { .... })
170-
})
171-
```
172-
173-
The `load` function takes an object hash of the command-line configs.
174-
The various `npm.commands.<cmd>` functions take an **array** of
175-
positional argument **strings**. The last argument to any
176-
`npm.commands.<cmd>` function is a callback. Some commands take other
177-
optional arguments. Read the source.
178-
179-
You cannot set configs individually for any single npm function at this
180-
time. Since `npm` is a singleton, any call to `npm.config.set` will
181-
change the value for *all* npm commands in that process.
182-
183-
See `./bin/npm-cli.js` for an example of pulling config values off of the
184-
command line arguments using nopt. You may also want to check out `npm
185-
help config` to learn about all the options you can set there.
186-
187141
## More Docs
188142

189143
Check out the [docs](https://docs.npmjs.com/),
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
if not defined npm_config_node_gyp (
2-
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3-
) else (
4-
node %npm_config_node_gyp% %*
5-
)
1+
if not defined npm_config_node_gyp (
2+
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3+
) else (
4+
node "%npm_config_node_gyp%" %*
5+
)

deps/npm/doc/cli/npm-dist-tag.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,30 @@ When installing dependencies, a preferred tagged version may be specified:
3333

3434
This also applies to `npm dedupe`.
3535

36-
Publishing a package sets the "latest" tag to the published version unless the
36+
Publishing a package sets the `latest` tag to the published version unless the
3737
`--tag` option is used. For example, `npm publish --tag=beta`.
3838

39+
By default, `npm install <pkg>` (without any `@<version>` or `@<tag>`
40+
specifier) installs the `latest` tag.
41+
3942
## PURPOSE
4043

41-
Tags can be used to provide an alias instead of version numbers. For
42-
example, `npm` currently uses the tag "next" to identify the upcoming
43-
version, and the tag "latest" to identify the current version.
44+
Tags can be used to provide an alias instead of version numbers.
45+
46+
For example, a project might choose to have multiple streams of development
47+
and use a different tag for each stream,
48+
e.g., `stable`, `beta`, `dev`, `canary`.
49+
50+
By default, the `latest` tag is used by npm to identify the current version of
51+
a package, and `npm install <pkg>` (without any `@<version>` or `@<tag>`
52+
specifier) installs the `latest` tag. Typically, projects only use the `latest`
53+
tag for stable release versions, and use other tags for unstable versions such
54+
as prereleases.
55+
56+
The `next` tag is used by some projects to identify the upcoming version.
4457

45-
A project might choose to have multiple streams of development, e.g.,
46-
"stable", "canary".
58+
By default, other than `latest`, no tag has any special significance to npm
59+
itself.
4760

4861
## CAVEATS
4962

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A `package` is:
2525
* b) a gzipped tarball containing (a)
2626
* c) a url that resolves to (b)
2727
* d) a `<name>@<version>` that is published on the registry (see `npm-registry(7)`) with (c)
28-
* e) a `<name>@<tag>` that points to (d)
28+
* e) a `<name>@<tag>` (see `npm-dist-tag(1)`) that points to (d)
2929
* f) a `<name>` that has a "latest" tag satisfying (e)
3030
* g) a `<git remote url>` that resolves to (b)
3131

@@ -76,7 +76,7 @@ after packing it up into a tarball (b).
7676
* `npm install [@<scope>/]<name> [--save|--save-dev|--save-optional]`:
7777

7878
Do a `<name>@<tag>` install, where `<tag>` is the "tag" config. (See
79-
`npm-config(7)`.)
79+
`npm-config(7)`. The config's default value is `latest`.)
8080

8181
In most cases, this will install the latest version
8282
of the module published on npm.

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ npm-publish(1) -- Publish a package
99

1010
## DESCRIPTION
1111

12-
Publishes a package to the registry so that it can be installed by name. See
13-
`npm-developers(7)` for details on what's included in the published package, as
14-
well as details on how the package is built.
12+
Publishes a package to the registry so that it can be installed by name. All
13+
files in the package directory are included if no local `.gitignore` or
14+
`.npmignore` file is present. See `npm-developers(7)` for full details on
15+
what's included in the published package, as well as details on how the package
16+
is built.
1517

1618
By default npm will publish to the public registry. This can be overridden by
1719
specifying a different default registry or using a `npm-scope(7)` in the name
@@ -27,7 +29,8 @@ specifying a different default registry or using a `npm-scope(7)` in the name
2729
* `[--tag <tag>]`
2830
Registers the published package with the given tag, such that `npm install
2931
<name>@<tag>` will install this version. By default, `npm publish` updates
30-
and `npm install` installs the `latest` tag.
32+
and `npm install` installs the `latest` tag. See `npm-dist-tag(1)` for
33+
details about tags.
3134

3235
* `[--access <public|restricted>]`
3336
Tells the registry whether this package should be published as public or

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ or local) will be updated.
2222

2323
As of `[email protected]`, the `npm update` will only inspect top-level packages.
2424
Prior versions of `npm` would also recursively inspect all dependencies.
25-
To get the old behavior, use `npm --depth 9999 update`, but be warned that
25+
To get the old behavior, use `npm --depth Infinity update`, but be warned that
2626
simultaneous asynchronous update of all packages, including `npm` itself
2727
and packages that `npm` depends on, often causes problems up to and including
2828
the uninstallation of `npm` itself.

deps/npm/doc/files/npm-folders.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ This document will tell you what it puts where.
2020
### prefix Configuration
2121

2222
The `prefix` config defaults to the location where node is installed.
23-
On most systems, this is `/usr/local`, and most of the time is the same
24-
as node's `process.installPrefix`.
25-
26-
On windows, this is the exact location of the node.exe binary. On Unix
27-
systems, it's one level up, since node is typically installed at
28-
`{prefix}/bin/node` rather than `{prefix}/node.exe`.
23+
On most systems, this is `/usr/local`. On windows, this is the exact
24+
location of the node.exe binary. On Unix systems, it's one level up,
25+
since node is typically installed at `{prefix}/bin/node` rather than
26+
`{prefix}/node.exe`.
2927

3028
When the `global` flag is set, npm installs things into this prefix.
3129
When it is not set, it uses the root of the current package, or the

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The name is what your thing is called.
2121

2222
Some rules:
2323

24-
* The name must be shorter than 214 characters. This includes the scope for
24+
* The name must be less than or equal to 214 characters. This includes the scope for
2525
scoped packages.
2626
* The name can't start with a dot or an underscore.
2727
* New packages must not have uppercase letters in the name.
@@ -410,7 +410,7 @@ See semver(7) for more details about specifying version ranges.
410410
* `git...` See 'Git URLs as Dependencies' below
411411
* `user/repo` See 'GitHub URLs' below
412412
* `tag` A specific version tagged and published as `tag` See `npm-tag(1)`
413-
* `path/path/path` See Local Paths below
413+
* `path/path/path` See [Local Paths](#local-paths) below
414414

415415
For example, these are all valid:
416416

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ A client certificate to pass when accessing the registry.
232232

233233
### color
234234

235-
* Default: true on Posix, false on Windows
235+
* Default: true
236236
* Type: Boolean or `"always"`
237237

238238
If false, never shows colors. If `"always"` then always shows colors.

0 commit comments

Comments
 (0)