Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: upgrade npm in LTS to 2.15.1 #5

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deps/npm/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ npm-debug.log
/test/packages/npm-test-depends-on-spark/which-spark.log
/test/packages/test-package/random-data.txt
/test/root
/test/npm_cache
node_modules/marked
node_modules/ronn
node_modules/tap
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ before_install:
- "npm config set spin false"
- "npm install -g npm/npm#2.x"
- "mkdir -p /var/run/couchdb"
script: "npm run-script test-all"
script: "npm test"
notifications:
slack: npm-inc:kRqQjto7YbINqHPb1X6nS3g8
8 changes: 8 additions & 0 deletions deps/npm/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,11 @@ Vedat Mahir YILMAZ <[email protected]>
Jan Schär <[email protected]>
Xcat Liu <[email protected]>
Neil Kistner <[email protected]>
Hutson Betts <[email protected]>
Sergey Simonchik <[email protected]>
Lewis Cowper <[email protected]>
Arturo Coronel <[email protected]>
Scott Plumlee <[email protected]>
gnerkus <[email protected]>
Robert Ludwig <[email protected]>
Adam Byrne <[email protected]>
166 changes: 166 additions & 0 deletions deps/npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,169 @@
### v2.15.1 (2016-03-17):

It's another one of those releases again! Docs and tests, it turns out, have a
pretty easy time getting into LTS releases, and boring is exactly how LTS should
be. 💁

#### DOCS

