Skip to content

Commit 2fbbc9f

Browse files
authored
Merge branch 'master' into patch-stream-highwatermark
2 parents 7603a4b + 7afa7b9 commit 2fbbc9f

File tree

524 files changed

+19574
-8314
lines changed

Some content is hidden

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

524 files changed

+19574
-8314
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ release.
3333
</tr>
3434
<tr>
3535
<td valign="top">
36-
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.1.0">16.1.0</a></b><br/>
36+
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.2.0">16.2.0</a></b><br/>
37+
<a href="doc/changelogs/CHANGELOG_V16.md#16.1.0">16.1.0</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V16.md#16.0.0">16.0.0</a><br/>
3839
</td>
3940
<td valign="top">

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ $(NODE_EXE): build_type:=Release
103103
$(NODE_G_EXE): build_type:=Debug
104104
$(NODE_EXE) $(NODE_G_EXE): config.gypi out/Makefile
105105
$(MAKE) -C out BUILDTYPE=${build_type} V=$(V)
106-
if [ ! -r $@ -o ! -L $@ ]; then \
106+
if [ ! -r $@ ] || [ ! -L $@ ]; then \
107107
ln -fs out/${build_type}/$(NODE_EXE) $@; fi
108108
else
109109
ifeq ($(BUILD_WITH), ninja)
@@ -117,11 +117,11 @@ else
117117
endif
118118
$(NODE_EXE): config.gypi out/Release/build.ninja
119119
ninja -C out/Release $(NINJA_ARGS)
120-
if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Release/$(NODE_EXE) $@; fi
120+
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Release/$(NODE_EXE) $@; fi
121121

