Socket
Socket
Sign inDemoInstall

acorn

Package Overview
Dependencies
0
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.1.0

14

CHANGELOG.md

@@ -0,1 +1,11 @@

## 7.1.0 (2019-09-24)
### 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.
## 7.0.0 (2019-08-13)

@@ -33,5 +43,5 @@

Support bigint syntax with `ecmaVersion` >= 10.
Support bigint syntax with `ecmaVersion` >= 11.
Support dynamic `import` syntax with `ecmaVersion` >= 10.
Support dynamic `import` syntax with `ecmaVersion` >= 11.

@@ -38,0 +48,0 @@ Upgrade to Unicode version 12.

2

dist/acorn.d.ts

@@ -15,3 +15,3 @@ export as namespace acorn

interface Options {
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 2015 | 2016 | 2017 | 2018 | 2019
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020
sourceType?: 'script' | 'module'

@@ -18,0 +18,0 @@ onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void

@@ -7,3 +7,3 @@ {

"module": "dist/acorn.mjs",
"version": "7.0.0",
"version": "7.1.0",
"engines": {"node": ">=0.4.0"},

@@ -10,0 +10,0 @@ "maintainers": [

@@ -55,5 +55,6 @@ # Acorn

- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018) or 10 (2019, partial
support). This influences support for strict mode, the set of
reserved words, and support for new syntax features. Default is 10.
either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019) or 11
(2020, partial support). This influences support for strict mode,
the set of reserved words, and support for new syntax features.
Default is 10.

@@ -60,0 +61,0 @@ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc