Skip to content

Commit 39b22bc

Browse files
authored
Merge branch 'nodejs:main' into fix-56692
2 parents d456db7 + e55b02b commit 39b22bc

Some content is hidden

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

49 files changed

+704
-163
lines changed

.github/workflows/create-release-proposal.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ jobs:
7171
git config --local user.name "Node.js GitHub Bot"
7272
7373
- name: Start git node release prepare
74+
# `git update-index` tells git to ignore future changes to the `.sh` file,
75+
# `|| true` is there to ignore the error if such file doesn't exist yet.
7476
# The curl command is to make sure we run the version of the script corresponding to the current workflow.
7577
run: |
76-
git update-index --assume-unchanged tools/actions/create-release-proposal.sh
78+
git update-index --assume-unchanged tools/actions/create-release-proposal.sh || true
7779
curl -fsSLo tools/actions/create-release-proposal.sh https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/create-release-proposal.sh
7880
./tools/actions/create-release-proposal.sh "${RELEASE_DATE}" "${RELEASE_LINE}" "${GITHUB_ACTOR}"
7981
env:

.github/workflows/tools.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ jobs:
284284
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
285285
rm temp-output
286286
steps:
287+
- name: Setup Git config
288+
run: |
289+
git config --global user.name "Node.js GitHub Bot"
290+
git config --global user.email "[email protected]"
287291
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
288292
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
289293
with:
@@ -301,17 +305,15 @@ jobs:
301305
if: env.COMMIT_MSG == '' && (github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id)
302306
run: |
303307
echo "COMMIT_MSG=${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}" >> "$GITHUB_ENV"
304-
- uses: gr2m/create-or-update-pull-request-action@86ec1766034c8173518f61d2075cc2a173fb8c97 # v1.9.4
308+
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
305309
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id
306310
# Creates a PR or update the Action's existing PR, or
307311
# no-op if the base branch is already up-to-date.
308-
env:
309-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
310312
with:
311-
author: Node.js GitHub Bot <[email protected]>
312-
body: This is an automated update of ${{ matrix.id }} to ${{ env.NEW_VERSION }}.
313+
token: ${{ secrets.GH_USER_TOKEN }}
313314
branch: actions/tools-update-${{ matrix.id }} # Custom branch *just* for this Action.
315+
delete-branch: true
314316
commit-message: ${{ env.COMMIT_MSG }}
315317
labels: ${{ matrix.label }}
316318
title: '${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}'
317-
update-pull-request-title-and-body: true
319+
body: This is an automated update of ${{ matrix.id }} to ${{ env.NEW_VERSION }}.

android-configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
99
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
1010
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
1111
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
12-
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
1312
command -v python3 >/dev/null && exec python3 "$0" "$@"
1413
exec python "$0" "$@"
1514
''' "$0" "$@"
@@ -23,7 +22,7 @@ except ImportError:
2322
from distutils.spawn import find_executable as which
2423

2524
print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8))
25+
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9))
2726
if sys.version_info[:2] in acceptable_pythons:
2827
import android_configure
2928
else:

benchmark/es/error-stack.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
const common = require('../common.js');
44
const modPath = require.resolve('../fixtures/simple-error-stack.js');
5+
const nodeModulePath = require.resolve('../fixtures/node_modules/error-stack/simple-error-stack.js');
6+
const Module = require('node:module');
57

68
const bench = common.createBenchmark(main, {
7-
method: ['without-sourcemap', 'sourcemap'],
9+
method: [
10+
'without-sourcemap',
11+
'sourcemap',
12+
'node-modules-without-sourcemap',
13+
'node-module-sourcemap'],
814
n: [1e5],
915
});
1016

11-
function runN(n) {
17+
function runN(n, modPath) {
1218
delete require.cache[modPath];
1319
const mod = require(modPath);
1420
bench.start();
@@ -22,11 +28,23 @@ function main({ n, method }) {
2228
switch (method) {
2329
case 'without-sourcemap':
2430
process.setSourceMapsEnabled(false);
25-
runN(n);
31+
runN(n, modPath);
2632
break;
2733
case 'sourcemap':
2834
process.setSourceMapsEnabled(true);
29-
runN(n);
35+
runN(n, modPath);
36+
break;
37+
case 'node-modules-without-sourcemap':
38+
Module.setSourceMapsSupport(true, {
39+
nodeModules: false,
40+
});
41+
runN(n, nodeModulePath);
42+
break;
43+
case 'node-modules-sourcemap':
44+
Module.setSourceMapsSupport(true, {
45+
nodeModules: true,
46+
});
47+
runN(n, nodeModulePath);
3048
break;
3149
default:
3250
throw new Error(`Unexpected method "${method}"`);

benchmark/fixtures/node_modules/error-stack/simple-error-stack.js

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

benchmark/fixtures/node_modules/error-stack/simple-error-stack.ts

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

configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
99
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
1010
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
1111
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
12-
command -v python3.8 >/dev/null && exec python3.8 "$0" "$@"
1312
command -v python3 >/dev/null && exec python3 "$0" "$@"
1413
exec python "$0" "$@"
1514
''' "$0" "$@"
@@ -23,7 +22,7 @@ except ImportError:
2322
from distutils.spawn import find_executable as which
2423

