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

Last change on this file was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 18.1 KB
Line 
1## 8.6.0 (2021-11-18)
2
3### Bug fixes
4
5Fix 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
9Support class private fields with the `in` operator.
10
11## 8.5.0 (2021-09-06)
12
13### Bug fixes
14
15Improve context-dependent tokenization in a number of corner cases.
16
17Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
18
19Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
20
21Fix wrong end locations stored on SequenceExpression nodes.
22
23Implement restriction that `for`/`of` loop LHS can't start with `let`.
24
25### New features
26
27Add support for ES2022 class static blocks.
28
29Allow multiple input files to be passed to the CLI tool.
30
31## 8.4.1 (2021-06-24)
32
33### Bug fixes
34
35Fix 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
41A 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
47Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
48
49Add 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
55Fix spec conformity in corner case 'for await (async of ...)'.
56
57## 8.2.3 (2021-05-04)
58
59### Bug fixes
60
61Fix an issue where the library couldn't parse 'for (async of ...)'.
62
63Fix 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
69Fix 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
75Fix 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
81Add support for ES2022 class fields and private methods.
82
83## 8.1.1 (2021-04-12)
84
85### Various
86
87Stop shipping source maps in the NPM package.
88
89## 8.1.0 (2021-03-09)
90
91### Bug fixes
92
93Fix a spurious error in nested destructuring arrays.
94
95### New features
96
97Expose `allowAwaitOutsideFunction` in CLI interface.
98
99Make `allowImportExportAnywhere` also apply to `import.meta`.
100
101## 8.0.5 (2021-01-25)
102
103### Bug fixes
104
105Adjust 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
111Make `await x ** y` an error, following the spec.
112
113Fix potentially exponential regular expression.
114
115## 8.0.3 (2020-10-02)
116
117### Bug fixes
118
119Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
120
121## 8.0.2 (2020-09-30)
122
123### Bug fixes
124
125Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
126
127Fix another regexp/division tokenizer issue.
128
129## 8.0.1 (2020-08-12)
130
131### Bug fixes
132
133Provide the correct value in the `version` export.
134
135## 8.0.0 (2020-08-12)
136
137### Bug fixes
138
139Disallow expressions like `(a = b) = c`.
140
141Make non-octal escape sequences a syntax error in strict mode.
142
143### New features
144
145The package can now be loaded directly as an ECMAScript module in node 13+.
146
147Update to the set of Unicode properties from ES2021.
148
149### Breaking changes
150
151The `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
153Some changes to method signatures that may be used by plugins.
154
155## 7.4.0 (2020-08-03)
156
157### New features
158
159Add support for logical assignment operators.
160
161Add support for numeric separators.
162
163## 7.3.1 (2020-06-11)
164
165### Bug fixes
166
167Make the string in the `version` export match the actual library version.
168
169## 7.3.0 (2020-06-11)
170
171### Bug fixes
172
173Fix 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
177Add support for optional chaining (`?.`).
178
179## 7.2.0 (2020-05-09)
180
181### Bug fixes
182
183Fix precedence issue in parsing of async arrow functions.
184
185### New features
186
187Add support for nullish coalescing.
188
189Add support for `import.meta`.
190
191Support `export * as ...` syntax.
192
193Upgrade to Unicode 13.
194
195## 6.4.1 (2020-03-09)
196
197### Bug fixes
198
199More carefully check for valid UTF16 surrogate pairs in regexp validator.
200
201## 7.1.1 (2020-03-01)
202
203### Bug fixes
204
205Treat `\8` and `\9` as invalid escapes in template strings.
206
207Allow unicode escapes in property names that are keywords.
208
209Don't error on an exponential operator expression as argument to `await`.
210
211More carefully check for valid UTF16 surrogate pairs in regexp validator.
212
213## 7.1.0 (2019-09-24)
214
215### Bug fixes
216
217Disallow trailing object literal commas when ecmaVersion is less than 5.
218
219### New features
220
221Add 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
227Changes 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
229Makes 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
241Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
242
243Fix 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
249Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
250
251Disallow binding `let` in patterns.
252
253### New features
254
255Support bigint syntax with `ecmaVersion` >= 11.
256
257Support dynamic `import` syntax with `ecmaVersion` >= 11.
258
259Upgrade to Unicode version 12.
260
261## 6.1.1 (2019-02-27)
262
263### Bug fixes
264
265Fix bug that caused parsing default exports of with names to fail.
266
267## 6.1.0 (2019-02-08)
268
269### Bug fixes
270
271Fix scope checking when redefining a `var` as a lexical binding.
272
273### New features
274
275Split 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
281Check that exported bindings are defined.
282
283Don't treat `\u180e` as a whitespace character.
284
285Check for duplicate parameter names in methods.
286
287Don't allow shorthand properties when they are generators or async methods.
288
289Forbid binding `await` in async arrow function's parameter list.
290
291## 6.0.6 (2019-01-30)
292
293### Bug fixes
294
295The content of class declarations and expressions is now always parsed in strict mode.
296
297Don't allow `let` or `const` to bind the variable name `let`.
298
299Treat class declarations as lexical.
300
301Don't allow a generator function declaration as the sole body of an `if` or `else`.
302
303Ignore `"use strict"` when after an empty statement.
304
305Allow string line continuations with special line terminator characters.
306
307Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
308
309Fix bug with parsing `yield` in a `for` loop initializer.
310
311Implement special cases around scope checking for functions.
312
313## 6.0.5 (2019-01-02)
314
315### Bug fixes
316
317Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
318
319Don't treat `let` as a keyword when the next token is `{` on the next line.
320
321Fix 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
327Further improvements to tokenizing regular expressions in corner cases.
328
329## 6.0.3 (2018-11-04)
330
331### Bug fixes
332
333Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
334
335Remove stray symlink in the package tarball.
336
337## 6.0.2 (2018-09-26)
338
339### Bug fixes
340
341Fix 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
347Fix wrong value in `version` export.
348
349## 6.0.0 (2018-09-14)
350
351### Bug fixes
352
353Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
354
355Forbid `new.target` in top-level arrow functions.
356
357Fix issue with parsing a regexp after `yield` in some contexts.
358
359### New features
360
361The package now comes with TypeScript definitions.
362
363### Breaking changes
364
365The default value of the `ecmaVersion` option is now 9 (2018).
366
367Plugins work differently, and will have to be rewritten to work with this version.
368
369The 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
375Fix failure to tokenize regexps after expressions like `x.of`.
376
377Better error message for unterminated template literals.
378
379## 5.7.2 (2018-08-24)
380
381### Bug fixes
382
383Properly handle `allowAwaitOutsideFunction` in for statements.
384
385Treat function declarations at the top level of modules like let bindings.
386
387Don'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
393Upgraded to Unicode 11.
394
395## 5.6.0 (2018-05-31)
396
397### New features
398
399Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
400
401Allow binding-less catch statements when ECMAVersion >= 10.
402
403Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
404
405## 5.5.3 (2018-03-08)
406
407### Bug fixes
408
409A _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
415A 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
421Fix misleading error message for octal escapes in template strings.
422
423## 5.5.0 (2018-02-27)
424
425### New features
426
427The identifier character categorization is now based on Unicode version 10.
428
429Acorn 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
435Disallow duplicate or escaped flags on regular expressions.
436
437Disallow octal escapes in strings in strict mode.
438
439### New features
440
441Add support for async iteration.
442
443Add support for object spread and rest.
444
445## 5.3.0 (2017-12-28)
446
447### Bug fixes
448
449Fix parsing of floating point literals with leading zeroes in loose mode.
450
451Allow duplicate property names in object patterns.
452
453Don't allow static class methods named `prototype`.
454
455Disallow async functions directly under `if` or `else`.
456
457Parse right-hand-side of `for`/`of` as an assignment expression.
458
459Stricter parsing of `for`/`in`.
460
461Don't allow unicode escapes in contextual keywords.
462
463### New features
464
465Parsing 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
471Fix a token context corruption bug.
472
473## 5.2.0 (2017-10-30)
474
475### Bug fixes
476
477Fix token context tracking for `class` and `function` in property-name position.
478
479Make sure `%*` isn't parsed as a valid operator.
480
481Allow shorthand properties `get` and `set` to be followed by default values.
482
483Disallow `super` when not in callee or object position.
484
485### New features
486
487Support [`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
493Disable parsing of legacy HTML-style comments in modules.
494
495Fix parsing of async methods whose names are keywords.
496
497## 5.1.1 (2017-07-06)
498
499### Bug fixes
500
501Fix problem with disambiguating regexp and division after a class.
502
503## 5.1.0 (2017-07-05)
504
505### Bug fixes
506
507Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
508
509Parse zero-prefixed numbers with non-octal digits as decimal.
510
511Allow object/array patterns in rest parameters.
512
513Don't error when `yield` is used as a property name.
514
515Allow `async` as a shorthand object property.
516
517### New features
518
519Implement 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
525Fix spurious duplicate variable definition errors for named functions.
526
527## 5.0.2 (2017-03-30)
528
529### Bug fixes
530
531A 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
537Raise an error for duplicated lexical bindings.
538
539Fix spurious error when an assignement expression occurred after a spread expression.
540
541Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
542
543Allow labels in front or `var` declarations, even in strict mode.
544
545### Breaking changes
546
547Parse 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
553Allow all forms of member expressions to be parenthesized as lvalue.
554
555## 4.0.10 (2017-02-07)
556
557### Bug fixes
558
559Don't expect semicolons after default-exported functions or classes, even when they are expressions.
560
561Check 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
567Fix 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
573Solve 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
579Accept invalidly rejected code like `(x).y = 2` again.
580
581Don'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
587Fix 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
593Disallow parenthesized pattern expressions.
594
595Allow keywords as export names.
596
597Don't allow the `async` keyword to be parenthesized.
598
599Properly raise an error when a keyword contains a character escape.
600
601Allow `"use strict"` to appear after other string literal expressions.
602
603Disallow labeled declarations.
604
605## 4.0.4 (2016-12-19)
606
607### Bug fixes
608
609Fix crash when `export` was followed by a keyword that can't be
610exported.
611
612## 4.0.3 (2016-08-16)
613
614### Bug fixes
615
616Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
617
618Properly parse properties named `async` in ES2017 mode.
619
620Fix bug where reserved words were broken in ES2017 mode.
621
622## 4.0.2 (2016-08-11)
623
624### Bug fixes
625
626Don't ignore period or 'e' characters after octal numbers.
627
628Fix 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
634Fix false positives in duplicated export name errors.
635
636## 4.0.0 (2016-08-07)
637
638### Breaking changes
639
640The default `ecmaVersion` option value is now 7.
641
642A number of internal method signatures changed, so plugins might need to be updated.
643
644### Bug fixes
645
646The parser now raises errors on duplicated export names.
647
648`arguments` and `eval` can now be used in shorthand properties.
649
650Duplicate parameter names in non-simple argument lists now always produce an error.
651
652### New features
653
654The `ecmaVersion` option now also accepts year-style version numbers
655(2015, etc).
656
657Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
658
659Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
660
661## 3.3.0 (2016-07-25)
662
663### Bug fixes
664
665Fix bug in tokenizing of regexp operator after a function declaration.
666
667Fix parser crash when parsing an array pattern with a hole.
668
669### New features
670
671Implement 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
677Improve handling of lack of unicode regexp support in host
678environment.
679
680Properly reject shorthand properties whose name is a keyword.
681
682### New features
683
684Visitors 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
690Properly tokenize the division operator directly after a function expression.
691
692Allow trailing comma in destructuring arrays.
693
694## 3.0.4 (2016-02-25)
695
696### Fixes
697
698Allow update expressions as left-hand-side of the ES7 exponential operator.
699
700## 3.0.2 (2016-02-10)
701
702### Fixes
703
704Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
705
706## 3.0.0 (2016-02-10)
707
708### Breaking changes
709
710The default value of the `ecmaVersion` option is now 6 (used to be 5).
711
712Support 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
718A parenthesized class or function expression after `export default` is now parsed correctly.
719
720### New features
721
722When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
723
724The identifier character ranges are now based on Unicode 8.0.0.
725
726Plugins 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
732Stop allowing rest parameters in setters.
733
734Disallow `y` rexexp flag in ES5.
735
736Disallow `\00` and `\000` escapes in strict mode.
737
738Raise an error when an import name is a reserved word.
739
740## 2.6.2 (2015-11-10)
741
742### Fixes
743
744Don't crash when no options object is passed.
745
746## 2.6.0 (2015-11-09)
747
748### Fixes
749
750Add `await` as a reserved word in module sources.
751
752Disallow `yield` in a parameter default value for a generator.
753
754Forbid using a comma after a rest pattern in an array destructuring.
755
756### New features
757
758Support parsing stdin in command-line tool.
759
760## 2.5.0 (2015-10-27)
761
762### Fixes
763
764Fix tokenizer support in the command-line tool.
765
766Stop allowing `new.target` outside of functions.
767
768Remove legacy `guard` and `guardedHandler` properties from try nodes.
769
770Stop allowing multiple `__proto__` properties on an object literal in strict mode.
771
772Don't allow rest parameters to be non-identifier patterns.
773
774Check for duplicate paramter names in arrow functions.
Note: See TracBrowser for help on using the repository browser.