Skip to content

Commit 0d05ff7

Browse files
Merge pull request #1013 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents 06676df + a4f609f commit 0d05ff7

Some content is hidden

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

42 files changed

+812
-170
lines changed

.github/label-pr-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ subSystemLabels:
9999
/^lib\/test.js$/: test_runner
100100
/^lib\/internal\/url\.js$/: whatwg-url
101101
/^lib\/internal\/modules\/esm/: esm
102+
/^lib\/internal\/modules/: module
102103
/^lib\/internal\/webstreams/: web streams
103104
/^lib\/internal\/test_runner/: test_runner
104105

.github/workflows/linters.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,21 @@ jobs:
185185
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
186186
with:
187187
persist-credentials: false
188-
- run: tools/lint-readme-lists.mjs
188+
- name: Get team members if possible
189+
id: team_members
190+
run: |
191+
get_list_members() {
192+
TEAM="$1"
193+
QUOTE='"'
194+
gh api "/orgs/nodejs/teams/$TEAM/members" -X GET -f per_page=100 --jq "map(.login) | ${QUOTE}${TEAM}=\(tojson)${QUOTE}"
195+
}
196+
[ -z "$GITHUB_TOKEN" ] || (
197+
get_list_members "collaborators"
198+
get_list_members "issue-triage"
199+
get_list_members "tsc"
200+
) >> "$GITHUB_OUTPUT"
201+
env:
202+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
203+
- run: tools/lint-readme-lists.mjs "$TEAMS"
204+
env:
205+
TEAMS: ${{ tojson(steps.team_members.outputs) }}

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ release.
3838
</tr>
3939
<tr>
4040
<td valign="top">
41-
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.5.1">22.5.1</a></b><br/>
41+
<b><a href="doc/changelogs/CHANGELOG_V22.md#22.6.0">22.6.0</a></b><br/>
42+
<a href="doc/changelogs/CHANGELOG_V22.md#22.5.1">22.5.1</a><br/>
4243
<a href="doc/changelogs/CHANGELOG_V22.md#22.5.0">22.5.0</a><br/>
4344
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.1">22.4.1</a><br/>
4445
<a href="doc/changelogs/CHANGELOG_V22.md#22.4.0">22.4.0</a><br/>

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ maintaining the Node.js project.
738738
**Gireesh Punathil** <<[email protected]>> (he/him)
739739
* [iam-frankqiu](https://github.com/iam-frankqiu) -
740740
**Frank Qiu** <<[email protected]>> (he/him)
741+
* [KevinEady](https://github.com/KevinEady) -
742+
**Kevin Eady** <<[email protected]>> (he/him)
741743
* [kvakil](https://github.com/kvakil) -
742744
**Keyhan Vakil** <<[email protected]>>
743745
* [marsonya](https://github.com/marsonya) -

benchmark/_cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function CLI(usage, settings) {
3333
let mode = 'both'; // Possible states are: [both, option, item]
3434

3535
for (const arg of process.argv.slice(2)) {
36+
if (arg === '--help') this.abort(usage);
3637
if (arg === '--') {
3738
// Only items can follow --
3839
mode = 'item';

benchmark/fs/bench-cpSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
1212

1313
function main({ n }) {
1414
tmpdir.refresh();
15-
const options = { force: true, recursive: true };
15+
const options = { recursive: true };
1616
const src = path.join(__dirname, '../../test/fixtures/copy');
1717
const dest = tmpdir.resolve(`${process.pid}/subdir/cp-bench-${process.pid}`);
1818
bench.start();

benchmark/path/relative-win32.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const bench = common.createBenchmark(main, {
99
['C:\\foo\\bar\\baz', 'C:\\foo\\bar\\baz'].join('|'),
1010
['C:\\foo\\BAR\\BAZ', 'C:\\foo\\bar\\baz'].join('|'),
1111
['C:\\foo\\bar\\baz\\quux', 'C:\\'].join('|'),
12+
['c:\\İ\\a\\İ', 'c:\\İ\\b\\İ\\test.txt', '..\\..\\b\\İ\\test.txt'].join('|'),
1213
],
1314
n: [1e5],
1415
});

deps/acorn/acorn/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## 8.12.1 (2024-07-03)
2+
3+
### Bug fixes
4+
5+
Fix a regression that caused Acorn to no longer run on Node versions <8.10.
6+
7+
## 8.12.0 (2024-06-14)
8+
9+
### New features
10+
11+
Support ES2025 duplicate capture group names in regular expressions.
12+
13+
### Bug fixes
14+
15+
Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.
16+
17+
Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.
18+
19+
Properly recognize \"use strict\" when preceded by a string with an escaped newline.
20+
21+
Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.
22+
23+
Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.
24+
25+
Properly normalize line endings in raw strings of invalid template tokens.
26+
27+
Properly track line numbers for escaped newlines in strings.
28+
29+
Fix a bug that broke line number accounting after a template literal with invalid escape sequences.
30+
131
## 8.11.3 (2023-12-29)
232

333
### Bug fixes

deps/acorn/acorn/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ Options are provided by in a second argument, which should be an
5050
object containing any of these fields (only `ecmaVersion` is
5151
required):
5252

53-
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
54-
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
55-
11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the
56-
latest the library supports). This influences support for strict
57-
mode, the set of reserved words, and support for new syntax
58-
features.
53+
- **ecmaVersion**: Indicates the ECMAScript version to parse. Can be a
54+
number, either in year (`2022`) or plain version number (`6`) form,
55+
or `"latest"` (the latest the library supports). This influences
56+
support for strict mode, the set of reserved words, and support for
57+
new syntax features.
5958

6059
**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
6160
implemented by Acorn. Other proposed new features must be

deps/acorn/acorn/dist/acorn.d.mts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ export type ModuleDeclaration =
562562
| ExportDefaultDeclaration
563563
| ExportAllDeclaration
564564

565-
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock
565+
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator
566566

567567
export function parse(input: string, options: Options): Program
568568

@@ -573,16 +573,15 @@ export function tokenizer(input: string, options: Options): {
573573
[Symbol.iterator](): Iterator<Token>
574574
}
575575

576-
export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | "latest"
576+
export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest"
577577

578578
export interface Options {
579579
/**
580-
* `ecmaVersion` indicates the ECMAScript version to parse. Must be
581-
* either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
582-
* (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
583-
* (the latest version the library supports). This influences
584-
* support for strict mode, the set of reserved words, and support
585-
* for new syntax features.
580+
* `ecmaVersion` indicates the ECMAScript version to parse. Can be a
581+
* number, either in year (`2022`) or plain version number (`6`) form,
582+
* or `"latest"` (the latest the library supports). This influences
583+
* support for strict mode, the set of reserved words, and support for
584+
* new syntax features.
586585
*/
587586
ecmaVersion: ecmaVersion
588587

@@ -733,7 +732,7 @@ export class Parser {
733732
options: Options
734733
input: string
735734

736-
private constructor(options: Options, input: string, startPos?: number)
735+
protected constructor(options: Options, input: string, startPos?: number)
737736
parse(): Program
738737

739738
static parse(input: string, options: Options): Program

0 commit comments

Comments
 (0)