mirror of https://github.com/nodejs/node.git
deps: update acorn to 8.9.0
PR-URL: https://github.com/nodejs/node/pull/48484 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>pull/48606/head
parent
e8810b91f1
commit
3dc2b6e7a4
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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";
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +0,0 @@
|
|||
import * as acorn from "./acorn";
|
||||
export = acorn;
|
|
@ -16,7 +16,7 @@
|
|||
],
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"version": "8.8.2",
|
||||
"version": "8.9.0",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
},
|
||||
|
|
|
@ -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,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_
|
||||
|
|
Loading…
Reference in New Issue