Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
0ea74f3
test,crypto: make crypto tests work with BoringSSL
codebytere Oct 24, 2024
69dd1e1
module: add module.stripTypeScriptTypes
marco-ippolito Oct 24, 2024
9dcca54
doc: add jazelly to collaborators
jazelly Oct 25, 2024
2d19614
test: increase test coverage for `http.OutgoingMessage.appendHeader()`
juanarbol Oct 25, 2024
adda37f
module: add `findPackageJSON` util
JakobJingleheimer Oct 25, 2024
88c7f5b
sqlite: refactor open options
tniessen Oct 26, 2024
53a7d8e
test,crypto: update WebCryptoAPI WPT
panva Oct 26, 2024
1b82013
deps: update undici to 6.20.1
nodejs-github-bot Oct 26, 2024
71cc20a
test: avoid `apply()` calls with large amount of elements
LiviaMedeiros Oct 26, 2024
f00ad27
doc: add esm examples to node:string_decoder
mfdebian Oct 26, 2024
649d767
test: increase coverage of `pathToFileURL`
aduh95 Oct 27, 2024
bb78904
build: fix GN build for sqlite and nghttp2
codebytere Oct 27, 2024
f77bf65
doc: add suggested tsconfig for type stripping
marco-ippolito Oct 27, 2024
fa61dce
doc: move typescript support to active development
marco-ippolito Oct 27, 2024
f628fc4
fs: make `dirent.path` writable
aduh95 Oct 28, 2024
f8df27a
build: fix GN arg used in generate_config_gypi.py
codebytere Oct 28, 2024
a9e08cf
module: allow ESM that failed to be required to be re-imported
joyeecheung Oct 28, 2024
f92f20b
http: don't emit error after destroy
ronag Oct 28, 2024
efa142c
src: migrate `String::Value` to `String::ValueView`
avivkeller Oct 29, 2024
50552fd
deps: update acorn to 8.13.0
nodejs-github-bot Oct 29, 2024
3a1d490
deps: update nghttp2 to 1.64.0
nodejs-github-bot Oct 29, 2024
016baae
src: do not run IsWindowsBatchFile on non-windows
anonrig Oct 29, 2024
b3971bb
module: trim off internal stack frames for require(esm) warnings
joyeecheung Oct 18, 2024
d3be3da
module: fix error thrown from require(esm) hitting TLA repeatedly
joyeecheung Oct 29, 2024
6aa797d
test: remove unneeded listeners
lpinca Oct 29, 2024
4887214
build: fix building with system icu 76
cho-m Oct 29, 2024
815e252
test: split up test-runner-mock-timers test
badkeyy Oct 30, 2024
f355054
doc: capitalize "MIT License"
avivkeller Oct 30, 2024
0906004
dns: stop using deprecated `ares_query`
avivkeller Oct 30, 2024
4676184
src: use NewFromUtf8Literal in NODE_DEFINE_CONSTANT
ckerr Oct 31, 2024
2ec4ae7
sqlite: add readOnly option
tniessen Oct 31, 2024
25b1422
http: add diagnostic channel `http.client.request.created`
marco-ippolito Oct 31, 2024
56c46ab
module: unify TypeScript and .mjs handling in CommonJS
joyeecheung Oct 31, 2024
137aa5c
http2: fix client async storage persistence
orgads Oct 31, 2024
2b99285
url: refactor `pathToFileURL` to native
aduh95 Oct 31, 2024
4c34891
src: fix dns crash when failed to create NodeAresTask
theanarkh Nov 1, 2024
5de2567
doc: improve c++ embedder API doc
gireeshpunathil Nov 1, 2024
3477492
deps: update amaro to 0.2.0
nodejs-github-bot Nov 1, 2024
3234dc6
test_runner: pass `options` directly to `TestCoverage`
avivkeller Nov 1, 2024
cfa4d96
src,lib: optimize nodeTiming.uvMetricsInfo
RafaelGSS Oct 30, 2024
34483a2
benchmark: add nodeTiming.uvmetricsinfo bench
RafaelGSS Oct 31, 2024
b1ca7ab
meta: show PR/issue title on review-wanted
avivkeller Nov 1, 2024
7ab1f46
build: stop pre-compiling `lint-md`
avivkeller Nov 1, 2024
b79e483
build: use rclone instead of aws CLI
targos Nov 2, 2024
d26dedf
src: refactor ECDHBitsJob signature
panva Nov 2, 2024
9743fa4
doc: remove mention of ECDH-ES in crypto.diffieHellman
panva Nov 2, 2024
6662752
doc: add a note on console stream behavior
gireeshpunathil Nov 2, 2024
8d0526f
http: add diagnostic channel `http.server.response.created`
marco-ippolito Nov 2, 2024
7ce7eab
tools: lint README lists more strictly
aduh95 Nov 2, 2024
0302efe
src: move more key related stuff to ncrypto
jasnell Nov 2, 2024
6ab59c8
os: improve path check with direct index access
mertcanaltin Nov 2, 2024
7af76ef
assert: fix the string length check for printing the simple diff
Nov 2, 2024
869e88c
module: simplify `findPackageJSON` implementation
aduh95 Nov 2, 2024
d0ea981
meta: make review-wanted message minimal
avivkeller Nov 2, 2024
dd9b683
Revert "fs,win: fix bug in paths with trailing slashes"
rvagg Nov 2, 2024
c2fcda4
typings: fix `ModulesBinding` types
aduh95 Nov 2, 2024
b8ca9d8
doc: add write flag when open file as the demo code's intention
robberfree Nov 2, 2024
505ff19
doc: broken `PerformanceObserver` code sample
domharrington Nov 2, 2024
cba05cd
tools: run daily WPT.fyi report on all supported releases
panva Nov 2, 2024
d0b2d6b
tools: compact jq output in daily-wpt-fyi.yml action
panva Nov 2, 2024
dfb764c
deps: update sqlite to 3.47.0
nodejs-github-bot Nov 2, 2024
9b351b0
crypto: fix `RSA_PKCS1_PADDING` error message
richardlau Nov 3, 2024
19b1edf
module: simplify --inspect-brk handling
joyeecheung Nov 3, 2024
d79c8bf
meta: bump github/codeql-action from 3.26.10 to 3.27.0
dependabot[bot] Nov 3, 2024
5c2e472
meta: bump actions/checkout from 4.2.0 to 4.2.2
dependabot[bot] Nov 3, 2024
9042e9a
meta: bump actions/cache from 4.0.2 to 4.1.2
dependabot[bot] Nov 3, 2024
42e6c47
meta: bump actions/upload-artifact from 4.4.0 to 4.4.3
dependabot[bot] Nov 3, 2024
2ae8d3b
meta: bump rtCamp/action-slack-notify from 2.3.0 to 2.3.2
dependabot[bot] Nov 3, 2024
21e3b7b
meta: bump actions/setup-node from 4.0.4 to 4.1.0
dependabot[bot] Nov 3, 2024
7bfd295
meta: bump actions/setup-python from 5.2.0 to 5.3.0
dependabot[bot] Nov 3, 2024
8fc962f
tools: fix root certificate updater
richardlau Nov 1, 2024
535f1b0
crypto: update root certificates to NSS 3.104
richardlau Nov 1, 2024
7aa250a
sqlite: improve error handling using MaybeLocal
tniessen Nov 4, 2024
961cbc9
tools: use `util.parseArgs` in `lint-md`
avivkeller Nov 4, 2024
4b192da
deps: update acorn to 8.14.0
nodejs-github-bot Nov 5, 2024
aebf676
test,crypto: update WebCryptoAPI WPT
panva Nov 5, 2024
bf552fa
lib: prefer number to string in webidl `type` function
jazelly Oct 24, 2024
d1965f9
lib: implement webidl dictionary converter and use it in structuredClone
jazelly Oct 20, 2024
bffbaa1
doc: update `--max-semi-space-size` description
joebowbeer Nov 5, 2024
038ac01
path,win: fix bug in resolve and normalize
huseyinacacak-janea Nov 5, 2024
15028dd
tools: update ESLint to 9.14.0
dependabot[bot] Nov 5, 2024
7d93c0c
test: refactor some esm tests
aduh95 Nov 5, 2024
9dbb255
assert: fix `deepStrictEqual` on errors when `cause` is not undefined
geeksilva97 Nov 5, 2024
10b68ed
test: ignore unrelated events in FW watch tests
Ceres6 Nov 6, 2024
7853462
src: provide workaround for container-overflow
lemire Nov 6, 2024
20cb52d
doc: clarity to available addon options
preveen-stack Nov 6, 2024
4129bc7
util: do not catch on circular `@@toStringTag` errors
avivkeller Nov 6, 2024
19da4de
test: update `performance-timeline` wpt
avivkeller Sep 30, 2024
ee12431
doc: consistent use of word child process
gireeshpunathil Nov 6, 2024
89aa838
doc: add esm example in `path.md`
avivkeller Nov 8, 2024
cbe09b5
doc: add path aliases typescript doc
Ceres6 Nov 8, 2024
355af0f
doc: consolidate history table of `CustomEvent`
geeksilva97 Nov 9, 2024
a83fbdb
2024-11-11, Version 23.2.0 (Current)
aduh95 Nov 6, 2024
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
Prev Previous commit
Next Next commit
deps: update acorn to 8.14.0
PR-URL: #55699
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
nodejs-github-bot authored and aduh95 committed Nov 6, 2024
commit 4b192daac0091ea7fdbb7b7c7648ea9113e81d95
12 changes: 12 additions & 0 deletions deps/acorn/acorn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 8.14.0 (2024-10-27)

