[Snyk] Upgrade acorn from 5.7.3 to 7.1.0 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade
acorn
from 5.7.3 to 7.1.0.Warning: This is a major version upgrade, and may be a breaking change.
Release notes
Bug fixes
Disallow trailing object literal commas when ecmaVersion is less than 5.
New features
Add a static
acorn
property to theParser
class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.Breaking changes
Changes the node format for dynamic imports to use the
ImportExpression
node type, as defined in ESTree.Makes 10 (ES2019) the default value for the
ecmaVersion
option.New features
sourceType: "module"
can now be used even whenecmaVersion
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-----
Bug fixes
Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
Fix issue where setting the
allowReserved
option to"never"
allowed reserved words in some circumstances.Bug fixes
Improve valid assignment checking in
for
/in
andfor
/of
loops.Disallow binding
let
in patterns.New features
Support bigint syntax with
ecmaVersion
>= 10.Support dynamic
import
syntax withecmaVersion
>= 10.Upgrade to Unicode version 12.
Bug fixes
Fix bug that caused parsing default exports of with names to fail.
Bug fixes
Fix scope checking when redefining a
var
as a lexical binding.New features
Split up
parseSubscripts
to use an internalparseSubscript
method to make it easier to extend with plugins.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.Bug fixes
The content of class declarations and expressions is now always parsed in strict mode.
Don't allow
let
orconst
to bind the variable namelet
.Treat class declarations as lexical.
Don't allow a generator function declaration as the sole body of an
if
orelse
.Ignore
"use strict"
when after an empty statement.Allow string line continuations with special line terminator characters.
Treat
for
bodies as part of thefor
scope when checking for conflicting bindings.Fix bug with parsing
yield
in afor
loop initializer.Implement special cases around scope checking for functions.
Bug fixes
Fix TypeScript type for
Parser.extend
and addallowAwaitOutsideFunction
to options type.Don't treat
let
as a keyword when the next token is{
on the next line.Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when
preserveParens
was on.馃 View latest project report
馃洜 Adjust upgrade PR settings
馃敃 Ignore this dependency or unsubscribe from future upgrade PRs