* [`981c89c`](https://github.com/npm/npm/commit/981c89c8e398ca22ab6bf466123b25728ef6f543)
[#11820](https://github.com/npm/npm/pull/11820)
The basic explanation for how `npm link` works was a bit confusing, and
somewhat incorrect. It should be clearer now.
([@rhgb](https://github.com/rhgb))
* [`35b2b45`](https://github.com/npm/npm/commit/35b2b45f181dcbfb297f53b577dc1f26efcf3aba)
[#11787](https://github.com/npm/npm/pull/11787)
The `verison` alias for `npm version` no longer shows up in the command list
when you do `npm -h`.
([@doug-wade](https://github.com/doug-wade))
* [`1c9d00f`](https://github.com/npm/npm/commit/1c9d00f788298a81a8a7293d7dcf430f01bdd7fd)
[#11786](https://github.com/npm/npm/pull/11786)
Add a comment to the `npm-scope.md` docs about `npm@>=2` being required in
order to use scoped packaged.
([@doug-wade](https://github.com/doug-wade))
* [`7d64fb1`](https://github.com/npm/npm/commit/7d64fb1452d360aa736f31c85d6776ce570b2365)
[#11762](https://github.com/npm/npm/pull/11762)
Roll back patch that previously advised people to use `--depth Infinity`
instead of `--depth 9999`. Just keep using `--depth 9999`.
([@GriffinSchneider](https://github.com/GriffinSchneider))

#### TESTS

* [`98a9ee4`](https://github.com/npm/npm/commit/98a9ee4773f83994b8eb63c0ff75a9283408ba1a)
[#11912](https://github.com/npm/npm/pull/11912)
Did you know npm can install itself? `npm install -g npm` is the way to
upgrade! Turns out that one of the tests that verified this functionality got
rewritten as part of our recent push for better tests, and in the process
omitted a detail about *how* the test ran. We're testing that corner case
again, now, by moving the install folder to `/tmp`, where the original legacy
test ran.
([@iarna](https://github.com/iarna))

### v2.15.0 (2016-03-10):

#### WHY IS THIS SEMVER-MINOR I THOUGHT THIS WAS LTS

A brief note about LTS this week!

npm, as you may know if you're using this `2.x` branch, has an LTS process for
releases. We also try and play nice with [Node.js' own LTS release
process](https://github.com/nodejs/LTS#lts-plan). That means we generally try to
avoid things like minor version bumps on our `2.x` branch (which is also tagged
`lts` in the `dist-tag`s).

That said, we had a minor-bump update recently for `[email protected]` which added a
`maxsockets` option to allow users to configure the number of concurrent sockets
that npm would keep open at a time -- a setting that has the potential to help a
bunch for people with fussy routers or internet connections that aren't very
happy with Node.js applications' usual concurrency storm. This change was done
to `npm-registry-client`, which we don't have a parallel LTS-tracking branch
for.

After talking it over, we ended up deciding that this was a reasonable enough
addition to LTS, even though it's *technically* a `semver-minor` bump, taking
into account both its potential for bugfixing (specially on `2.x`!) and the
general hassle it would be to maintain another branch for `npm-registry-client`.


* [`6dd61e7`](https://github.com/npm/npm/commit/6dd61e781c145480dc255a3e6a748729868443fd)
Expose `maxsockets` config setting from new `npm-registry-client`.
([@misterbyrne](https://github.com/misterbyrne))
* [`8a021c3`](https://github.com/npm/npm/commit/8a021c35184e665bd1f3f70ae2f478af812ab614)
`[email protected]`:
Adds support for configuring the max number of concurrent sockets, defaulting
to `50`.
([@iarna](https://github.com/iarna))

#### DOC PATCH IS HERE TOO

* [`0ae9f74`](https://github.com/npm/npm/commit/0ae9f740001a1bdf5920bc464cf9e284d5d139f0)
[#11748](https://github.com/npm/npm/pull/11748)
Add command aliases as a separate section in documentation for npm
subcommands.
([@watilde](https://github.com/watilde))

#### DEP UPDATES

* [`bfc3888`](https://github.com/npm/npm/commit/bfc38887f832f701c16b7ee410c4e0220a90399f)
`[email protected]`
([@jbnicolai](https://github.com/jbnicolai))
* [`d5f4d51`](https://github.com/npm/npm/commit/d5f4d51a1b7ea78d7431c7ed4fed30200b2622f8)
`[email protected]`: Fixes Android generator
([@bnoordhuis](https://github.com/bnoordhuis))
* [`4119df8`](https://github.com/npm/npm/commit/4119df8aecd2ae57b0492ad8c9a480d900833008)
`[email protected]`: Some path-related fixes for Windows.
([@isaacs](https://github.com/isaacs))

### v2.14.22 (2016-03-03):

This week is all documentation improvements. In case you hadn't noticed, we
*love* doc patches. We love them so much, we give socks away if you submit
documentation PRs!

These folks are all getting socks if they ask for them. The socks are
super-sweet. Do you have yours yet? 👣

* [`3f3c7d0`](https://github.com/npm/npm/commit/3f3c7d080f052a5db91ff6091f8b1b13f26b53d6)
[#11441](https://github.com/npm/npm/pull/11441)
Add a link to the [Contribution
Guidelines](https://github.com/npm/npm/wiki/Contributing-Guidelines) to the
main npm docs.
([@watilde](https://github.com/watilde))
* [`9f87bb1`](https://github.com/npm/npm/commit/9f87bb1934acb33b678c17b7827165b17c071a82)
[#11441](https://github.com/npm/npm/pull/11441)
Remove Google Group email from npm docs about contributing.
([@watilde](https://github.com/watilde))
* [`93eaab3`](https://github.com/npm/npm/commit/93eaab3ee5ad16c7d90d1a4b38a95403fcf3f0f6)
[#11474](https://github.com/npm/npm/pull/11474)
Fix an invalid JSON error overlooked in
[#11196](https://github.com/npm/npm/pull/11196).
([@robludwig](https://github.com/robludwig))
* [`a407ca2`](https://github.com/npm/npm/commit/a407ca2bcf6a05117e55cf2ab69376e09094995e)
[#11483](https://github.com/npm/npm/pull/11483)
Add more details and an example to the documentation for bundledDependencies.
([@gnerkus](https://github.com/gnerkus))
* [`2c851a2`](https://github.com/npm/npm/commit/2c851a231afd874baa77c42ea5ba539c454ac79c)
[#11490](https://github.com/npm/npm/pull/11490)
Document the `--registry` flag for `npm search`.
([@plumlee](https://github.com/plumlee))

### v2.14.21 (2016-02-25):

Good news, everyone! There's a new LTS release with a few shinies here and there!

#### USE THIS ONE INSTEAD

We had some cases where the versions of npm and node used in some scripting situations were different than the ideal, or what folks actually expected. These should be particularly helpful to our Windows friends! <3

* [`02813c5`](https://github.com/npm/npm/commit/02813c55782a9def23f7f1e614edc38c6c88aed3) [#9253](https://github.com/npm/npm/issues/9253) Fix a bug where, when running lifecycle scripts, if the Node.js binary you ran `npm` with wasn't in your `PATH`, `npm` wouldn't use it to run your scripts. ([@segrey](https://github.com/segrey) and [@narqo](https://github.com/narqo))
* [`a985dd5`](https://github.com/npm/npm/commit/a985dd50e06ee51ba5544577f977c7440c227ba2) [#11526](https://github.com/npm/npm/pull/11526) Prefer locally installed npm in Git Bash -- previous behavior was to use the global one. This was done previously for other shells, but not for Git Bash. ([@destroyerofbuilds](https://github.com/destroyerofbuilds))

#### SOCKS FOR THE SOCK GOD

* [`f961092`](https://github.com/npm/npm/commit/f9610920079d8b88ae464b30007a92c594bd85a8)
[#11636.](https://github.com/npm/npm/issues/11636.)
Document the `--save-bundle` option for `npm install`.
([@datyayu](https://github.com/datyayu))
* [`7c908b6`](https://github.com/npm/npm/commit/7c908b618f7123f0a3b860c71eb779e33df35964)
[#11644](https://github.com/npm/npm/pull/11644)
Add documentation for the `test` directory for packages.
([@lewiscowper](https://github.com/lewiscowper))

#### INTERNAL TEST IMPROVEMENTS

The npm CLI team's time recently has been sunk into npm's many years of tech debt. Specifically, we've been working on improving the test suite. This isn't user visible, but in future should mean a more stable, easier to contribute to npm. Ordinarily we don't report these kinds of changes in the change log, but I thought I might share this week as this chunk is bigger than usual.

These patches were previously released for `npm@3`, and then ported back to `npm@2` LTS.

* [`437c537`](https://github.com/npm/npm/commit/437c537e2be5923c6d2c2753154564ba13db8fd9) [#11613](https://github.com/npm/npm/pull/11613) Fix up one of the tests after rebasing the legacy test rewrite to `npm@2`. ([@zkat](https://github.com/zkat))
* [`55abd0c`](https://github.com/npm/npm/commit/55abd0cc20e87a144d33ce2d459f65e7506da576) [#11613](https://github.com/npm/npm/pull/11613) Test that the `package.json` `files` section and `.npmignore` do what they're supposed to. ([@zkat](https://github.com/zkat))
* [`a2b99b6`](https://github.com/npm/npm/commit/a2b99b6273ada14b2121ebc0acb7933e630edd9d) [#11613](https://github.com/npm/npm/pull/11613) Test that npm's distribution binary is complete and can be installed and used. ([@iarna](https://github.com/iarna))
* [`8a8c36c`](https://github.com/npm/npm/commit/8a8c36ce51166006022e5c5d4f8655bbc458d651) [#11613](https://github.com/npm/npm/pull/11613) Test that environment variables are properly passed into scripts.
([@iarna](https://github.com/zkat))
* [`a95b550`](https://github.com/npm/npm/commit/a95b5507616bd51e83d7eab5f2337b1aff6480b1) [#11613](https://github.com/npm/npm/pull/11613) Test that we don't leak auth info into the environment. ([@iarna](https://github.com/iarna))
* [`a1c1c52`](https://github.com/npm/npm/commit/a1c1c52efeab24f6dba154d054f85d9efc833486) [#11613](https://github.com/npm/npm/pull/11613) Remove all the relatively cryptic legacy tests and creates new tap tests that check the same functionality. The *legacy* tests were tests that were originally a shell script that was ported to javascript early in `npm`'s history. ([@iarna](https:\\github.com/iarna) and [@zkat](https://github.com/zkat))
* [`9d89581`](https://github.com/npm/npm/commit/9d895811d3ee70c2e672f3d8fa06574495b5b488) [#11613](https://github.com/npm/npm/pull/11613) `[email protected]`: Add a package that provides a tool to generate fixtures from folders and, relatedly, a module that an create and tear down filesystem fixtures easily. ([@iarna](https://github.com/iarna))

### v2.14.20 (2016-02-18):

Hope y'all are having a nice week! As usual, it's a fairly limited release. The
Expand Down
7 changes: 7 additions & 0 deletions deps/npm/bin/npm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ fi
NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"

case `uname` in
*MINGW*)
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
if [ -f "$NPM_PREFIX_NPM_CLI_JS" ]; then
NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
fi
;;
*CYGWIN*)
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
Expand Down
10 changes: 7 additions & 3 deletions deps/npm/doc/cli/npm-adduser.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ npm-adduser(1) -- Add a registry user account

npm adduser [--registry=url] [--scope=@orgname] [--always-auth]

aliases: login, add-user

## DESCRIPTION

Create or verify a user named `<username>` in the specified registry, and
Expand Down Expand Up @@ -57,9 +59,11 @@ registries. Can be used with `--registry` and / or `--scope`, e.g.
npm adduser --registry=http://private-registry.example.com --always-auth

This will ensure that all requests to that registry (including for tarballs)
include an authorization header. See `always-auth` in `npm-config(7)` for more
details on always-auth. Registry-specific configuration of `always-auth` takes
precedence over any global configuration.
include an authorization header. This setting may be necessary for use with
private registries where metadata and package tarballs are stored on hosts with
different hostnames. See `always-auth` in `npm-config(7)` for more details on
always-auth. Registry-specific configuration of `always-auth` takes precedence
over any global configuration.

## SEE ALSO

Expand Down
2 changes: 2 additions & 0 deletions deps/npm/doc/cli/npm-bugs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ npm-bugs(1) -- Bugs for a package in a web browser maybe
npm bugs <pkgname>
npm bugs (with no args in a package dir)

aliases: issues

## DESCRIPTION

This command tries to guess at the likely location of a package's
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/doc/cli/npm-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ npm-config(1) -- Manage the npm configuration files
npm get <key>
npm set <key> <value> [--global]

aliases: c

## DESCRIPTION

npm gets its config settings from the command line, environment
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/doc/cli/npm-dedupe.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ npm-dedupe(1) -- Reduce duplication
npm dedupe [package names...]
npm ddp [package names...]

aliases: find-dupes, ddp

## DESCRIPTION

Searches the local package tree and attempts to simplify the overall
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/doc/cli/npm-dist-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ npm-dist-tag(1) -- Modify package distribution tags
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [<pkg>]

aliases: dist-tags

## DESCRIPTION

Add, remove, and enumerate distribution tags on a package:
Expand Down
9 changes: 4 additions & 5 deletions deps/npm/doc/cli/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm-install(1) -- Install a package
npm install <tarball file>
npm install <tarball url>
npm install <folder>
npm install [@<scope>/]<name> [--save|--save-dev|--save-optional] [--save-exact]
npm install [@<scope>/]<name> [--save|--save-dev|--save-optional] [--save-exact] [--save-bundle]
npm install [@<scope>/]<name>@<tag>
npm install [@<scope>/]<name>@<version>
npm install [@<scope>/]<name>@<version range>
Expand Down Expand Up @@ -95,15 +95,13 @@ after packing it up into a tarball (b).
* `--save-optional`: Package will appear in your `optionalDependencies`.

When using any of the above options to save dependencies to your
package.json, there is an additional, optional flag:
package.json, there are two additional, optional flags:

* `--save-exact`: Saved dependencies will be configured with an
exact version rather than using npm's default semver range
operator.

`<scope>` is optional. The package will be downloaded from the registry
associated with the specified scope. If no registry is associated with
the given scope the default registry is assumed. See `npm-scope(7)`.
* `-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.

Note: if you do not include the @-symbol on your scope name, npm will
interpret this as a GitHub repository instead, see below. Scopes names
Expand All @@ -117,6 +115,7 @@ after packing it up into a tarball (b).
npm install node-tap --save-dev
npm install dtrace-provider --save-optional
npm install readable-stream --save --save-exact
npm install ansi-regex --save --save-bundle


**Note**: If there is a file or folder named `<name>` in the current
Expand Down
11 changes: 6 additions & 5 deletions deps/npm/doc/cli/npm-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ npm-link(1) -- Symlink a package folder

Package linking is a two-step process.

First, `npm link` in a package folder will create a globally-installed
symbolic link from `prefix/package-name` to the current folder (see
`npm-config(7)` for the value of `prefix`).
First, `npm link` in a package folder will create a symlink in the global folder
`{prefix}/lib/node_modules/<package>` that links to the package where the `npm
link` command was executed. (see `npm-config(7)` for the value of `prefix`).

Next, in some other location, `npm link package-name` will create a
symlink from the local `node_modules` folder to the global symlink.
symbolic link from globally-installed `package-name` to `node_modules/`
of the current folder.

Note that `package-name` is taken from `package.json`,
not from directory name.
Expand All @@ -39,7 +40,7 @@ For example:

Now, any changes to ~/projects/node-redis will be reflected in
~/projects/node-bloggy/node_modules/node-redis/. Note that the link should
be to the package name, not the directory name for that package.
be to the package name, not the directory name for that package.

You may also shortcut the two steps in one. For example, to do the
above use-case in a shorter way:
Expand Down
2 changes: 2 additions & 0 deletions deps/npm/doc/cli/npm-owner.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ npm-owner(1) -- Manage package owners
npm owner add <user> <package name>
npm owner rm <user> <package name>

aliases: author

## DESCRIPTION

Manage ownership of published packages.
Expand Down
15 changes: 12 additions & 3 deletions deps/npm/doc/cli/npm-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ npm-search(1) -- Search for packages

## SYNOPSIS

npm search [--long] [search terms ...]
npm s [search terms ...]
npm se [search terms ...]
npm search [-l|--long] [search terms ...]

aliases: s, se, find

## DESCRIPTION

Expand All @@ -27,6 +27,15 @@ lines. When disabled (default) search results are truncated to fit
neatly on a single line. Modules with extremely long names will
fall on multiple lines.

### registry

* Default: https://registry.npmjs.org/
* Type : url

Search the specified registry for modules. If you have configured npm to point to a different default registry,
such as your internal private module repository, `npm search` will default to that registry when searching.
Pass a different registry url such as the default above in order to override this setting.

## SEE ALSO

* npm-registry(7)
Expand Down
3 changes: 2 additions & 1 deletion deps/npm/doc/cli/npm-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ npm-test(1) -- Test a package
## SYNOPSIS

npm test [-- <args>]
npm tst [-- <args>]

aliases: t, tst

## DESCRIPTION

Expand Down
Loading