Tags: JLHwung/acorn
Tags
Version 7.1.0 ### Bug fixes Disallow trailing object literal commas when ecmaVersion is less than 5. ### New features 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.
Version 7.0.0 ### Breaking changes 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). Makes 10 (ES2019) the default value for the `ecmaVersion` option.
Version 6.3.0 ### New features `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.-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEErLY20j+/ljvJRHotcD8b7W0zrh4FAl1RNEUACgkQcD8b7W0z rh7qUQgAyfIH1YD7gTTs5sdLDECvytTNFdkUuqzkzncsT6cCR5rdZ6+UlM4g/mJH VmteQtJcAzYbe7yMWGcZ8yGzV/CC/IzGH40M6TIN65KnkTTHLdyEmV7vzt3vSlDt uPp7cd/6mB3caDnPIWC3gQq3y4a8mySlqyiGiu0wh2uKFkTIigV65lJiciws1SS4 SI+tiiZ0NxBNv1kx4hrltMTQZdkAJ1leZdJcqaar+QIc6aAG/YNv/jjZJyw9WcRz QDRhzNdCXX8iYdR2h6sXWOWpjY7N6yasG3TGD0U5kgXzrRhus3EoB0Fg+afq1Imd oOfb/+kQIiCZYFCB0O8tAudFvtHaPQ== =KtQS -----END PGP SIGNATURE-----
Version 6.2.0 ### Bug fixes Improve valid assignment checking in `for`/`in` and `for`/`of` loops. Disallow binding `let` in patterns. ### New features Support bigint syntax with `ecmaVersion` >= 10. Support dynamic `import` syntax with `ecmaVersion` >= 10. Upgrade to Unicode version 12.
Version 6.0.7 ### Bug fixes Check that exported bindings are defined. Don't treat `\u180e` as a whitespace character. Check for duplicate parameter names in methods. Don't allow shorthand properties when they are generators or async methods. Forbid binding `await` in async arrow function's parameter list.
Version 6.0.6 ### Bug fixes The content of class declarations and expressions is now always parsed in strict mode. Don't allow `let` or `const` to bind the variable name `let`. Treat class declarations as lexical. Don't allow a generator function declaration as the sole body of an `if` or `else`. Ignore `"use strict"` when after an empty statement. Allow string line continuations with special line terminator characters. Treat `for` bodies as part of the `for` scope when checking for conflicting bindings. Fix bug with parsing `yield` in a `for` loop initializer. Implement special cases around scope checking for functions.
PreviousNext