Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-11-12, Version 18.20.5 'Hydrogen' (LTS) #55768

Merged
merged 76 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c2e6a8f
benchmark: fix napi/ref addon
targos Jun 2, 2024
0092358
http: handle multi-value content-disposition header
ArsalanDotMe Dec 11, 2023
9f521f4
test: update tests for OpenSSL 3.0.14
richardlau Jun 10, 2024
627d399
test: fix unreliable assumption in js-native-api/test_cannot_run_js
joyeecheung Mar 1, 2024
6615fe5
src: fix dynamically linked OpenSSL version
richardlau Jun 14, 2024
fc43c68
test: update TLS tests for OpenSSL 3.2
richardlau Jun 9, 2024
cc3cdf7
test: check against run-time OpenSSL version
richardlau Jun 14, 2024
1320fb9
test: update TLS trace tests for OpenSSL >= 3.2
richardlau Jun 2, 2024
e9e3306
test: use assert.{s,deepS}trictEqual()
sonsurim Aug 4, 2024
a1f0c87
test: fix test-tls-client-auth test for OpenSSL32
mhdawson Aug 28, 2024
5316314
test: update TLS test for OpenSSL 3.2
richardlau Aug 30, 2024
d5b73e5
test: increase key size for ca2-cert.pem
mhdawson Aug 29, 2024
68156cb
test: fix test-tls-client-mindhsize for OpenSSL32
mhdawson Sep 3, 2024
c7de027
test: fix test test-tls-dhe for OpenSSL32
mhdawson Sep 14, 2024
e999738
test: adjust tls test for OpenSSL32
mhdawson Sep 14, 2024
b097d85
test: adjust test-tls-junk-server for OpenSSL32
mhdawson Sep 15, 2024
d244204
crypto: reject Ed25519/Ed448 in Sign/Verify prototypes
panva Apr 8, 2024
6e7274f
crypto: reject dh,x25519,x448 in {Sign,Verify}Final
JLHwung Sep 6, 2024
75ff0cd
test: update test to support OpenSSL32
mhdawson Sep 18, 2024
37a2f7e
test: adjust key sizes to support OpenSSL32
mhdawson Sep 18, 2024
341496a
test: add asserts to validate test assumptions
mhdawson Sep 18, 2024
1a4d497
test: adjust tls-set-ciphers for OpenSSL32
mhdawson Sep 21, 2024
9824827
test: update tls test to support OpenSSL32
mhdawson Sep 22, 2024
c8520ff
test: fix OpenSSL version checks
richardlau Jun 26, 2024
ac3a390
test: fix test-tls-junk-closes-server
mhdawson Sep 25, 2024
d814fe9
src: account for OpenSSL unexpected version
codebytere Jul 31, 2024
a4f6f09
doc: add names next to release key bash commands
avivkeller May 9, 2024
1c4decc
doc: add release key for aduh95
aduh95 Oct 10, 2024
fa72b2c
tools: skip ruff on tools/gyp
targos Oct 25, 2023
0fb652e
tools: update gyp-next to v0.16.1
targos Oct 25, 2023
6ba4ebd
build: fix build with Python 3.12
lpinca Nov 8, 2023
c679348
errors: use `determineSpecificType` in more error messages
aduh95 Sep 11, 2023
84b0ead
esm: fix hook name in error message
bmacnaughton Dec 5, 2023
81c3260
deps: update corepack to 0.28.1
nodejs-github-bot May 14, 2024
6ba8bc0
deps: update c-ares to 1.29.0
nodejs-github-bot Jun 2, 2024
d6114cb
test: fix test when compiled without engine support
richardlau Jun 2, 2024
5c46782
crypto: make deriveBits length parameter optional and nullable
panva Jun 28, 2024
395ee44
deps: update corepack to 0.28.2
nodejs-github-bot Jun 4, 2024
dbdfdd0
deps: update corepack to 0.29.2
nodejs-github-bot Jul 16, 2024
935a506
deps: update corepack to 0.29.3
nodejs-github-bot Jul 30, 2024
4d2ac5d
doc: move release key for Myles Borins
richardlau Aug 5, 2024
c60c663
deps: upgrade openssl sources to quictls/openssl-3.0.14+quic1
nodejs-github-bot Aug 12, 2024
67e9883
deps: update archs files for openssl-3.0.14+quic1
nodejs-github-bot Aug 12, 2024
4a18581
deps: update corepack to 0.29.4
nodejs-github-bot Sep 17, 2024
c50f013
crypto: ensure invalid SubtleCrypto JWK data import results in DataError
panva Sep 23, 2024
46c7824
deps: upgrade openssl sources to quictls/openssl-3.0.15+quic1
nodejs-github-bot Sep 30, 2024
fce3ab6
deps: update archs files for openssl-3.0.15+quic1
nodejs-github-bot Sep 30, 2024
ac37e55
esm: mark import attributes and JSON module as stable
nicolo-ribaudo Oct 12, 2024
f56cfe7
deps: update acorn to 8.12.1
nodejs-github-bot Jun 16, 2024
50a9456
deps: update acorn-walk to 8.3.3
nodejs-github-bot Jun 18, 2024
55b3c8a
deps: update acorn-walk to 8.3.4
nodejs-github-bot Sep 24, 2024
d577321
deps: update acorn to 8.13.0
nodejs-github-bot Oct 29, 2024
aaa857f
deps: update ada to 2.8.0
nodejs-github-bot Jun 4, 2024
033f1e2
deps: update zlib to 1.3.0.1-motley-4f653ff
nodejs-github-bot May 21, 2024
569a739
deps: update zlib to 1.3.0.1-motley-209717d
nodejs-github-bot Jun 13, 2024
637a306
deps: update zlib to 1.3.0.1-motley-887bb57
nodejs-github-bot Jun 16, 2024
e151ebe
deps: update zlib to 1.3.0.1-motley-e432200
nodejs-github-bot Jun 23, 2024
f6b2f68
deps: update zlib to 1.3.0.1-motley-8b7eff8
nodejs-github-bot Jun 30, 2024
4b81555
deps: update zlib to 1.3.0.1-motley-68e57e6
nodejs-github-bot Jul 7, 2024
64f98a9
deps: update zlib to 1.3.0.1-motley-c2469fd
nodejs-github-bot Jul 14, 2024
11242bc
deps: update zlib to 1.3.0.1-motley-71660e1
nodejs-github-bot Aug 4, 2024
96ec48d
deps: update brotli to 1.1.0
nodejs-github-bot Dec 27, 2023
a1ae050
deps: update simdutf to 5.2.6
nodejs-github-bot Apr 28, 2024
c952fd8
deps: update simdutf to 5.2.8
nodejs-github-bot May 12, 2024
5fb8e1b
deps: update simdutf to 5.3.0
nodejs-github-bot Jul 16, 2024
dd882ac
deps: update simdutf to 5.3.1
nodejs-github-bot Aug 6, 2024
52d2c03
deps: update simdutf to 5.3.4
nodejs-github-bot Aug 13, 2024
3597be4
deps: update simdutf to 5.5.0
nodejs-github-bot Aug 18, 2024
0385249
deps: update simdutf to 5.6.0
nodejs-github-bot Oct 15, 2024
fd9933e
deps: upgrade npm to 10.8.0
npm-cli-bot May 16, 2024
8531c95
deps: upgrade npm to 10.8.1
npm-cli-bot May 30, 2024
93670de
deps: upgrade npm to 10.8.2
npm-cli-bot Jul 12, 2024
4c2e07a
build: pin doc workflow to Node.js 20
richardlau Nov 6, 2024
e4739e9
doc: only apply content-visibility on all.html
panva Jun 19, 2024
3059262
esm: fix broken assertion in `legacyMainResolve`
aduh95 Nov 3, 2024
f73db8f
2024-11-12, Version 18.20.5 'Hydrogen' (LTS)
aduh95 Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

