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