GeezerVison is showing github.com — deps: update acorn to 8.9.0 · nodejs/node@ba8d048
File treeExpand file treeCollapse file tree Open diff view settings doc/contributing/maintaining
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/acorn/acorn/CHANGELOG.md +12Lines changed: 12 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +## 8.9.0 (2023-06-16) | | 2 | + | | 3 | +### Bug fixes | | 4 | + | | 5 | +Forbid dynamic import after `new`, even when part of a member expression. | | 6 | + | | 7 | +### New features | | 8 | + | | 9 | +Add Unicode properties for ES2023. | | 10 | + | | 11 | +Add support for the `v` flag to regular expressions. | | 12 | + | 1 | 13 | ## 8.8.2 (2023-01-23) | 2 | 14 |
| 3 | 15 | ### Bug fixes | |
Collapse file Copy file name to clipboardExpand all lines: deps/acorn/acorn/README.md +5-4Lines changed: 5 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,10 +96,11 @@ required): | 96 | 96 | (when `sourceType` is not `"module"`). | 97 | 97 |
| 98 | 98 | - **allowAwaitOutsideFunction**: If `false`, `await` expressions can | 99 | | - only appear inside `async` functions. Defaults to `true` for | 100 | | - `ecmaVersion` 2022 and later, `false` for lower versions. Setting this option to | 101 | | - `true` allows to have top-level `await` expressions. They are | 102 | | - still not allowed in non-`async` functions, though. | | 99 | + only appear inside `async` functions. Defaults to `true` in modules | | 100 | + for `ecmaVersion` 2022 and later, `false` for lower versions. | | 101 | + Setting this option to `true` allows to have top-level `await` | | 102 | + expressions. They are still not allowed in non-`async` functions, | | 103 | + though. | 103 | 104 |
| 104 | 105 | - **allowSuperOutsideMethod**: By default, `super` outside a method | 105 | 106 | raises an error. Set this to `true` to accept such code. | |
Collapse file Copy file name to clipboard +26Lines changed: 26 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +export { | | 2 | + Node, | | 3 | + Parser, | | 4 | + Position, | | 5 | + SourceLocation, | | 6 | + TokContext, | | 7 | + Token, | | 8 | + TokenType, | | 9 | + defaultOptions, | | 10 | + getLineInfo, | | 11 | + isIdentifierChar, | | 12 | + isIdentifierStart, | | 13 | + isNewLine, | | 14 | + lineBreak, | | 15 | + lineBreakG, | | 16 | + parse, | | 17 | + parseExpressionAt, | | 18 | + tokContexts, | | 19 | + tokTypes, | | 20 | + tokenizer, | | 21 | + version, | | 22 | + AbstractToken, | | 23 | + Comment, | | 24 | + Options, | | 25 | + ecmaVersion, | | 26 | +} from "./acorn.js"; |
Collapse file Copy file name to clipboardExpand all lines: deps/acorn/acorn/dist/acorn.d.ts +40Lines changed: 40 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -249,4 +249,44 @@ declare namespace acorn { | 249 | 249 | const lineBreakG: RegExp | 250 | 250 |
| 251 | 251 | const version: string | | 252 | + | | 253 | + const nonASCIIwhitespace: RegExp | | 254 | + | | 255 | + const keywordTypes: { | | 256 | + _break: TokenType | | 257 | + _case: TokenType | | 258 | + _catch: TokenType | | 259 | + _continue: TokenType | | 260 | + _debugger: TokenType | | 261 | + _default: TokenType | | 262 | + _do: TokenType | | 263 | + _else: TokenType | | 264 | + _finally: TokenType | | 265 | + _for: TokenType | | 266 | + _function: TokenType | | 267 | + _if: TokenType | | 268 | + _return: TokenType | | 269 | + _switch: TokenType | | 270 | + _throw: TokenType | | 271 | + _try: TokenType | | 272 | + _var: TokenType | | 273 | + _const: TokenType | | 274 | + _while: TokenType | | 275 | + _with: TokenType | | 276 | + _new: TokenType | | 277 | + _this: TokenType | | 278 | + _super: TokenType | | 279 | + _class: TokenType | | 280 | + _extends: TokenType | | 281 | + _export: TokenType | | 282 | + _import: TokenType | | 283 | + _null: TokenType | | 284 | + _true: TokenType | | 285 | + _false: TokenType | | 286 | + _in: TokenType | | 287 | + _instanceof: TokenType | | 288 | + _typeof: TokenType | | 289 | + _void: TokenType | | 290 | + _delete: TokenType | | 291 | + } | 252 | 292 | } |
|