Skip to content

Commit 12b559b

Browse files
authored
Merge branch 'nodejs:main' into android-configure
2 parents 27ff1ab + 7f5679b commit 12b559b

File tree

278 files changed

+5965
-5193
lines changed

Some content is hidden

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

278 files changed

+5965
-5193
lines changed

AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,5 +3503,9 @@ NicoNekoru <66227158+NicoNekoru@users.noreply.github.com>
35033503
SADIK KUZU <sadikkuzu@hotmail.com>
35043504
flakey5 <73616808+flakey5@users.noreply.github.com>
35053505
Saurabh Daware <saurabhdaware99@gmail.com>
3506+
BuShe <bushe.cn@icloud.com>
3507+
Nick Sia <31839263+nicksia-vgw@users.noreply.github.com>
3508+
Basit Chonka <baasit121@icloud.com>
3509+
Jeremiah Gowdy <jgowdy@godaddy.com>
35063510

35073511
# Generated by tools/update-authors.mjs

BUILDING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ file a new issue.
3737
* [Option 1: Manual install](#option-1-manual-install)
3838
* [Option 2: Automated install with Boxstarter](#option-2-automated-install-with-boxstarter)
3939
* [Building Node.js](#building-nodejs-2)
40-
* [Android/Android-based devices (e.g. Firefox OS)](#androidandroid-based-devices-eg-firefox-os)
40+
* [Android](#android)
4141
* [`Intl` (ECMA-402) support](#intl-ecma-402-support)
4242
* [Build with full ICU support (all locales supported by ICU)](#build-with-full-icu-support-all-locales-supported-by-icu)
4343
* [Unix/macOS](#unixmacos)
@@ -647,22 +647,25 @@ To test if Node.js was built correctly:
647647
> Release\node -e "console.log('Hello from Node.js', process.version)"
648648
```
649649

650-
### Android/Android-based devices (e.g. Firefox OS)
650+
### Android
651651

652652
Android is not a supported platform. Patches to improve the Android build are
653653
welcome. There is no testing on Android in the current continuous integration
654654
environment. The participation of people dedicated and determined to improve
655655
Android building, testing, and support is encouraged.
656656

657657
Be sure you have downloaded and extracted
658-
[Android NDK](https://developer.android.com/tools/sdk/ndk/index.html) before in
658+
[Android NDK](https://developer.android.com/ndk) before in
659659
a folder. Then run:
660660

661661
```console
662-
$ ./android-configure /path/to/your/android-ndk
663-
$ make
662+
$ source ./android-configure /path/to/your/android-ndk target_arch android_sdk_version
663+
$ make -j4
664664
```
665665

666+
The Android SDK version should be at least 24 (Android 7.0) and the target
667+
architecture supports \[arm, arm64/aarch64, x86, x86\_64].
668+
666669
## `Intl` (ECMA-402) support
667670

668671
[Intl](https://github.com/nodejs/node/blob/HEAD/doc/api/intl.md) support is

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ release.
6262
<a href="doc/changelogs/CHANGELOG_V17.md#17.0.0">17.0.0</a><br/>
6363
</td>
6464
<td valign="top">
65-
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.16.0">16.16.0</a></b><br/>
65+
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.17.0">16.17.0</a></b><br/>
66+
<a href="doc/changelogs/CHANGELOG_V16.md#16.16.0">16.16.0</a><br/>
6667
<a href="doc/changelogs/CHANGELOG_V16.md#16.15.1">16.15.1</a><br/>
6768
<a href="doc/changelogs/CHANGELOG_V16.md#16.15.0">16.15.0</a><br/>
6869
<a href="doc/changelogs/CHANGELOG_V16.md#16.14.2">16.14.2</a><br/>

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ For information about the governance of the Node.js project, see
296296
**Colin Ihrig** <<cjihrig@gmail.com>> (he/him)
297297
* [codebytere](https://github.com/codebytere) -
298298
**Shelley Vohr** <<shelley.vohr@gmail.com>> (she/her)
299+
* [cola119](https://github.com/cola119) -
300+
**Kohei Ueno** <<kohei.ueno119@gmail.com>> (he/him)
299301
* [danbev](https://github.com/danbev) -
300302
**Daniel Bevenius** <<daniel.bevenius@gmail.com>> (he/him)
301303
* [danielleadams](https://github.com/danielleadams) -
@@ -382,6 +384,8 @@ For information about the governance of the Node.js project, see
382384
**Milad Fa** <<mfarazma@redhat.com>> (he/him)
383385
* [mildsunrise](https://github.com/mildsunrise) -
384386
**Alba Mendez** <<me@alba.sh>> (she/her)
387+
* [MoLow](https://github.com/MoLow) -
388+
**Moshe Atlow** <<moshe@atlow.co.il>> (he/him)
385389
* [mscdex](https://github.com/mscdex) -
386390
**Brian White** <<mscdex@mscdex.net>>
387391
* [MylesBorins](https://github.com/MylesBorins) -

configure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,10 @@ def configure_node(o):
12081208

12091209
o['variables']['want_separate_host_toolset'] = int(cross_compiling)
12101210

1211+
# Enable branch protection for arm64
1212+
if target_arch == 'arm64':
1213+
o['cflags']+=['-msign-return-address=all']
1214+
12111215
if options.node_snapshot_main is not None:
12121216
if options.shared:
12131217
# This should be possible to fix, but we will need to refactor the

deps/corepack/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.12.3](https://github.com/nodejs/corepack/compare/v0.12.2...v0.12.3) (2022-08-12)
4+
5+
6+
### Features
7+
8+
* update package manager versions ([#160](https://github.com/nodejs/corepack/issues/160)) ([ad092a7](https://github.com/nodejs/corepack/commit/ad092a7fb4296143fa5224c04dbd628451b3c158))
9+
310
## [0.12.2](https://github.com/nodejs/corepack/compare/v0.12.1...v0.12.2) (2022-08-05)
411

512
### Features

deps/corepack/dist/corepack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16953,7 +16953,7 @@ const supportsColor = {
1695316953
/***/ ((module) => {
1695416954

1695516955
"use strict";
16956-
module.exports = JSON.parse('{"definitions":{"npm":{"default":"8.16.0+sha1.d385060093f3af10fabe6d8205d41bbf2a34ff9d","transparent":{"commands":[["npm","init"],["npx"]]},"ranges":{"*":{"url":"https://registry.npmjs.org/npm/-/npm-{}.tgz","bin":{"npm":"./bin/npm-cli.js","npx":"./bin/npx-cli.js"},"registry":{"type":"npm","package":"npm"}}}},"pnpm":{"default":"7.8.0+sha1.420c53c7089c0ed6ad659e3b4fce73228f5638ab","transparent":{"commands":[["pnpm","init"],["pnpx"],["pnpm","dlx"]]},"ranges":{"<6.0.0":{"url":"https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz","bin":{"pnpm":"./bin/pnpm.js","pnpx":"./bin/pnpx.js"},"registry":{"type":"npm","package":"pnpm"}},">=6.0.0":{"url":"https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz","bin":{"pnpm":"./bin/pnpm.cjs","pnpx":"./bin/pnpx.cjs"},"registry":{"type":"npm","package":"pnpm"}}}},"yarn":{"default":"1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447","transparent":{"default":"3.2.2+sha224.634d0331703700cabfa9d9389835bd8f7426b0207ed6b74d8d34c81e","commands":[["yarn","dlx"]]},"ranges":{"<2.0.0":{"url":"https://registry.yarnpkg.com/yarn/-/yarn-{}.tgz","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"registry":{"type":"npm","package":"yarn"}},">=2.0.0":{"name":"yarn","url":"https://repo.yarnpkg.com/{}/packages/yarnpkg-cli/bin/yarn.js","bin":["yarn","yarnpkg"],"registry":{"type":"url","url":"https://repo.yarnpkg.com/tags","fields":{"tags":"latest","versions":"tags"}}}}}}}');
16956+
module.exports = JSON.parse('{"definitions":{"npm":{"default":"8.17.0+sha1.05c77fb2794daa3d9b2cd0460859f1f9dc596676","transparent":{"commands":[["npm","init"],["npx"]]},"ranges":{"*":{"url":"https://registry.npmjs.org/npm/-/npm-{}.tgz","bin":{"npm":"./bin/npm-cli.js","npx":"./bin/npx-cli.js"},"registry":{"type":"npm","package":"npm"}}}},"pnpm":{"default":"7.9.0+sha1.4226ed225337fd55f9ff7736b67048dffe1d7b16","transparent":{"commands":[["pnpm","init"],["pnpx"],["pnpm","dlx"]]},"ranges":{"<6.0.0":{"url":"https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz","bin":{"pnpm":"./bin/pnpm.js","pnpx":"./bin/pnpx.js"},"registry":{"type":"npm","package":"pnpm"}},">=6.0.0":{"url":"https://registry.npmjs.org/pnpm/-/pnpm-{}.tgz","bin":{"pnpm":"./bin/pnpm.cjs","pnpx":"./bin/pnpx.cjs"},"registry":{"type":"npm","package":"pnpm"}}}},"yarn":{"default":"1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447","transparent":{"default":"3.2.2+sha224.634d0331703700cabfa9d9389835bd8f7426b0207ed6b74d8d34c81e","commands":[["yarn","dlx"]]},"ranges":{"<2.0.0":{"url":"https://registry.yarnpkg.com/yarn/-/yarn-{}.tgz","bin":{"yarn":"./bin/yarn.js","yarnpkg":"./bin/yarn.js"},"registry":{"type":"npm","package":"yarn"}},">=2.0.0":{"name":"yarn","url":"https://repo.yarnpkg.com/{}/packages/yarnpkg-cli/bin/yarn.js","bin":["yarn","yarnpkg"],"registry":{"type":"url","url":"https://repo.yarnpkg.com/tags","fields":{"tags":"latest","versions":"tags"}}}}}}}');
1695716957

1695816958
/***/ }),
1695916959

@@ -16964,7 +16964,7 @@ module.exports = JSON.parse('{"definitions":{"npm":{"default":"8.16.0+sha1.d3850
1696416964
/***/ ((module) => {
1696516965

1696616966
"use strict";
16967-
module.exports = JSON.parse('{"name":"corepack","version":"0.12.2","homepage":"https://github.com/nodejs/corepack#readme","bugs":{"url":"https://github.com/nodejs/corepack/issues"},"repository":{"type":"git","url":"https://github.com/nodejs/corepack.git"},"license":"MIT","packageManager":"yarn@4.0.0-rc.14+sha224.d3bee29dce07417588d640327d44f1e0b8182c240bc2beb0b81ccf6e","devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-modules-commonjs":"^7.14.0","@babel/preset-typescript":"^7.13.0","@types/debug":"^4.1.5","@types/jest":"^28.0.0","@types/node":"^18.0.0","@types/semver":"^7.1.0","@types/tar":"^6.0.0","@types/which":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","@yarnpkg/eslint-config":"^1.0.0-rc.5","@yarnpkg/fslib":"^2.1.0","@zkochan/cmd-shim":"^5.0.0","babel-plugin-dynamic-import-node":"^2.3.3","clipanion":"^3.0.1","debug":"^4.1.1","eslint":"^8.0.0","eslint-plugin-arca":"^0.15.0","jest":"^28.0.0","nock":"^13.0.4","proxy-agent":"^5.0.0","semver":"^7.1.3","supports-color":"^9.0.0","tar":"^6.0.1","terser-webpack-plugin":"^5.1.2","ts-loader":"^9.0.0","ts-node":"^10.0.0","typescript":"^4.3.2","v8-compile-cache":"^2.3.0","webpack":"^5.38.1","webpack-cli":"^4.0.0","which":"^2.0.2"},"scripts":{"build":"rm -rf dist shims && webpack && ts-node ./mkshims.ts","corepack":"ts-node ./sources/_entryPoint.ts","lint":"yarn eslint","prepack":"yarn build","postpack":"rm -rf dist shims","typecheck":"tsc --noEmit","test":"yarn jest"},"files":["dist","shims","LICENSE.md"],"publishConfig":{"bin":{"corepack":"./dist/corepack.js","pnpm":"./dist/pnpm.js","pnpx":"./dist/pnpx.js","yarn":"./dist/yarn.js","yarnpkg":"./dist/yarnpkg.js"},"executableFiles":["./dist/npm.js","./dist/npx.js","./dist/pnpm.js","./dist/pnpx.js","./dist/yarn.js","./dist/yarnpkg.js","./dist/corepack.js","./shims/npm","./shims/npm.ps1","./shims/npx","./shims/npx.ps1","./shims/pnpm","./shims/pnpm.ps1","./shims/pnpx","./shims/pnpx.ps1","./shims/yarn","./shims/yarn.ps1","./shims/yarnpkg","./shims/yarnpkg.ps1"]},"resolutions":{"vm2":"patch:vm2@npm:3.9.9#.yarn/patches/vm2-npm-3.9.9-03fd1f4dc5.patch"}}');
16967+
module.exports = JSON.parse('{"name":"corepack","version":"0.12.3","homepage":"https://github.com/nodejs/corepack#readme","bugs":{"url":"https://github.com/nodejs/corepack/issues"},"repository":{"type":"git","url":"https://github.com/nodejs/corepack.git"},"license":"MIT","packageManager":"yarn@4.0.0-rc.14+sha224.d3bee29dce07417588d640327d44f1e0b8182c240bc2beb0b81ccf6e","devDependencies":{"@babel/core":"^7.14.3","@babel/plugin-transform-modules-commonjs":"^7.14.0","@babel/preset-typescript":"^7.13.0","@types/debug":"^4.1.5","@types/jest":"^28.0.0","@types/node":"^18.0.0","@types/semver":"^7.1.0","@types/tar":"^6.0.0","@types/which":"^2.0.0","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","@yarnpkg/eslint-config":"^1.0.0-rc.5","@yarnpkg/fslib":"^2.1.0","@zkochan/cmd-shim":"^5.0.0","babel-plugin-dynamic-import-node":"^2.3.3","clipanion":"^3.0.1","debug":"^4.1.1","eslint":"^8.0.0","eslint-plugin-arca":"^0.15.0","jest":"^28.0.0","nock":"^13.0.4","proxy-agent":"^5.0.0","semver":"^7.1.3","supports-color":"^9.0.0","tar":"^6.0.1","terser-webpack-plugin":"^5.1.2","ts-loader":"^9.0.0","ts-node":"^10.0.0","typescript":"^4.3.2","v8-compile-cache":"^2.3.0","webpack":"^5.38.1","webpack-cli":"^4.0.0","which":"^2.0.2"},"scripts":{"build":"rm -rf dist shims && webpack && ts-node ./mkshims.ts","corepack":"ts-node ./sources/_entryPoint.ts","lint":"yarn eslint","prepack":"yarn build","postpack":"rm -rf dist shims","typecheck":"tsc --noEmit","test":"yarn jest"},"files":["dist","shims","LICENSE.md"],"publishConfig":{"bin":{"corepack":"./dist/corepack.js","pnpm":"./dist/pnpm.js","pnpx":"./dist/pnpx.js","yarn":"./dist/yarn.js","yarnpkg":"./dist/yarnpkg.js"},"executableFiles":["./dist/npm.js","./dist/npx.js","./dist/pnpm.js","./dist/pnpx.js","./dist/yarn.js","./dist/yarnpkg.js","./dist/corepack.js","./shims/npm","./shims/npm.ps1","./shims/npx","./shims/npx.ps1","./shims/pnpm","./shims/pnpm.ps1","./shims/pnpx","./shims/pnpx.ps1","./shims/yarn","./shims/yarn.ps1","./shims/yarnpkg","./shims/yarnpkg.ps1"]},"resolutions":{"vm2":"patch:vm2@npm:3.9.9#.yarn/patches/vm2-npm-3.9.9-03fd1f4dc5.patch"}}');
1696816968

1696916969
/***/ })
1697016970

deps/corepack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.12.2",
3+
"version": "0.12.3",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"

deps/npm/docs/content/using-npm/dependency-selectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ arb.loadActual((tree) => {
165165
## See Also
166166

167167
* [npm query](/commands/npm-query)
168-
* [@npmcli/arborist](https://npm.im/@npmcli/arborist]
168+
* [@npmcli/arborist](https://npm.im/@npmcli/arborist)

deps/npm/docs/output/commands/npm-ls.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ <h3 id="description">Description</h3>
166166
the results to only the paths to the packages named. Note that nested
167167
packages will <em>also</em> show the paths to the specified packages. For
168168
example, running <code>npm ls promzard</code> in npm's source tree will show:</p>
169-
<pre lang="bash"><code>npm@8.16.0 /path/to/npm
169+
<pre lang="bash"><code>npm@8.17.0 /path/to/npm
170170
└─┬ init-package-json@0.0.4
171171
└── promzard@0.1.5
172172
</code></pre>

deps/npm/docs/output/commands/npm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ <h2 id="table-of-contents">Table of contents</h2>
149149
<!-- raw HTML omitted -->
150150
<!-- raw HTML omitted -->
151151
<h3 id="version">Version</h3>
152-
<p>8.16.0</p>
152+
<p>8.17.0</p>
153153
<h3 id="description">Description</h3>
154154
<p>npm is the package manager for the Node JavaScript platform. It puts
155155
modules in place so that node can find them, and manages dependency

deps/npm/docs/output/using-npm/dependency-selectors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h3 id="programmatic-usage">Programmatic Usage</h3>
282282
<h2 id="see-also">See Also</h2>
283283
<ul>
284284
<li><a href="../commands/npm-query.html">npm query</a></li>
285-
<li>[@npmcli/arborist](<a href="https://npm.im/@npmcli/arborist%5D">https://npm.im/@npmcli/arborist]</a></li>
285+
<li><a href="https://npm.im/@npmcli/arborist">@npmcli/arborist</a></li>
286286
</ul>
287287
</div>
288288

deps/npm/lib/commands/exec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Exec extends BaseCommand {
3434

3535
const args = [..._args]
3636
const call = this.npm.config.get('call')
37+
let globalPath
3738
const {
3839
flatOptions,
3940
localBin,
@@ -44,6 +45,12 @@ class Exec extends BaseCommand {
4445
const scriptShell = this.npm.config.get('script-shell') || undefined
4546
const packages = this.npm.config.get('package')
4647
const yes = this.npm.config.get('yes')
48+
// --prefix sets both of these to the same thing, meaning the global prefix
49+
// is invalid (i.e. no lib/node_modules). This is not a trivial thing to
50+
// untangle and fix so we work around it here.
51+
if (this.npm.localPrefix !== this.npm.globalPrefix) {
52+
globalPath = path.resolve(globalDir, '..')
53+
}
4754

4855
if (call && _args.length) {
4956
throw this.usageError()
@@ -59,7 +66,7 @@ class Exec extends BaseCommand {
5966
localBin,
6067
locationMsg,
6168
globalBin,
62-
globalPath: path.resolve(globalDir, '..'),
69+
globalPath,
6370
output,
6471
packages,
6572
path: localPrefix,

deps/npm/lib/commands/query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Query extends BaseCommand {
5858
const opts = {
5959
...this.npm.flatOptions,
6060
path: where,
61+
forceActual: true,
6162
}
6263
const arb = new Arborist(opts)
6364
const tree = await arb.loadActual(opts)

deps/npm/man/man1/npm-ls.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ example, running \fBnpm ls promzard\fP in npm's source tree will show:
2626
.P
2727
.RS 2
2828
.nf
29-
npm@8\.16\.0 /path/to/npm
29+
npm@8\.17\.0 /path/to/npm
3030
└─┬ init\-package\-json@0\.0\.4
3131
└── promzard@0\.1\.5
3232
.fi

deps/npm/man/man1/npm.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.SS Synopsis
55
.SS Version
66
.P
7-
8\.16\.0
7+
8\.17\.0
88
.SS Description
99
.P
1010
npm is the package manager for the Node JavaScript platform\. It puts

deps/npm/man/man7/dependency-selectors.7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,6 @@ arb\.loadActual((tree) => {
240240
.IP \(bu 2
241241
npm help query
242242
.IP \(bu 2
243-
[@npmcli/arborist](https://npm\.im/@npmcli/arborist]
243+
@npmcli/arborist \fIhttps://npm\.im/@npmcli/arborist\fR
244244

245245
.RE

deps/npm/node_modules/@npmcli/arborist/lib/arborist/load-actual.js

Lines changed: 20 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/@npmcli/arborist/package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/@npmcli/config/lib/index.js

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/npm/node_modules/@npmcli/config/package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)