2524
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8))
25+
acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9))
2726
if sys.version_info[:2] in acceptable_pythons:
2827
import configure
2928
else:

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ def make_bin_override():
21432143
if sys.platform == 'win32':
21442144
raise Exception('make_bin_override should not be called on win32.')
21452145
# If the system python is not the python we are running (which should be
2146-
# python 3.8+), then create a directory with a symlink called `python` to our
2146+
# python 3.9+), then create a directory with a symlink called `python` to our
21472147
# sys.executable. This directory will be prefixed to the PATH, so that
21482148
# other tools that shell out to `python` will use the appropriate python
21492149

doc/api/assert.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -909,11 +909,12 @@ weakSet2.add(obj);
909909

910910
// Comparing different instances fails, even with same contents
911911
assert.deepStrictEqual(weakSet1, weakSet2);
912-
// AssertionError: Expected inputs to be strictly deep-equal:
912+
// AssertionError: Values have same structure but are not reference-equal:
913913
// + actual - expected
914914
//
915-
// + WeakSet { <items unknown> }
916-
// - WeakSet { <items unknown> }
915+
// WeakSet {
916+
// <items unknown>
917+
// }
917918

918919
// Comparing the same instance to itself succeeds
919920
assert.deepStrictEqual(weakSet1, weakSet1);
@@ -1018,11 +1019,12 @@ weakSet2.add(obj);
10181019

10191020
// Comparing different instances fails, even with same contents
10201021
assert.deepStrictEqual(weakSet1, weakSet2);
1021-
// AssertionError: Expected inputs to be strictly deep-equal:
1022+
// AssertionError: Values have same structure but are not reference-equal:
10221023
// + actual - expected
10231024
//
1024-
// + WeakSet { <items unknown> }
1025-
// - WeakSet { <items unknown> }
1025+
// WeakSet {
1026+
// <items unknown>
1027+
// }
10261028

10271029
// Comparing the same instance to itself succeeds
10281030
assert.deepStrictEqual(weakSet1, weakSet1);

doc/api/cli.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,13 @@ Previously gated the entire `import.meta.resolve` feature.
943943
<!-- YAML
944944
added: v8.8.0
945945
changes:
946+
- version:
947+
- v23.6.1
948+
- v22.13.1
949+
- v20.18.2
950+
pr-url: https://github.com/nodejs-private/node-private/pull/629
951+
description: Using this feature with the permission model enabled requires
952+
passing `--allow-worker`.
946953
- version: v12.11.1
947954
pr-url: https://github.com/nodejs/node/pull/29752
948955
description: This flag was renamed from `--loader` to
@@ -956,6 +963,8 @@ changes:
956963
Specify the `module` containing exported [module customization hooks][].
957964
`module` may be any string accepted as an [`import` specifier][].
958965

966+
This feature requires `--allow-worker` if used with the [Permission Model][].
967+
959968
### `--experimental-network-inspection`
960969

961970
<!-- YAML
@@ -1055,6 +1064,14 @@ report is not generated. See the documentation on
10551064
added:
10561065
- v22.3.0
10571066
- v20.18.0
1067+
changes:
1068+
- version:
1069+
- v23.6.1
1070+
- v22.13.1
1071+
- v20.18.2
1072+
pr-url: https://github.com/nodejs-private/node-private/pull/629
1073+
description: Using this feature with the permission model enabled requires
1074+
passing `--allow-worker`.
10581075
-->
10591076

10601077
> Stability: 1.0 - Early development

0 commit comments

Comments
 (0)