source: trip-planner-front/node_modules/acorn/CHANGELOG.md@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

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