### New features

Support ES2025 import attributes.

Support ES2025 RegExp modifiers.

### Bug fixes

Support some missing Unicode properties.

## 8.13.0 (2024-10-16)

### New features
Expand Down
12 changes: 11 additions & 1 deletion deps/acorn/acorn/dist/acorn.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ export interface ImportDeclaration extends Node {
type: "ImportDeclaration"
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>
source: Literal
attributes: Array<ImportAttribute>
}

export interface ImportSpecifier extends Node {
Expand All @@ -421,11 +422,18 @@ export interface ImportNamespaceSpecifier extends Node {
local: Identifier
}

export interface ImportAttribute extends Node {
type: "ImportAttribute"
key: Identifier | Literal
value: Literal
}

export interface ExportNamedDeclaration extends Node {
type: "ExportNamedDeclaration"
declaration?: Declaration | null
specifiers: Array<ExportSpecifier>
source?: Literal | null
attributes: Array<ImportAttribute>
}

export interface ExportSpecifier extends Node {
Expand Down Expand Up @@ -454,6 +462,7 @@ export interface ExportAllDeclaration extends Node {
type: "ExportAllDeclaration"
source: Literal
exported?: Identifier | Literal | null
attributes: Array<ImportAttribute>
}

export interface AwaitExpression extends Node {
Expand All @@ -469,6 +478,7 @@ export interface ChainExpression extends Node {
export interface ImportExpression extends Node {
type: "ImportExpression"
source: Expression
options: Expression | null
}

export interface ParenthesizedExpression extends Node {
Expand Down Expand Up @@ -562,7 +572,7 @@ export type ModuleDeclaration =
| ExportDefaultDeclaration
| ExportAllDeclaration

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
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportAttribute | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator

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

Expand Down
12 changes: 11 additions & 1 deletion deps/acorn/acorn/dist/acorn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ export interface ImportDeclaration extends Node {
type: "ImportDeclaration"
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>
source: Literal
attributes: Array<ImportAttribute>
}

export interface ImportSpecifier extends Node {
Expand All @@ -421,11 +422,18 @@ export interface ImportNamespaceSpecifier extends Node {
local: Identifier
}

export interface ImportAttribute extends Node {
type: "ImportAttribute"
key: Identifier | Literal
value: Literal
}

export interface ExportNamedDeclaration extends Node {
type: "ExportNamedDeclaration"
declaration?: Declaration | null
specifiers: Array<ExportSpecifier>
source?: Literal | null
attributes: Array<ImportAttribute>
}

export interface ExportSpecifier extends Node {
Expand Down Expand Up @@ -454,6 +462,7 @@ export interface ExportAllDeclaration extends Node {
type: "ExportAllDeclaration"
source: Literal
exported?: Identifier | Literal | null
attributes: Array<ImportAttribute>
}

export interface AwaitExpression extends Node {
Expand All @@ -469,6 +478,7 @@ export interface ChainExpression extends Node {
export interface ImportExpression extends Node {
type: "ImportExpression"
source: Expression
options: Expression | null
}

export interface ParenthesizedExpression extends Node {
Expand Down Expand Up @@ -562,7 +572,7 @@ export type ModuleDeclaration =
| ExportDefaultDeclaration
| ExportAllDeclaration

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
export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportAttribute | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator

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

Expand Down
135 changes: 122 additions & 13 deletions deps/acorn/acorn/dist/acorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,8 @@
this.expectContextual("from");
if (this.type !== types$1.string) { this.unexpected(); }
node.source = this.parseExprAtom();
if (this.options.ecmaVersion >= 16)
{ node.attributes = this.parseWithClause(); }
this.semicolon();
return this.finishNode(node, "ExportAllDeclaration")
};
Expand Down Expand Up @@ -1708,6 +1710,8 @@
if (this.eatContextual("from")) {
if (this.type !== types$1.string) { this.unexpected(); }
node.source = this.parseExprAtom();
if (this.options.ecmaVersion >= 16)
{ node.attributes = this.parseWithClause(); }
} else {
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
// check for keywords used as local names
Expand Down Expand Up @@ -1848,6 +1852,8 @@
this.expectContextual("from");
node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();
}
if (this.options.ecmaVersion >= 16)
{ node.attributes = this.parseWithClause(); }
this.semicolon();
return this.finishNode(node, "ImportDeclaration")
};
Expand Down Expand Up @@ -1908,6 +1914,41 @@
return nodes
};

pp$8.parseWithClause = function() {
var nodes = [];
if (!this.eat(types$1._with)) {
return nodes
}
this.expect(types$1.braceL);
var attributeKeys = {};
var first = true;
while (!this.eat(types$1.braceR)) {
if (!first) {
this.expect(types$1.comma);
if (this.afterTrailingComma(types$1.braceR)) { break }
} else { first = false; }

var attr = this.parseImportAttribute();
var keyName = attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
if (hasOwn(attributeKeys, keyName))
{ this.raiseRecoverable(attr.key.start, "Duplicate attribute key '" + keyName + "'"); }
attributeKeys[keyName] = true;
nodes.push(attr);
}
return nodes
};

pp$8.parseImportAttribute = function() {
var node = this.startNode();
node.key = this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
this.expect(types$1.colon);
if (this.type !== types$1.string) {
this.unexpected();
}
node.value = this.parseExprAtom();
return this.finishNode(node, "ImportAttribute")
};

pp$8.parseModuleExportName = function() {
if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
var stringLiteral = this.parseLiteral(this.value);
Expand Down Expand Up @@ -2975,13 +3016,32 @@
// Parse node.source.
node.source = this.parseMaybeAssign();

// Verify ending.
if (!this.eat(types$1.parenR)) {
var errorPos = this.start;
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
if (this.options.ecmaVersion >= 16) {
if (!this.eat(types$1.parenR)) {
this.expect(types$1.comma);
if (!this.afterTrailingComma(types$1.parenR)) {
node.options = this.parseMaybeAssign();
if (!this.eat(types$1.parenR)) {
this.expect(types$1.comma);
if (!this.afterTrailingComma(types$1.parenR)) {
this.unexpected();
}
}
} else {
node.options = null;
}
} else {
this.unexpected(errorPos);
node.options = null;
}
} else {
// Verify ending.
if (!this.eat(types$1.parenR)) {
var errorPos = this.start;
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
} else {
this.unexpected(errorPos);
}
}
}

Expand Down Expand Up @@ -3741,6 +3801,9 @@
return newNode
};

// This file was generated by "bin/generate-unicode-script-values.js". Do not modify manually!
var scriptValuesAddedInUnicode = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";

// This file contains Unicode properties extracted from the ECMAScript specification.
// The lists are extracted like so:
// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)
Expand Down Expand Up @@ -3783,7 +3846,7 @@
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;

var unicodeScriptValues = {
9: ecma9ScriptValues,
Expand Down Expand Up @@ -4208,12 +4271,41 @@
pp$1.regexp_eatUncapturingGroup = function(state) {
var start = state.pos;
if (state.eat(0x28 /* ( */)) {
if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {
this.regexp_disjunction(state);
if (state.eat(0x29 /* ) */)) {
return true
if (state.eat(0x3F /* ? */)) {
if (this.options.ecmaVersion >= 16) {
var addModifiers = this.regexp_eatModifiers(state);
var hasHyphen = state.eat(0x2D /* - */);
if (addModifiers || hasHyphen) {
for (var i = 0; i < addModifiers.length; i++) {
var modifier = addModifiers.charAt(i);
if (addModifiers.indexOf(modifier, i + 1) > -1) {
state.raise("Duplicate regular expression modifiers");
}
}
if (hasHyphen) {
var removeModifiers = this.regexp_eatModifiers(state);
if (!addModifiers && !removeModifiers && state.current() === 0x3A /* : */) {
state.raise("Invalid regular expression modifiers");
}
for (var i$1 = 0; i$1 < removeModifiers.length; i$1++) {
var modifier$1 = removeModifiers.charAt(i$1);
if (
removeModifiers.indexOf(modifier$1, i$1 + 1) > -1 ||
addModifiers.indexOf(modifier$1) > -1
) {
state.raise("Duplicate regular expression modifiers");
}
}
}
}
}
if (state.eat(0x3A /* : */)) {
this.regexp_disjunction(state);
if (state.eat(0x29 /* ) */)) {
return true
}
state.raise("Unterminated group");
}
state.raise("Unterminated group");
}
state.pos = start;
}
Expand All @@ -4235,6 +4327,23 @@
}
return false
};
// RegularExpressionModifiers ::
// [empty]
// RegularExpressionModifiers RegularExpressionModifier
pp$1.regexp_eatModifiers = function(state) {
var modifiers = "";
var ch = 0;
while ((ch = state.current()) !== -1 && isRegularExpressionModifier(ch)) {
modifiers += codePointToString(ch);
state.advance();
}
return modifiers
};
// RegularExpressionModifier :: one of
// `i` `m` `s`
function isRegularExpressionModifier(ch) {
return ch === 0x69 /* i */ || ch === 0x6d /* m */ || ch === 0x73 /* s */
}

// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom
pp$1.regexp_eatExtendedAtom = function(state) {
Expand Down Expand Up @@ -5990,7 +6099,7 @@
// [walk]: util/walk.js


var version = "8.13.0";
var version = "8.14.0";

Parser.acorn = {
Parser: Parser,
Expand Down
Loading