env:
NODE_VERSION: lts/*
NODE_VERSION: 20

permissions:
contents: read
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.20.4">18.20.4</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V18.md#18.20.5">18.20.5</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.4">18.20.4</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.3">18.20.3</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.2">18.20.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V18.md#18.20.1">18.20.1</a><br/>
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,8 @@ responding to new issues.

Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):

* **Antoine du Hamel** <<duhamelantoine1995@gmail.com>>
`C0D6248439F1D5604AAFFB4021D900FFDB233756`
* **Beth Griggs** <<bethanyngriggs@gmail.com>>
`4ED778F539E3634C779C87C6D7062848A1AB005C`
* **Bryan English** <<bryan@bryanenglish.com>>
Expand All @@ -749,9 +751,7 @@ Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
`CC68F5A3106FF448322E48ED27F5E38D5B0A215F`
* **Michaël Zasso** <<targos@protonmail.com>>
`8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600`
* **Myles Borins** <<myles.borins@gmail.com>>
`C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8`
* **RafaelGSS** <<rafael.nunu@hotmail.com>>
* **Rafael Gonzaga** <<rafael.nunu@hotmail.com>>
`890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4`
* **Richard Lau** <<rlau@redhat.com>>
`C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C`
Expand All @@ -764,17 +764,17 @@ To import the full set of trusted release keys (including subkeys possibly used
to sign releases):

```bash
gpg --keyserver hkps://keys.openpgp.org --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C
gpg --keyserver hkps://keys.openpgp.org --recv-keys 141F07595B7B3FFE74309A937405533BE57C7D57
gpg --keyserver hkps://keys.openpgp.org --recv-keys 74F12602B6F1C4E913FAA37AD3A89613643B6201
gpg --keyserver hkps://keys.openpgp.org --recv-keys DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7
gpg --keyserver hkps://keys.openpgp.org --recv-keys CC68F5A3106FF448322E48ED27F5E38D5B0A215F
gpg --keyserver hkps://keys.openpgp.org --recv-keys 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600
gpg --keyserver hkps://keys.openpgp.org --recv-keys C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8
gpg --keyserver hkps://keys.openpgp.org --recv-keys 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4
gpg --keyserver hkps://keys.openpgp.org --recv-keys C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C
gpg --keyserver hkps://keys.openpgp.org --recv-keys 108F52B48DB57BB0CC439B2997B01419BD92F80A
gpg --keyserver hkps://keys.openpgp.org --recv-keys A363A499291CBBC940DD62E41F10027AF002F8B0
gpg --keyserver hkps://keys.openpgp.org --recv-keys C0D6248439F1D5604AAFFB4021D900FFDB233756 # Antoine du Hamel
gpg --keyserver hkps://keys.openpgp.org --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C # Beth Griggs
gpg --keyserver hkps://keys.openpgp.org --recv-keys 141F07595B7B3FFE74309A937405533BE57C7D57 # Bryan English
gpg --keyserver hkps://keys.openpgp.org --recv-keys 74F12602B6F1C4E913FAA37AD3A89613643B6201 # Danielle Adams
gpg --keyserver hkps://keys.openpgp.org --recv-keys DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 # Juan José Arboleda
gpg --keyserver hkps://keys.openpgp.org --recv-keys CC68F5A3106FF448322E48ED27F5E38D5B0A215F # Marco Ippolito
gpg --keyserver hkps://keys.openpgp.org --recv-keys 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 # Michaël Zasso
gpg --keyserver hkps://keys.openpgp.org --recv-keys 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 # Rafael Gonzaga
gpg --keyserver hkps://keys.openpgp.org --recv-keys C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C # Richard Lau
gpg --keyserver hkps://keys.openpgp.org --recv-keys 108F52B48DB57BB0CC439B2997B01419BD92F80A # Ruy Adorno
gpg --keyserver hkps://keys.openpgp.org --recv-keys A363A499291CBBC940DD62E41F10027AF002F8B0 # Ulises Gascón
```

See [Verifying binaries](#verifying-binaries) for how to use these keys to
Expand Down Expand Up @@ -806,6 +806,8 @@ verify a downloaded file.
`61FC681DFB92A079F1685E77973F295594EC4689`
* **Julien Gilli** <<jgilli@fastmail.fm>>
`114F43EE0176B71C7BC219DD50A3051F888C628D`
* **Myles Borins** <<myles.borins@gmail.com>>
`C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8`
* **Rod Vagg** <<rod@vagg.org>>
`DD8F2338BAE7501E3DD5AC78C273792F7D83545D`
* **Ruben Bridgewater** <<ruben@bridgewater.de>>
Expand Down
6 changes: 2 additions & 4 deletions benchmark/napi/ref/addon.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <stdlib.h>
#define NAPI_EXPERIMENTAL
#include <node_api.h>
#include <stdlib.h>

#define NAPI_CALL(env, call) \
do { \
Expand Down Expand Up @@ -34,8 +33,7 @@ SetCount(napi_env env, napi_callback_info info) {
return NULL;
}

static void
IncrementCounter(napi_env env, void* data, void* hint) {
static void IncrementCounter(node_api_nogc_env env, void* data, void* hint) {
size_t* count = data;
(*count) = (*count) + 1;
}
Expand Down
11 changes: 5 additions & 6 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import io
from pathlib import Path

from distutils.version import StrictVersion

# If not run from node/, cd to node/.
os.chdir(Path(__file__).parent)

Expand All @@ -30,6 +28,7 @@

sys.path.insert(0, str(tools_path / 'gyp' / 'pylib'))
from gyp.common import GetFlavor
from packaging.version import Version

# imports in tools/configure.d
sys.path.insert(0, str(tools_path / 'configure.d'))
Expand Down Expand Up @@ -1605,10 +1604,10 @@ def without_ssl_error(option):
# supported asm compiler for AVX2. See https://github.com/openssl/openssl/
# blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
openssl110_asm_supported = \
('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \
('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \
('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \
('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10'))
('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \
('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \
('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \
('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10'))

if is_x86 and not openssl110_asm_supported:
error('''Did not find a new enough assembler, install one or build with
Expand Down
18 changes: 18 additions & 0 deletions deps/acorn/acorn-walk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 8.3.4 (2024-09-09)

### Bug fixes

Walk SwitchCase nodes as separate nodes.

## 8.3.3 (2024-01-11)

### Bug fixes

Make acorn a dependency because acorn-walk uses the types from that package.

## 8.3.2 (2024-01-11)

### Bug fixes

Add missing type for `findNodeBefore`.

## 8.3.1 (2023-12-06)

### Bug fixes
Expand Down
12 changes: 3 additions & 9 deletions deps/acorn/acorn-walk/dist/walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,10 @@
};
base.SwitchStatement = function (node, st, c) {
c(node.discriminant, st, "Expression");
for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
var cs = list$1[i$1];
for (var i = 0, list = node.cases; i < list.length; i += 1) {
var cs = list[i];

if (cs.test) { c(cs.test, st, "Expression"); }
for (var i = 0, list = cs.consequent; i < list.length; i += 1)
{
var cons = list[i];

c(cons, st, "Statement");
}
c(cs, st);
}
};
base.SwitchCase = function (node, st, c) {
Expand Down
12 changes: 3 additions & 9 deletions deps/acorn/acorn-walk/dist/walk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,10 @@ base.WithStatement = function (node, st, c) {
};
base.SwitchStatement = function (node, st, c) {
c(node.discriminant, st, "Expression");
for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
var cs = list$1[i$1];
for (var i = 0, list = node.cases; i < list.length; i += 1) {
var cs = list[i];

if (cs.test) { c(cs.test, st, "Expression"); }
for (var i = 0, list = cs.consequent; i < list.length; i += 1)
{
var cons = list[i];

c(cons, st, "Statement");
}
c(cs, st);
}
};
base.SwitchCase = function (node, st, c) {
Expand Down
5 changes: 4 additions & 1 deletion deps/acorn/acorn-walk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
],
"./package.json": "./package.json"
},
"version": "8.3.2",
"version": "8.3.4",
"engines": {
"node": ">=0.4.0"
},
"dependencies": {
"acorn": "^8.11.0"
},
"maintainers": [
{
"name": "Marijn Haverbeke",
Expand Down
36 changes: 36 additions & 0 deletions deps/acorn/acorn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
## 8.13.0 (2024-10-16)

### New features

Upgrade to Unicode 16.0.

## 8.12.1 (2024-07-03)

### Bug fixes

Fix a regression that caused Acorn to no longer run on Node versions <8.10.

## 8.12.0 (2024-06-14)

### New features

Support ES2025 duplicate capture group names in regular expressions.

### Bug fixes

Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.

Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.

Properly recognize \"use strict\" when preceded by a string with an escaped newline.

Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.

Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.

Properly normalize line endings in raw strings of invalid template tokens.

Properly track line numbers for escaped newlines in strings.

Fix a bug that broke line number accounting after a template literal with invalid escape sequences.

## 8.11.3 (2023-12-29)

### Bug fixes
Expand Down
11 changes: 5 additions & 6 deletions deps/acorn/acorn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ Options are provided by in a second argument, which should be an
object containing any of these fields (only `ecmaVersion` is
required):

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

**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
implemented by Acorn. Other proposed new features must be
Expand Down
17 changes: 8 additions & 9 deletions deps/acorn/acorn/dist/acorn.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,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
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 function parse(input: string, options: Options): Program

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

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"
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"

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

Expand Down Expand Up @@ -733,7 +732,7 @@ export class Parser {
options: Options
input: string

private constructor(options: Options, input: string, startPos?: number)
protected constructor(options: Options, input: string, startPos?: number)
parse(): Program

static parse(input: string, options: Options): Program
Expand Down
17 changes: 8 additions & 9 deletions deps/acorn/acorn/dist/acorn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,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
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 function parse(input: string, options: Options): Program

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

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"
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"

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

Expand Down Expand Up @@ -733,7 +732,7 @@ export class Parser {
options: Options
input: string

private constructor(options: Options, input: string, startPos?: number)
protected constructor(options: Options, input: string, startPos?: number)
parse(): Program

static parse(input: string, options: Options): Program
Expand Down
Loading
Loading