Skip to content

Commit

Permalink
deps: update acorn to 8.9.0
Browse files Browse the repository at this point in the history
PR-URL: nodejs#48484
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: Mestery <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
nodejs-github-bot authored and Ceres6 committed Aug 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6fcb5d2 commit d01af50
Showing 10 changed files with 1,112 additions and 285 deletions.
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.9.0 (2023-06-16)

### Bug fixes

Forbid dynamic import after `new`, even when part of a member expression.

### New features

Add Unicode properties for ES2023.

Add support for the `v` flag to regular expressions.

## 8.8.2 (2023-01-23)

### Bug fixes
9 changes: 5 additions & 4 deletions deps/acorn/acorn/README.md
Original file line number Diff line number Diff line change
@@ -96,10 +96,11 @@ required):
(when `sourceType` is not `"module"`).

- **allowAwaitOutsideFunction**: If `false`, `await` expressions can
only appear inside `async` functions. Defaults to `true` for
`ecmaVersion` 2022 and later, `false` for lower versions. Setting this option to
`true` allows to have top-level `await` expressions. They are
still not allowed in non-`async` functions, though.
only appear inside `async` functions. Defaults to `true` in modules
for `ecmaVersion` 2022 and later, `false` for lower versions.
Setting this option to `true` allows to have top-level `await`
expressions. They are still not allowed in non-`async` functions,
though.

- **allowSuperOutsideMethod**: By default, `super` outside a method
raises an error. Set this to `true` to accept such code.
26 changes: 26 additions & 0 deletions deps/acorn/acorn/dist/acorn.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export {
Node,
Parser,
Position,
SourceLocation,
TokContext,
Token,
TokenType,
defaultOptions,
getLineInfo,
isIdentifierChar,
isIdentifierStart,
isNewLine,
lineBreak,
lineBreakG,
parse,
parseExpressionAt,
tokContexts,
tokTypes,
tokenizer,
version,
AbstractToken,
Comment,
Options,
ecmaVersion,
} from "./acorn.js";
40 changes: 40 additions & 0 deletions deps/acorn/acorn/dist/acorn.d.ts
Original file line number Diff line number Diff line change
@@ -249,4 +249,44 @@ declare namespace acorn {
const lineBreakG: RegExp

const version: string

const nonASCIIwhitespace: RegExp

const keywordTypes: {
_break: TokenType
_case: TokenType
_catch: TokenType
_continue: TokenType
_debugger: TokenType
_default: TokenType
_do: TokenType
_else: TokenType
_finally: TokenType
_for: TokenType
_function: TokenType
_if: TokenType
_return: TokenType
_switch: TokenType
_throw: TokenType
_try: TokenType
_var: TokenType
_const: TokenType
_while: TokenType
_with: TokenType
_new: TokenType
_this: TokenType
_super: TokenType
_class: TokenType
_extends: TokenType
_export: TokenType
_import: TokenType
_null: TokenType
_true: TokenType
_false: TokenType
_in: TokenType
_instanceof: TokenType
_typeof: TokenType
_void: TokenType
_delete: TokenType
}
}
649 changes: 512 additions & 137 deletions deps/acorn/acorn/dist/acorn.js

Large diffs are not rendered by default.

649 changes: 512 additions & 137 deletions deps/acorn/acorn/dist/acorn.mjs

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions deps/acorn/acorn/dist/acorn.mjs.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion deps/acorn/acorn/package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
],
"./package.json": "./package.json"
},
"version": "8.8.2",
"version": "8.9.0",
"engines": {
"node": ">=0.4.0"
},
6 changes: 3 additions & 3 deletions doc/contributing/maintaining/maintaining-dependencies.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ directories to create the Node.js binaries.
All dependencies are located within the `deps` directory.
This a list of all the dependencies:

* [acorn 8.8.2][]
* [acorn 8.9.0][]
* [ada 2.5.0][]
* [base64 0.5.0][]
* [brotli 1.0.9][]
@@ -144,7 +144,7 @@ takes care of npm update, it is maintained by the npm team.

## Dependency list

### acorn 8.8.2
### acorn 8.9.0

The [acorn](https://github.com/acornjs/acorn) dependency is a JavaScript parser.
[acorn-walk](https://github.com/acornjs/acorn/tree/master/acorn-walk) is
@@ -318,7 +318,7 @@ dependency lossless data-compression library,
it comes from the Chromium team's zlib fork which incorporated
performance improvements not currently available in standard zlib.

[acorn 8.8.2]: #acorn-882
[acorn 8.9.0]: #acorn-890
[ada 2.5.0]: #ada-250
[base64 0.5.0]: #base64-050
[brotli 1.0.9]: #brotli-109
2 changes: 1 addition & 1 deletion src/acorn_version.h
Original file line number Diff line number Diff line change
@@ -2,5 +2,5 @@
// Refer to tools/update-acorn.sh
#ifndef SRC_ACORN_VERSION_H_
#define SRC_ACORN_VERSION_H_
#define ACORN_VERSION "8.8.2"
#define ACORN_VERSION "8.9.0"
#endif // SRC_ACORN_VERSION_H_

0 comments on commit d01af50

Please sign in to comment.