immosquare-cleaner 0.1.40 → 0.1.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/@eslint/config-array/README.md +9 -3
- data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1 -0
- data/node_modules/@eslint/config-array/dist/esm/index.js +1 -0
- data/node_modules/@eslint/config-array/package.json +2 -2
- data/node_modules/@eslint/eslintrc/node_modules/espree/LICENSE +25 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/README.md +244 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/dist/espree.cjs +883 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/espree.js +177 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/lib/espree.js +349 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/lib/features.js +27 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/lib/options.js +123 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/lib/token-translator.js +263 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/lib/version.js +3 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/CHANGELOG.md +880 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/LICENSE +21 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/README.md +283 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/bin/acorn +4 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.mts +857 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.ts +857 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.js +6002 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.mjs +5973 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/bin.js +90 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/package.json +50 -0
- data/node_modules/@eslint/eslintrc/node_modules/espree/package.json +86 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint-community/regexpp/index.d.ts +19 -5
- data/node_modules/@eslint-community/regexpp/index.js +138 -17
- data/node_modules/@eslint-community/regexpp/index.js.map +1 -1
- data/node_modules/@eslint-community/regexpp/index.mjs +138 -17
- data/node_modules/@eslint-community/regexpp/index.mjs.map +1 -1
- data/node_modules/@eslint-community/regexpp/package.json +1 -3
- data/node_modules/acorn/CHANGELOG.md +24 -0
- data/node_modules/acorn/README.md +5 -6
- data/node_modules/acorn/dist/acorn.d.mts +8 -9
- data/node_modules/acorn/dist/acorn.d.ts +8 -9
- data/node_modules/acorn/dist/acorn.js +92 -29
- data/node_modules/acorn/dist/acorn.mjs +92 -29
- data/node_modules/acorn/package.json +3 -3
- data/node_modules/eslint/README.md +7 -8
- data/node_modules/eslint/conf/ecma-version.js +1 -1
- data/node_modules/eslint/conf/globals.js +6 -1
- data/node_modules/eslint/lib/cli.js +23 -2
- data/node_modules/eslint/lib/eslint/eslint-helpers.js +5 -0
- data/node_modules/eslint/lib/eslint/eslint.js +16 -2
- data/node_modules/eslint/lib/eslint/legacy-eslint.js +14 -0
- data/node_modules/eslint/lib/languages/js/index.js +10 -5
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +16 -6
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +6 -3
- data/node_modules/eslint/lib/linter/config-comment-parser.js +3 -16
- data/node_modules/eslint/lib/linter/linter.js +194 -149
- data/node_modules/eslint/lib/linter/node-event-generator.js +2 -4
- data/node_modules/eslint/lib/linter/vfile.js +7 -0
- data/node_modules/eslint/lib/options.js +13 -1
- data/node_modules/eslint/lib/rules/no-restricted-imports.js +12 -5
- data/node_modules/eslint/lib/rules/no-unused-vars.js +34 -32
- data/node_modules/eslint/lib/rules/no-useless-backreference.js +81 -31
- data/node_modules/eslint/lib/rules/utils/regular-expressions.js +1 -1
- data/node_modules/eslint/lib/shared/flags.js +26 -0
- data/node_modules/eslint/lib/shared/logging.js +10 -1
- data/node_modules/eslint/lib/shared/types.js +1 -1
- data/node_modules/eslint/package.json +9 -13
- data/node_modules/eslint-scope/dist/eslint-scope.cjs +2 -2
- data/node_modules/eslint-scope/lib/referencer.js +1 -1
- data/node_modules/eslint-scope/lib/version.js +1 -1
- data/node_modules/eslint-scope/package.json +2 -2
- data/node_modules/espree/README.md +5 -5
- data/node_modules/espree/dist/espree.cjs +62 -6
- data/node_modules/espree/espree.js +1 -4
- data/node_modules/espree/lib/options.js +3 -2
- data/node_modules/espree/lib/token-translator.js +1 -1
- data/node_modules/espree/lib/version.js +1 -1
- data/node_modules/espree/package.json +7 -7
- data/node_modules/js-tokens/CHANGELOG.md +17 -0
- data/node_modules/js-tokens/LICENSE +1 -1
- data/node_modules/js-tokens/README.md +25 -7
- data/node_modules/js-tokens/index.js +3 -3
- data/node_modules/js-tokens/package.json +5 -5
- data/node_modules/jscodeshift/CHANGELOG.md +5 -0
- data/node_modules/jscodeshift/bin/jscodeshift.js +1 -1
- data/node_modules/jscodeshift/package.json +1 -2
- data/node_modules/jscodeshift/website/index.htm +9 -0
- data/node_modules/prettier/LICENSE +35 -34
- data/node_modules/prettier/doc.js +2 -2
- data/node_modules/prettier/doc.mjs +2 -2
- data/node_modules/prettier/index.cjs +8 -8
- data/node_modules/prettier/index.d.ts +1 -2
- data/node_modules/prettier/index.mjs +636 -704
- data/node_modules/prettier/internal/cli.mjs +4 -4
- data/node_modules/prettier/package.json +1 -1
- data/node_modules/prettier/plugins/acorn.js +14 -12
- data/node_modules/prettier/plugins/acorn.mjs +14 -12
- data/node_modules/prettier/plugins/angular.js +1 -1
- data/node_modules/prettier/plugins/angular.mjs +1 -1
- data/node_modules/prettier/plugins/babel.js +10 -11
- data/node_modules/prettier/plugins/babel.mjs +10 -11
- data/node_modules/prettier/plugins/estree.js +27 -27
- data/node_modules/prettier/plugins/estree.mjs +27 -27
- data/node_modules/prettier/plugins/flow.js +15 -16
- data/node_modules/prettier/plugins/flow.mjs +15 -16
- data/node_modules/prettier/plugins/glimmer.js +5 -5
- data/node_modules/prettier/plugins/glimmer.mjs +5 -5
- data/node_modules/prettier/plugins/graphql.js +8 -8
- data/node_modules/prettier/plugins/graphql.mjs +8 -8
- data/node_modules/prettier/plugins/html.js +17 -17
- data/node_modules/prettier/plugins/html.mjs +17 -17
- data/node_modules/prettier/plugins/markdown.js +44 -44
- data/node_modules/prettier/plugins/markdown.mjs +44 -44
- data/node_modules/prettier/plugins/meriyah.js +4 -5
- data/node_modules/prettier/plugins/meriyah.mjs +4 -5
- data/node_modules/prettier/plugins/postcss.js +26 -26
- data/node_modules/prettier/plugins/postcss.mjs +26 -26
- data/node_modules/prettier/plugins/typescript.js +15 -20
- data/node_modules/prettier/plugins/typescript.mjs +15 -20
- data/node_modules/prettier/plugins/yaml.js +6 -6
- data/node_modules/prettier/plugins/yaml.mjs +6 -6
- data/node_modules/prettier/standalone.js +31 -30
- data/node_modules/prettier/standalone.mjs +28 -27
- data/package.json +4 -4
- metadata +24 -2
@@ -0,0 +1,880 @@
|
|
1
|
+
## 8.11.3 (2023-12-29)
|
2
|
+
|
3
|
+
### Bug fixes
|
4
|
+
|
5
|
+
Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
|
6
|
+
|
7
|
+
Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
|
8
|
+
|
9
|
+
Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
|
10
|
+
|
11
|
+
## 8.11.2 (2023-10-27)
|
12
|
+
|
13
|
+
### Bug fixes
|
14
|
+
|
15
|
+
Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
|
16
|
+
|
17
|
+
## 8.11.1 (2023-10-26)
|
18
|
+
|
19
|
+
### Bug fixes
|
20
|
+
|
21
|
+
Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
|
22
|
+
|
23
|
+
## 8.11.0 (2023-10-26)
|
24
|
+
|
25
|
+
### Bug fixes
|
26
|
+
|
27
|
+
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.
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
### New features
|
32
|
+
|
33
|
+
Upgrade to Unicode 15.1.
|
34
|
+
|
35
|
+
Use a set of new, much more precise, TypeScript types.
|
36
|
+
|
37
|
+
## 8.10.0 (2023-07-05)
|
38
|
+
|
39
|
+
### New features
|
40
|
+
|
41
|
+
Add a `checkPrivateFields` option that disables strict checking of private property use.
|
42
|
+
|
43
|
+
## 8.9.0 (2023-06-16)
|
44
|
+
|
45
|
+
### Bug fixes
|
46
|
+
|
47
|
+
Forbid dynamic import after `new`, even when part of a member expression.
|
48
|
+
|
49
|
+
### New features
|
50
|
+
|
51
|
+
Add Unicode properties for ES2023.
|
52
|
+
|
53
|
+
Add support for the `v` flag to regular expressions.
|
54
|
+
|
55
|
+
## 8.8.2 (2023-01-23)
|
56
|
+
|
57
|
+
### Bug fixes
|
58
|
+
|
59
|
+
Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
|
60
|
+
|
61
|
+
Fix an exception when passing no option object to `parse` or `new Parser`.
|
62
|
+
|
63
|
+
Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
|
64
|
+
|
65
|
+
## 8.8.1 (2022-10-24)
|
66
|
+
|
67
|
+
### Bug fixes
|
68
|
+
|
69
|
+
Make type for `Comment` compatible with estree types.
|
70
|
+
|
71
|
+
## 8.8.0 (2022-07-21)
|
72
|
+
|
73
|
+
### Bug fixes
|
74
|
+
|
75
|
+
Allow parentheses around spread args in destructuring object assignment.
|
76
|
+
|
77
|
+
Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
|
78
|
+
|
79
|
+
### New features
|
80
|
+
|
81
|
+
Support hashbang comments by default in ECMAScript 2023 and later.
|
82
|
+
|
83
|
+
## 8.7.1 (2021-04-26)
|
84
|
+
|
85
|
+
### Bug fixes
|
86
|
+
|
87
|
+
Stop handling `"use strict"` directives in ECMAScript versions before 5.
|
88
|
+
|
89
|
+
Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
|
90
|
+
|
91
|
+
Add missing type for `tokTypes`.
|
92
|
+
|
93
|
+
## 8.7.0 (2021-12-27)
|
94
|
+
|
95
|
+
### New features
|
96
|
+
|
97
|
+
Support quoted export names.
|
98
|
+
|
99
|
+
Upgrade to Unicode 14.
|
100
|
+
|
101
|
+
Add support for Unicode 13 properties in regular expressions.
|
102
|
+
|
103
|
+
### Bug fixes
|
104
|
+
|
105
|
+
Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.
|
106
|
+
|
107
|
+
## 8.6.0 (2021-11-18)
|
108
|
+
|
109
|
+
### Bug fixes
|
110
|
+
|
111
|
+
Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.
|
112
|
+
|
113
|
+
### New features
|
114
|
+
|
115
|
+
Support class private fields with the `in` operator.
|
116
|
+
|
117
|
+
## 8.5.0 (2021-09-06)
|
118
|
+
|
119
|
+
### Bug fixes
|
120
|
+
|
121
|
+
Improve context-dependent tokenization in a number of corner cases.
|
122
|
+
|
123
|
+
Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
|
124
|
+
|
125
|
+
Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
|
126
|
+
|
127
|
+
Fix wrong end locations stored on SequenceExpression nodes.
|
128
|
+
|
129
|
+
Implement restriction that `for`/`of` loop LHS can't start with `let`.
|
130
|
+
|
131
|
+
### New features
|
132
|
+
|
133
|
+
Add support for ES2022 class static blocks.
|
134
|
+
|
135
|
+
Allow multiple input files to be passed to the CLI tool.
|
136
|
+
|
137
|
+
## 8.4.1 (2021-06-24)
|
138
|
+
|
139
|
+
### Bug fixes
|
140
|
+
|
141
|
+
Fix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources.
|
142
|
+
|
143
|
+
## 8.4.0 (2021-06-11)
|
144
|
+
|
145
|
+
### New features
|
146
|
+
|
147
|
+
A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
|
148
|
+
|
149
|
+
## 8.3.0 (2021-05-31)
|
150
|
+
|
151
|
+
### New features
|
152
|
+
|
153
|
+
Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
|
154
|
+
|
155
|
+
Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
|
156
|
+
|
157
|
+
## 8.2.4 (2021-05-04)
|
158
|
+
|
159
|
+
### Bug fixes
|
160
|
+
|
161
|
+
Fix spec conformity in corner case 'for await (async of ...)'.
|
162
|
+
|
163
|
+
## 8.2.3 (2021-05-04)
|
164
|
+
|
165
|
+
### Bug fixes
|
166
|
+
|
167
|
+
Fix an issue where the library couldn't parse 'for (async of ...)'.
|
168
|
+
|
169
|
+
Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.
|
170
|
+
|
171
|
+
## 8.2.2 (2021-04-29)
|
172
|
+
|
173
|
+
### Bug fixes
|
174
|
+
|
175
|
+
Fix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield.
|
176
|
+
|
177
|
+
## 8.2.1 (2021-04-24)
|
178
|
+
|
179
|
+
### Bug fixes
|
180
|
+
|
181
|
+
Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.
|
182
|
+
|
183
|
+
## 8.2.0 (2021-04-24)
|
184
|
+
|
185
|
+
### New features
|
186
|
+
|
187
|
+
Add support for ES2022 class fields and private methods.
|
188
|
+
|
189
|
+
## 8.1.1 (2021-04-12)
|
190
|
+
|
191
|
+
### Various
|
192
|
+
|
193
|
+
Stop shipping source maps in the NPM package.
|
194
|
+
|
195
|
+
## 8.1.0 (2021-03-09)
|
196
|
+
|
197
|
+
### Bug fixes
|
198
|
+
|
199
|
+
Fix a spurious error in nested destructuring arrays.
|
200
|
+
|
201
|
+
### New features
|
202
|
+
|
203
|
+
Expose `allowAwaitOutsideFunction` in CLI interface.
|
204
|
+
|
205
|
+
Make `allowImportExportAnywhere` also apply to `import.meta`.
|
206
|
+
|
207
|
+
## 8.0.5 (2021-01-25)
|
208
|
+
|
209
|
+
### Bug fixes
|
210
|
+
|
211
|
+
Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
|
212
|
+
|
213
|
+
## 8.0.4 (2020-10-05)
|
214
|
+
|
215
|
+
### Bug fixes
|
216
|
+
|
217
|
+
Make `await x ** y` an error, following the spec.
|
218
|
+
|
219
|
+
Fix potentially exponential regular expression.
|
220
|
+
|
221
|
+
## 8.0.3 (2020-10-02)
|
222
|
+
|
223
|
+
### Bug fixes
|
224
|
+
|
225
|
+
Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
|
226
|
+
|
227
|
+
## 8.0.2 (2020-09-30)
|
228
|
+
|
229
|
+
### Bug fixes
|
230
|
+
|
231
|
+
Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
|
232
|
+
|
233
|
+
Fix another regexp/division tokenizer issue.
|
234
|
+
|
235
|
+
## 8.0.1 (2020-08-12)
|
236
|
+
|
237
|
+
### Bug fixes
|
238
|
+
|
239
|
+
Provide the correct value in the `version` export.
|
240
|
+
|
241
|
+
## 8.0.0 (2020-08-12)
|
242
|
+
|
243
|
+
### Bug fixes
|
244
|
+
|
245
|
+
Disallow expressions like `(a = b) = c`.
|
246
|
+
|
247
|
+
Make non-octal escape sequences a syntax error in strict mode.
|
248
|
+
|
249
|
+
### New features
|
250
|
+
|
251
|
+
The package can now be loaded directly as an ECMAScript module in node 13+.
|
252
|
+
|
253
|
+
Update to the set of Unicode properties from ES2021.
|
254
|
+
|
255
|
+
### Breaking changes
|
256
|
+
|
257
|
+
The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
|
258
|
+
|
259
|
+
Some changes to method signatures that may be used by plugins.
|
260
|
+
|
261
|
+
## 7.4.0 (2020-08-03)
|
262
|
+
|
263
|
+
### New features
|
264
|
+
|
265
|
+
Add support for logical assignment operators.
|
266
|
+
|
267
|
+
Add support for numeric separators.
|
268
|
+
|
269
|
+
## 7.3.1 (2020-06-11)
|
270
|
+
|
271
|
+
### Bug fixes
|
272
|
+
|
273
|
+
Make the string in the `version` export match the actual library version.
|
274
|
+
|
275
|
+
## 7.3.0 (2020-06-11)
|
276
|
+
|
277
|
+
### Bug fixes
|
278
|
+
|
279
|
+
Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.
|
280
|
+
|
281
|
+
### New features
|
282
|
+
|
283
|
+
Add support for optional chaining (`?.`).
|
284
|
+
|
285
|
+
## 7.2.0 (2020-05-09)
|
286
|
+
|
287
|
+
### Bug fixes
|
288
|
+
|
289
|
+
Fix precedence issue in parsing of async arrow functions.
|
290
|
+
|
291
|
+
### New features
|
292
|
+
|
293
|
+
Add support for nullish coalescing.
|
294
|
+
|
295
|
+
Add support for `import.meta`.
|
296
|
+
|
297
|
+
Support `export * as ...` syntax.
|
298
|
+
|
299
|
+
Upgrade to Unicode 13.
|
300
|
+
|
301
|
+
## 6.4.1 (2020-03-09)
|
302
|
+
|
303
|
+
### Bug fixes
|
304
|
+
|
305
|
+
More carefully check for valid UTF16 surrogate pairs in regexp validator.
|
306
|
+
|
307
|
+
## 7.1.1 (2020-03-01)
|
308
|
+
|
309
|
+
### Bug fixes
|
310
|
+
|
311
|
+
Treat `\8` and `\9` as invalid escapes in template strings.
|
312
|
+
|
313
|
+
Allow unicode escapes in property names that are keywords.
|
314
|
+
|
315
|
+
Don't error on an exponential operator expression as argument to `await`.
|
316
|
+
|
317
|
+
More carefully check for valid UTF16 surrogate pairs in regexp validator.
|
318
|
+
|
319
|
+
## 7.1.0 (2019-09-24)
|
320
|
+
|
321
|
+
### Bug fixes
|
322
|
+
|
323
|
+
Disallow trailing object literal commas when ecmaVersion is less than 5.
|
324
|
+
|
325
|
+
### New features
|
326
|
+
|
327
|
+
Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
|
328
|
+
|
329
|
+
## 7.0.0 (2019-08-13)
|
330
|
+
|
331
|
+
### Breaking changes
|
332
|
+
|
333
|
+
Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
|
334
|
+
|
335
|
+
Makes 10 (ES2019) the default value for the `ecmaVersion` option.
|
336
|
+
|
337
|
+
## 6.3.0 (2019-08-12)
|
338
|
+
|
339
|
+
### New features
|
340
|
+
|
341
|
+
`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.
|
342
|
+
|
343
|
+
## 6.2.1 (2019-07-21)
|
344
|
+
|
345
|
+
### Bug fixes
|
346
|
+
|
347
|
+
Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
|
348
|
+
|
349
|
+
Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
|
350
|
+
|
351
|
+
## 6.2.0 (2019-07-04)
|
352
|
+
|
353
|
+
### Bug fixes
|
354
|
+
|
355
|
+
Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
|
356
|
+
|
357
|
+
Disallow binding `let` in patterns.
|
358
|
+
|
359
|
+
### New features
|
360
|
+
|
361
|
+
Support bigint syntax with `ecmaVersion` >= 11.
|
362
|
+
|
363
|
+
Support dynamic `import` syntax with `ecmaVersion` >= 11.
|
364
|
+
|
365
|
+
Upgrade to Unicode version 12.
|
366
|
+
|
367
|
+
## 6.1.1 (2019-02-27)
|
368
|
+
|
369
|
+
### Bug fixes
|
370
|
+
|
371
|
+
Fix bug that caused parsing default exports of with names to fail.
|
372
|
+
|
373
|
+
## 6.1.0 (2019-02-08)
|
374
|
+
|
375
|
+
### Bug fixes
|
376
|
+
|
377
|
+
Fix scope checking when redefining a `var` as a lexical binding.
|
378
|
+
|
379
|
+
### New features
|
380
|
+
|
381
|
+
Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.
|
382
|
+
|
383
|
+
## 6.0.7 (2019-02-04)
|
384
|
+
|
385
|
+
### Bug fixes
|
386
|
+
|
387
|
+
Check that exported bindings are defined.
|
388
|
+
|
389
|
+
Don't treat `\u180e` as a whitespace character.
|
390
|
+
|
391
|
+
Check for duplicate parameter names in methods.
|
392
|
+
|
393
|
+
Don't allow shorthand properties when they are generators or async methods.
|
394
|
+
|
395
|
+
Forbid binding `await` in async arrow function's parameter list.
|
396
|
+
|
397
|
+
## 6.0.6 (2019-01-30)
|
398
|
+
|
399
|
+
### Bug fixes
|
400
|
+
|
401
|
+
The content of class declarations and expressions is now always parsed in strict mode.
|
402
|
+
|
403
|
+
Don't allow `let` or `const` to bind the variable name `let`.
|
404
|
+
|
405
|
+
Treat class declarations as lexical.
|
406
|
+
|
407
|
+
Don't allow a generator function declaration as the sole body of an `if` or `else`.
|
408
|
+
|
409
|
+
Ignore `"use strict"` when after an empty statement.
|
410
|
+
|
411
|
+
Allow string line continuations with special line terminator characters.
|
412
|
+
|
413
|
+
Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
|
414
|
+
|
415
|
+
Fix bug with parsing `yield` in a `for` loop initializer.
|
416
|
+
|
417
|
+
Implement special cases around scope checking for functions.
|
418
|
+
|
419
|
+
## 6.0.5 (2019-01-02)
|
420
|
+
|
421
|
+
### Bug fixes
|
422
|
+
|
423
|
+
Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
|
424
|
+
|
425
|
+
Don't treat `let` as a keyword when the next token is `{` on the next line.
|
426
|
+
|
427
|
+
Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.
|
428
|
+
|
429
|
+
## 6.0.4 (2018-11-05)
|
430
|
+
|
431
|
+
### Bug fixes
|
432
|
+
|
433
|
+
Further improvements to tokenizing regular expressions in corner cases.
|
434
|
+
|
435
|
+
## 6.0.3 (2018-11-04)
|
436
|
+
|
437
|
+
### Bug fixes
|
438
|
+
|
439
|
+
Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
|
440
|
+
|
441
|
+
Remove stray symlink in the package tarball.
|
442
|
+
|
443
|
+
## 6.0.2 (2018-09-26)
|
444
|
+
|
445
|
+
### Bug fixes
|
446
|
+
|
447
|
+
Fix bug where default expressions could fail to parse inside an object destructuring assignment expression.
|
448
|
+
|
449
|
+
## 6.0.1 (2018-09-14)
|
450
|
+
|
451
|
+
### Bug fixes
|
452
|
+
|
453
|
+
Fix wrong value in `version` export.
|
454
|
+
|
455
|
+
## 6.0.0 (2018-09-14)
|
456
|
+
|
457
|
+
### Bug fixes
|
458
|
+
|
459
|
+
Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
|
460
|
+
|
461
|
+
Forbid `new.target` in top-level arrow functions.
|
462
|
+
|
463
|
+
Fix issue with parsing a regexp after `yield` in some contexts.
|
464
|
+
|
465
|
+
### New features
|
466
|
+
|
467
|
+
The package now comes with TypeScript definitions.
|
468
|
+
|
469
|
+
### Breaking changes
|
470
|
+
|
471
|
+
The default value of the `ecmaVersion` option is now 9 (2018).
|
472
|
+
|
473
|
+
Plugins work differently, and will have to be rewritten to work with this version.
|
474
|
+
|
475
|
+
The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).
|
476
|
+
|
477
|
+
## 5.7.3 (2018-09-10)
|
478
|
+
|
479
|
+
### Bug fixes
|
480
|
+
|
481
|
+
Fix failure to tokenize regexps after expressions like `x.of`.
|
482
|
+
|
483
|
+
Better error message for unterminated template literals.
|
484
|
+
|
485
|
+
## 5.7.2 (2018-08-24)
|
486
|
+
|
487
|
+
### Bug fixes
|
488
|
+
|
489
|
+
Properly handle `allowAwaitOutsideFunction` in for statements.
|
490
|
+
|
491
|
+
Treat function declarations at the top level of modules like let bindings.
|
492
|
+
|
493
|
+
Don't allow async function declarations as the only statement under a label.
|
494
|
+
|
495
|
+
## 5.7.0 (2018-06-15)
|
496
|
+
|
497
|
+
### New features
|
498
|
+
|
499
|
+
Upgraded to Unicode 11.
|
500
|
+
|
501
|
+
## 5.6.0 (2018-05-31)
|
502
|
+
|
503
|
+
### New features
|
504
|
+
|
505
|
+
Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
|
506
|
+
|
507
|
+
Allow binding-less catch statements when ECMAVersion >= 10.
|
508
|
+
|
509
|
+
Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
|
510
|
+
|
511
|
+
## 5.5.3 (2018-03-08)
|
512
|
+
|
513
|
+
### Bug fixes
|
514
|
+
|
515
|
+
A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
|
516
|
+
|
517
|
+
## 5.5.2 (2018-03-08)
|
518
|
+
|
519
|
+
### Bug fixes
|
520
|
+
|
521
|
+
A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.
|
522
|
+
|
523
|
+
## 5.5.1 (2018-03-06)
|
524
|
+
|
525
|
+
### Bug fixes
|
526
|
+
|
527
|
+
Fix misleading error message for octal escapes in template strings.
|
528
|
+
|
529
|
+
## 5.5.0 (2018-02-27)
|
530
|
+
|
531
|
+
### New features
|
532
|
+
|
533
|
+
The identifier character categorization is now based on Unicode version 10.
|
534
|
+
|
535
|
+
Acorn will now validate the content of regular expressions, including new ES9 features.
|
536
|
+
|
537
|
+
## 5.4.0 (2018-02-01)
|
538
|
+
|
539
|
+
### Bug fixes
|
540
|
+
|
541
|
+
Disallow duplicate or escaped flags on regular expressions.
|
542
|
+
|
543
|
+
Disallow octal escapes in strings in strict mode.
|
544
|
+
|
545
|
+
### New features
|
546
|
+
|
547
|
+
Add support for async iteration.
|
548
|
+
|
549
|
+
Add support for object spread and rest.
|
550
|
+
|
551
|
+
## 5.3.0 (2017-12-28)
|
552
|
+
|
553
|
+
### Bug fixes
|
554
|
+
|
555
|
+
Fix parsing of floating point literals with leading zeroes in loose mode.
|
556
|
+
|
557
|
+
Allow duplicate property names in object patterns.
|
558
|
+
|
559
|
+
Don't allow static class methods named `prototype`.
|
560
|
+
|
561
|
+
Disallow async functions directly under `if` or `else`.
|
562
|
+
|
563
|
+
Parse right-hand-side of `for`/`of` as an assignment expression.
|
564
|
+
|
565
|
+
Stricter parsing of `for`/`in`.
|
566
|
+
|
567
|
+
Don't allow unicode escapes in contextual keywords.
|
568
|
+
|
569
|
+
### New features
|
570
|
+
|
571
|
+
Parsing class members was factored into smaller methods to allow plugins to hook into it.
|
572
|
+
|
573
|
+
## 5.2.1 (2017-10-30)
|
574
|
+
|
575
|
+
### Bug fixes
|
576
|
+
|
577
|
+
Fix a token context corruption bug.
|
578
|
+
|
579
|
+
## 5.2.0 (2017-10-30)
|
580
|
+
|
581
|
+
### Bug fixes
|
582
|
+
|
583
|
+
Fix token context tracking for `class` and `function` in property-name position.
|
584
|
+
|
585
|
+
Make sure `%*` isn't parsed as a valid operator.
|
586
|
+
|
587
|
+
Allow shorthand properties `get` and `set` to be followed by default values.
|
588
|
+
|
589
|
+
Disallow `super` when not in callee or object position.
|
590
|
+
|
591
|
+
### New features
|
592
|
+
|
593
|
+
Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.
|
594
|
+
|
595
|
+
## 5.1.2 (2017-09-04)
|
596
|
+
|
597
|
+
### Bug fixes
|
598
|
+
|
599
|
+
Disable parsing of legacy HTML-style comments in modules.
|
600
|
+
|
601
|
+
Fix parsing of async methods whose names are keywords.
|
602
|
+
|
603
|
+
## 5.1.1 (2017-07-06)
|
604
|
+
|
605
|
+
### Bug fixes
|
606
|
+
|
607
|
+
Fix problem with disambiguating regexp and division after a class.
|
608
|
+
|
609
|
+
## 5.1.0 (2017-07-05)
|
610
|
+
|
611
|
+
### Bug fixes
|
612
|
+
|
613
|
+
Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
|
614
|
+
|
615
|
+
Parse zero-prefixed numbers with non-octal digits as decimal.
|
616
|
+
|
617
|
+
Allow object/array patterns in rest parameters.
|
618
|
+
|
619
|
+
Don't error when `yield` is used as a property name.
|
620
|
+
|
621
|
+
Allow `async` as a shorthand object property.
|
622
|
+
|
623
|
+
### New features
|
624
|
+
|
625
|
+
Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.
|
626
|
+
|
627
|
+
## 5.0.3 (2017-04-01)
|
628
|
+
|
629
|
+
### Bug fixes
|
630
|
+
|
631
|
+
Fix spurious duplicate variable definition errors for named functions.
|
632
|
+
|
633
|
+
## 5.0.2 (2017-03-30)
|
634
|
+
|
635
|
+
### Bug fixes
|
636
|
+
|
637
|
+
A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
|
638
|
+
|
639
|
+
## 5.0.0 (2017-03-28)
|
640
|
+
|
641
|
+
### Bug fixes
|
642
|
+
|
643
|
+
Raise an error for duplicated lexical bindings.
|
644
|
+
|
645
|
+
Fix spurious error when an assignement expression occurred after a spread expression.
|
646
|
+
|
647
|
+
Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
|
648
|
+
|
649
|
+
Allow labels in front or `var` declarations, even in strict mode.
|
650
|
+
|
651
|
+
### Breaking changes
|
652
|
+
|
653
|
+
Parse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`.
|
654
|
+
|
655
|
+
## 4.0.11 (2017-02-07)
|
656
|
+
|
657
|
+
### Bug fixes
|
658
|
+
|
659
|
+
Allow all forms of member expressions to be parenthesized as lvalue.
|
660
|
+
|
661
|
+
## 4.0.10 (2017-02-07)
|
662
|
+
|
663
|
+
### Bug fixes
|
664
|
+
|
665
|
+
Don't expect semicolons after default-exported functions or classes, even when they are expressions.
|
666
|
+
|
667
|
+
Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.
|
668
|
+
|
669
|
+
## 4.0.9 (2017-02-06)
|
670
|
+
|
671
|
+
### Bug fixes
|
672
|
+
|
673
|
+
Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.
|
674
|
+
|
675
|
+
## 4.0.8 (2017-02-03)
|
676
|
+
|
677
|
+
### Bug fixes
|
678
|
+
|
679
|
+
Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
|
680
|
+
|
681
|
+
## 4.0.7 (2017-02-02)
|
682
|
+
|
683
|
+
### Bug fixes
|
684
|
+
|
685
|
+
Accept invalidly rejected code like `(x).y = 2` again.
|
686
|
+
|
687
|
+
Don't raise an error when a function _inside_ strict code has a non-simple parameter list.
|
688
|
+
|
689
|
+
## 4.0.6 (2017-02-02)
|
690
|
+
|
691
|
+
### Bug fixes
|
692
|
+
|
693
|
+
Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
|
694
|
+
|
695
|
+
## 4.0.5 (2017-02-02)
|
696
|
+
|
697
|
+
### Bug fixes
|
698
|
+
|
699
|
+
Disallow parenthesized pattern expressions.
|
700
|
+
|
701
|
+
Allow keywords as export names.
|
702
|
+
|
703
|
+
Don't allow the `async` keyword to be parenthesized.
|
704
|
+
|
705
|
+
Properly raise an error when a keyword contains a character escape.
|
706
|
+
|
707
|
+
Allow `"use strict"` to appear after other string literal expressions.
|
708
|
+
|
709
|
+
Disallow labeled declarations.
|
710
|
+
|
711
|
+
## 4.0.4 (2016-12-19)
|
712
|
+
|
713
|
+
### Bug fixes
|
714
|
+
|
715
|
+
Fix crash when `export` was followed by a keyword that can't be
|
716
|
+
exported.
|
717
|
+
|
718
|
+
## 4.0.3 (2016-08-16)
|
719
|
+
|
720
|
+
### Bug fixes
|
721
|
+
|
722
|
+
Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
|
723
|
+
|
724
|
+
Properly parse properties named `async` in ES2017 mode.
|
725
|
+
|
726
|
+
Fix bug where reserved words were broken in ES2017 mode.
|
727
|
+
|
728
|
+
## 4.0.2 (2016-08-11)
|
729
|
+
|
730
|
+
### Bug fixes
|
731
|
+
|
732
|
+
Don't ignore period or 'e' characters after octal numbers.
|
733
|
+
|
734
|
+
Fix broken parsing for call expressions in default parameter values of arrow functions.
|
735
|
+
|
736
|
+
## 4.0.1 (2016-08-08)
|
737
|
+
|
738
|
+
### Bug fixes
|
739
|
+
|
740
|
+
Fix false positives in duplicated export name errors.
|
741
|
+
|
742
|
+
## 4.0.0 (2016-08-07)
|
743
|
+
|
744
|
+
### Breaking changes
|
745
|
+
|
746
|
+
The default `ecmaVersion` option value is now 7.
|
747
|
+
|
748
|
+
A number of internal method signatures changed, so plugins might need to be updated.
|
749
|
+
|
750
|
+
### Bug fixes
|
751
|
+
|
752
|
+
The parser now raises errors on duplicated export names.
|
753
|
+
|
754
|
+
`arguments` and `eval` can now be used in shorthand properties.
|
755
|
+
|
756
|
+
Duplicate parameter names in non-simple argument lists now always produce an error.
|
757
|
+
|
758
|
+
### New features
|
759
|
+
|
760
|
+
The `ecmaVersion` option now also accepts year-style version numbers
|
761
|
+
(2015, etc).
|
762
|
+
|
763
|
+
Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
|
764
|
+
|
765
|
+
Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
|
766
|
+
|
767
|
+
## 3.3.0 (2016-07-25)
|
768
|
+
|
769
|
+
### Bug fixes
|
770
|
+
|
771
|
+
Fix bug in tokenizing of regexp operator after a function declaration.
|
772
|
+
|
773
|
+
Fix parser crash when parsing an array pattern with a hole.
|
774
|
+
|
775
|
+
### New features
|
776
|
+
|
777
|
+
Implement check against complex argument lists in functions that enable strict mode in ES7.
|
778
|
+
|
779
|
+
## 3.2.0 (2016-06-07)
|
780
|
+
|
781
|
+
### Bug fixes
|
782
|
+
|
783
|
+
Improve handling of lack of unicode regexp support in host
|
784
|
+
environment.
|
785
|
+
|
786
|
+
Properly reject shorthand properties whose name is a keyword.
|
787
|
+
|
788
|
+
### New features
|
789
|
+
|
790
|
+
Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.
|
791
|
+
|
792
|
+
## 3.1.0 (2016-04-18)
|
793
|
+
|
794
|
+
### Bug fixes
|
795
|
+
|
796
|
+
Properly tokenize the division operator directly after a function expression.
|
797
|
+
|
798
|
+
Allow trailing comma in destructuring arrays.
|
799
|
+
|
800
|
+
## 3.0.4 (2016-02-25)
|
801
|
+
|
802
|
+
### Fixes
|
803
|
+
|
804
|
+
Allow update expressions as left-hand-side of the ES7 exponential operator.
|
805
|
+
|
806
|
+
## 3.0.2 (2016-02-10)
|
807
|
+
|
808
|
+
### Fixes
|
809
|
+
|
810
|
+
Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
|
811
|
+
|
812
|
+
## 3.0.0 (2016-02-10)
|
813
|
+
|
814
|
+
### Breaking changes
|
815
|
+
|
816
|
+
The default value of the `ecmaVersion` option is now 6 (used to be 5).
|
817
|
+
|
818
|
+
Support for comprehension syntax (which was dropped from the draft spec) has been removed.
|
819
|
+
|
820
|
+
### Fixes
|
821
|
+
|
822
|
+
`let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.
|
823
|
+
|
824
|
+
A parenthesized class or function expression after `export default` is now parsed correctly.
|
825
|
+
|
826
|
+
### New features
|
827
|
+
|
828
|
+
When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
|
829
|
+
|
830
|
+
The identifier character ranges are now based on Unicode 8.0.0.
|
831
|
+
|
832
|
+
Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.
|
833
|
+
|
834
|
+
## 2.7.0 (2016-01-04)
|
835
|
+
|
836
|
+
### Fixes
|
837
|
+
|
838
|
+
Stop allowing rest parameters in setters.
|
839
|
+
|
840
|
+
Disallow `y` rexexp flag in ES5.
|
841
|
+
|
842
|
+
Disallow `\00` and `\000` escapes in strict mode.
|
843
|
+
|
844
|
+
Raise an error when an import name is a reserved word.
|
845
|
+
|
846
|
+
## 2.6.2 (2015-11-10)
|
847
|
+
|
848
|
+
### Fixes
|
849
|
+
|
850
|
+
Don't crash when no options object is passed.
|
851
|
+
|
852
|
+
## 2.6.0 (2015-11-09)
|
853
|
+
|
854
|
+
### Fixes
|
855
|
+
|
856
|
+
Add `await` as a reserved word in module sources.
|
857
|
+
|
858
|
+
Disallow `yield` in a parameter default value for a generator.
|
859
|
+
|
860
|
+
Forbid using a comma after a rest pattern in an array destructuring.
|
861
|
+
|
862
|
+
### New features
|
863
|
+
|
864
|
+
Support parsing stdin in command-line tool.
|
865
|
+
|
866
|
+
## 2.5.0 (2015-10-27)
|
867
|
+
|
868
|
+
### Fixes
|
869
|
+
|
870
|
+
Fix tokenizer support in the command-line tool.
|
871
|
+
|
872
|
+
Stop allowing `new.target` outside of functions.
|
873
|
+
|
874
|
+
Remove legacy `guard` and `guardedHandler` properties from try nodes.
|
875
|
+
|
876
|
+
Stop allowing multiple `__proto__` properties on an object literal in strict mode.
|
877
|
+
|
878
|
+
Don't allow rest parameters to be non-identifier patterns.
|
879
|
+
|
880
|
+
Check for duplicate paramter names in arrow functions.
|