Skip to content

Commit 28453ff

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update acorn to 8.11.2
PR-URL: #50460 Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0a793a2 commit 28453ff

File tree

9 files changed

+1781
-332
lines changed

9 files changed

+1781
-332
lines changed

deps/acorn/acorn/CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
## 8.11.2 (2023-10-27)
2+
3+
### Bug fixes
4+
5+
Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
6+
7+
## 8.11.1 (2023-10-26)
8+
9+
### Bug fixes
10+
11+
Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
12+
13+
## 8.11.0 (2023-10-26)
14+
15+
### Bug fixes
16+
17+
Fix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state.
18+
19+
Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.
20+
21+
### New features
22+
23+
Upgrade to Unicode 15.1.
24+
25+
Use a set of new, much more precise, TypeScript types.
26+
127
## 8.10.0 (2023-07-05)
228

329
### New features

deps/acorn/acorn/README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ Acorn is open source software released under an
99

1010
You are welcome to
1111
[report bugs](https://github.com/acornjs/acorn/issues) or create pull
12-
requests on [github](https://github.com/acornjs/acorn). For questions
13-
and discussion, please use the
14-
[Tern discussion forum](https://discuss.ternjs.net).
12+
requests on [github](https://github.com/acornjs/acorn).
1513

1614
## Installation
1715

@@ -204,6 +202,13 @@ option is enabled). When the token's type is `tokTypes.eof`, you
204202
should stop calling the method, since it will keep returning that same
205203
token forever.
206204

205+
Note that tokenizing JavaScript without parsing it is, in modern
206+
versions of the language, not really possible due to the way syntax is
207+
overloaded in ways that can only be disambiguated by the parse
208+
context. This package applies a bunch of heuristics to try and do a
209+
reasonable job, but you are advised to use `parse` with the `onToken`
210+
option instead of this.
211+
207212
In ES6 environment, returned result can be used as any other
208213
protocol-compliant iterable:
209214

0 commit comments

Comments
 (0)