122122
$(NODE_G_EXE): config.gypi out/Debug/build.ninja
123123
ninja -C out/Debug $(NINJA_ARGS)
124-
if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
124+
if [ ! -r $@ ] || [ ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
125125
else
126126
$(NODE_EXE) $(NODE_G_EXE):
127127
$(warning This Makefile currently only supports building with 'make' or 'ninja')
@@ -908,7 +908,7 @@ BINARYTAR=$(BINARYNAME).tar
908908
HAS_XZ ?= $(shell command -v xz > /dev/null 2>&1; [ $$? -eq 0 ] && echo 1 || echo 0)
909909
# Supply SKIP_XZ=1 to explicitly skip .tar.xz creation
910910
SKIP_XZ ?= 0
911-
XZ = $(shell [ $(HAS_XZ) -eq 1 -a $(SKIP_XZ) -eq 0 ] && echo 1 || echo 0)
911+
XZ = $(shell [ $(HAS_XZ) -eq 1 ] && [ $(SKIP_XZ) -eq 0 ] && echo 1 || echo 0)
912912
XZ_COMPRESSION ?= 9e
913913
PKG=$(TARNAME).pkg
914914
MACOSOUTDIR=out/macos
@@ -949,7 +949,7 @@ release-only: check-xz
949949
echo "" >&2 ; \
950950
exit 1 ; \
951951
fi
952-
@if [ "$(DISTTYPE)" != "release" -o "$(RELEASE)" = "1" ]; then \
952+
@if [ "$(DISTTYPE)" != "release" ] || [ "$(RELEASE)" = "1" ]; then \
953953
exit 0; \
954954
else \
955955
echo "" >&2 ; \
@@ -958,7 +958,7 @@ release-only: check-xz
958958
echo "" >&2 ; \
959959
exit 1 ; \
960960
fi
961-
@if [ "$(RELEASE)" = "0" -o -f "$(CHANGELOG)" ]; then \
961+
@if [ "$(RELEASE)" = "0" ] || [ -f "$(CHANGELOG)" ]; then \
962962
exit 0; \
963963
else \
964964
echo "" >&2 ; \

android-configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export CXX_host=$(command -v g++)
5656
host_gcc_version=$($CC_host --version | grep gcc | awk '{print $NF}')
5757
major=$(echo $host_gcc_version | awk -F . '{print $1}')
5858
minor=$(echo $host_gcc_version | awk -F . '{print $2}')
59-
if [ -z $major ] || [ -z $minor ] || [ $major -lt 6 ] || [ $major -eq 6 -a $minor -lt 3 ]; then
59+
if [ -z $major ] || [ -z $minor ] || [ $major -lt 6 ] || ( [ $major -eq 6 ] && [ $minor -lt 3 ] ); then
6060
echo "host gcc $host_gcc_version is too old, need gcc 6.3.0"
6161
return 1
6262
fi

benchmark/events/ee-add-remove.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
'use strict';
22
const common = require('../common.js');
3-
const events = require('events');
3+
const { EventEmitter } = require('events');
44

5-
const bench = common.createBenchmark(main, { n: [1e6] });
5+
const bench = common.createBenchmark(main, {
6+
newListener: [0, 1],
7+
removeListener: [0, 1],
8+
n: [1e6],
9+
});
610

7-
function main({ n }) {
8-
const ee = new events.EventEmitter();
11+
function main({ newListener, removeListener, n }) {
12+
const ee = new EventEmitter();
913
const listeners = [];
1014

1115
for (let k = 0; k < 10; k += 1)
1216
listeners.push(() => {});
1317

18+
if (newListener === 1)
19+
ee.on('newListener', (event, listener) => {});
20+
21+
if (removeListener === 1)
22+
ee.on('removeListener', (event, listener) => {});
23+
1424
bench.start();
1525
for (let i = 0; i < n; i += 1) {
1626
const dummy = (i % 2 === 0) ? 'dummy0' : 'dummy1';

deps/llhttp/include/llhttp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define LLHTTP_VERSION_MAJOR 6
55
#define LLHTTP_VERSION_MINOR 0
6-
#define LLHTTP_VERSION_PATCH 1
6+
#define LLHTTP_VERSION_PATCH 2
77

88
#ifndef LLHTTP_STRICT_MODE
99
# define LLHTTP_STRICT_MODE 0

deps/llhttp/src/llhttp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ static llparse_state_t llhttp__internal__run(
11031103
case s_n_llhttp__internal__n_consume_content_length:
11041104
s_n_llhttp__internal__n_consume_content_length: {
11051105
size_t avail;
1106-
size_t need;
1106+
uint64_t need;
11071107

11081108
avail = endp - p;
11091109
need = state->content_length;
@@ -1458,7 +1458,7 @@ static llparse_state_t llhttp__internal__run(
14581458
case s_n_llhttp__internal__n_consume_content_length_1:
14591459
s_n_llhttp__internal__n_consume_content_length_1: {
14601460
size_t avail;
1461-
size_t need;
1461+
uint64_t need;
14621462

14631463
avail = endp - p;
14641464
need = state->content_length;
@@ -8677,7 +8677,7 @@ static llparse_state_t llhttp__internal__run(
86778677
case s_n_llhttp__internal__n_consume_content_length:
86788678
s_n_llhttp__internal__n_consume_content_length: {
86798679
size_t avail;
8680-
size_t need;
8680+
uint64_t need;
86818681

86828682
avail = endp - p;
86838683
need = state->content_length;
@@ -9025,7 +9025,7 @@ static llparse_state_t llhttp__internal__run(
90259025
case s_n_llhttp__internal__n_consume_content_length_1:
90269026
s_n_llhttp__internal__n_consume_content_length_1: {
90279027
size_t avail;
9028-
size_t need;
9028+
uint64_t need;
90299029

90309030
avail = endp - p;
90319031
need = state->content_length;

deps/npm/AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,3 +776,4 @@ Marco Sirabella <[email protected]>
776776
777777
Luke Hefson <[email protected]>
778778
779+
Juan Picado <[email protected]>

deps/npm/CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
1+
## v7.14.0 (2021-05-20)
2+
3+
### FEATURES
4+
5+
* [`0d1a9d787`](https://github.com/npm/cli/commit/0d1a9d78779dc015242fc03d2dad2039004fa2df)
6+
[#3227](https://github.com/npm/cli/issues/3227)
7+
feat(install): add workspaces support to npm install commands
8+
([@isaacs](https://github.com/isaacs))
9+
* [`c18626f04`](https://github.com/npm/cli/commit/c18626f047e3a0fedd3c86554a4a0a8f27925e77)
10+
[#3250](https://github.com/npm/cli/issues/3250)
11+
feat(ls): add workspaces support
12+
([@ruyadorno](https://github.com/ruyadorno))
13+
* [`41099d395`](https://github.com/npm/cli/commit/41099d3958d08f166313b7eb69b76458f8f9224c)
14+
[#3265](https://github.com/npm/cli/issues/3265)
15+
feat(explain): add workspaces support
16+
([@ruyadorno](https://github.com/ruyadorno))
17+
* [`fde354669`](https://github.com/npm/cli/commit/fde35466915b5ac5958c827fa7e919e1f186db51)
18+
[#3251](https://github.com/npm/cli/issues/3251)
19+
feat(unpublish): add workspace/dry-run support
20+
([@wraithgar](https://github.com/wraithgar))
21+
* [`83df3666c`](https://github.com/npm/cli/commit/83df3666cd82819230fb45f2a40afd531fe3b3c7)
22+
[#3260](https://github.com/npm/cli/issues/3260)
23+
feat(outdated): add workspaces support
24+
([@ruyadorno](https://github.com/ruyadorno))
25+
* [`63a7635f7`](https://github.com/npm/cli/commit/63a7635f7a2225a4edd1fe92f94a563965ac06c7)
26+
[#3217](https://github.com/npm/cli/issues/3217)
27+
feat(pack): add support to json config/output
28+
([@mrmlnc](https://github.com/mrmlnc))
29+
30+
### BUG FIXES
31+
32+
* [`faa12ccc2`](https://github.com/npm/cli/commit/faa12ccc26b5f0790f79b2589780e536f4284491)
33+
[#3253](https://github.com/npm/cli/issues/3253)
34+
fix search description typos
35+
([@juanpicado](https://github.com/juanpicado))
36+
* [`2f5c28a68`](https://github.com/npm/cli/commit/2f5c28a68719e948d2efedf463ebcb35972aaefb)
37+
[#3243](https://github.com/npm/cli/issues/3243)
38+
fix(docs): autogenerate config docs for commands
39+
([@isaacs](https://github.com/isaacs))
40+
41+
### DEPENDENCIES
42+
43+
* [`ec256a14a`](https://github.com/npm/cli/commit/ec256a14aa6eb2bd59fd55dcc6a4bc0148662c4e)
44+
45+
* [`5f15aba86`](https://github.com/npm/cli/commit/5f15aba866026e7c0d6844e6c07a528dc7454f14)
46+
47+
* [`b3add87e6`](https://github.com/npm/cli/commit/b3add87e686968b7af3067c685d2561baf90e397)
48+
[#3262](https://github.com/npm/cli/pull/3262)
49+
50+
* fixed sso login token
51+
152
## v7.13.0 (2021-05-13)
253

54+
### FEATURES
55+
356
* [`076420c14`](https://github.com/npm/cli/commit/076420c149d097056f687e44e21744b743b86e4e)
457
[#3231](https://github.com/npm/cli/issues/3231)
558
feat(publish): add workspace support

deps/npm/docs/content/commands/npm-access.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,30 @@ fail with an HTTP 402 status code (logically enough), unless you use
8181
8282
Management of teams and team memberships is done with the `npm team` command.
8383
84+
### Configuration
85+
86+
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
87+
<!-- automatically generated, do not edit manually -->
88+
#### `registry`
89+
90+
* Default: "https://registry.npmjs.org/"
91+
* Type: URL
92+
93+
The base URL of the npm registry.
94+
95+
#### `otp`
96+
97+
* Default: null
98+
* Type: null or String
99+
100+
This is a one-time password from a two-factor authenticator. It's needed
101+
when publishing or changing package permissions with `npm access`.
102+
103+
If not set, and a registry response fails with a challenge for a one-time
104+
password, npm will prompt on the command line for one.
105+
106+
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
107+
84108
### See Also
85109
86110
* [`libnpmaccess`](https://npm.im/libnpmaccess)

deps/npm/docs/content/commands/npm-adduser.md

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,46 @@ your existing record.
3535

3636
### Configuration
3737

38-
#### registry
38+
<!-- AUTOGENERATED CONFIG DESCRIPTIONS START -->
39+
<!-- automatically generated, do not edit manually -->
40+
#### `registry`
3941

40-
Default: https://registry.npmjs.org/
42+
* Default: "https://registry.npmjs.org/"
43+
* Type: URL
4144

42-
The base URL of the npm package registry. If `scope` is also specified,
43-
this registry will only be used for packages with that scope. `scope` defaults
44-
to the scope of the project directory you're currently in, if any. See [`scope`](/using-npm/scope).
45+
The base URL of the npm registry.
4546

46-
#### scope
47+
#### `scope`
4748

48-
Default: none
49+
* Default: the scope of the current project, if any, or ""
50+
* Type: String
4951

50-
If specified, the user and login credentials given will be associated
51-
with the specified scope. See [`scope`](/using-npm/scope). You can use both at the same time,
52-
e.g.
52+
Associate an operation with a scope for a scoped registry.
5353

54-
```bash
55-
npm adduser --registry=http://myregistry.example.com --scope=@myco
54+
Useful when logging in to or out of a private registry:
55+
56+
```
57+
# log in, linking the scope to the custom registry
58+
npm login --scope=@mycorp --registry=https://registry.mycorp.com
59+
60+
# log out, removing the link and the auth token
61+
npm logout --scope=@mycorp
5662
```
5763

58-
This will set a registry for the given scope and login or create a user for
59-
that registry at the same time.
64+
This will cause `@mycorp` to be mapped to the registry for future
65+
installation of packages specified according to the pattern
66+
`@mycorp/package`.
6067

61-
#### auth-type
68+
This will also cause `npm init` to create a scoped package.
69+
70+
```
71+
# accept all defaults, and create a package named "@foo/whatever",
72+
# instead of just named "whatever"
73+
npm init --scope=@foo --yes
74+
```
6275

63-
* Default: `'legacy'`
64-
* Type: `'legacy'`, `'sso'`, `'saml'`, `'oauth'`
6576

66-
What authentication strategy to use with `adduser`/`login`. Some npm registries
67-
(for example, npmE) might support alternative auth strategies besides classic
68-
username/password entry in legacy npm.
77+
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
6978

7079
### See Also
7180

@@ -74,3 +83,5 @@ username/password entry in legacy npm.
7483
* [npmrc](/configuring-npm/npmrc)
7584
* [npm owner](/commands/npm-owner)
7685
* [npm whoami](/commands/npm-whoami)
86+
* [npm token](/commands/npm-token)
87+
* [npm profile](/commands/npm-profile)

0 commit comments

Comments
 (0)