Socket
Socket
Sign inDemoInstall

acorn-stage3

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-stage3 - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 4.0.0 (2020-08-13)
* Require acorn ^7.4 or ^8
## 3.1.0 (2020-08-13)

@@ -2,0 +6,0 @@

4

index.js

@@ -5,8 +5,6 @@ "use strict"

return Parser.extend(
require("acorn-numeric-separator"),
require("acorn-class-fields"),
require("acorn-static-class-features"),
require("acorn-private-methods"),
require("acorn-logical-assignment")
require("acorn-private-methods")
)
}

@@ -1,16 +0,16 @@

| | ECMAScript | | acorn | | | | acorn-stage3| | |
| | 2020 | stage 3 | 6.1 | 6.2 | 7.2 | 7.3 | 2.0 | 2.1 | 3.0 |
|-----------------------|-------|---------|-----|-----|-----------|-----|-----|-----|
| dynamic-import | x | - | - | x | x | x | x | x | - |
| bigint | x | - | - | x | x | x | x | x | - |
| import-meta | x | - | - | - | x | x | x | x | - |
| export-ns-from | x | - | - | - | x | x | x | x | - |
| nullish-coalescing | x | - | - | - | x | x | - | - | - |
| optional-chaining | x | - | - | - | - | x | - | - | - |
| hashbang | - | x | x | x | x | x | - | - | - |
| top-level-await | - | x | x | x | x | x | - | - | - |
| numeric-separator | - | x | - | - | - | - | - | x | x |
| class-fields | - | x | - | - | - | - | x | x | x |
| private-methods | - | x | - | - | - | - | x | x | x |
| static-class-features | - | x | - | - | - | - | x | x | x |
| logical-assignment | - | x | - | - | - | - | - | x | x |
| | ECMAScript | | acorn | | | | acorn-stage3| | |
| | 2020 | stage 3 | 6.1 | 6.2 | 7.2 | 7.3 | 7.4 | 2.0 | 2.1 | 3.0 |
|-----------------------|-------|---------|-----|-----|-----------|-----|-----|-----|-----|
| dynamic-import | x | - | - | x | x | x | x | x | x | - |
| bigint | x | - | - | x | x | x | x | x | x | - |
| import-meta | x | - | - | - | x | x | x | x | x | - |
| export-ns-from | x | - | - | - | x | x | x | x | x | - |
| nullish-coalescing | x | - | - | - | x | x | x | - | - | - |
| optional-chaining | x | - | - | - | - | x | x | - | - | - |
| hashbang | - | x | x | x | x | x | x | - | - | - |
| top-level-await | - | x | x | x | x | x | x | - | - | - |
| numeric-separator | - | x | - | - | - | - | x | - | x | x |
| logical-assignment | - | x | - | - | - | - | x | - | x | x |
| class-fields | - | x | - | - | - | - | - | x | x | x |
| private-methods | - | x | - | - | - | - | - | x | x | x |
| static-class-features | - | x | - | - | - | - | - | x | x | x |

@@ -22,12 +22,10 @@ {

"peerDependencies": {
"acorn": "^7 || ^8"
"acorn": "^7.4 || ^8"
},
"dependencies": {
"acorn-class-fields": "^0.3.7",
"acorn-logical-assignment": "^0.1.4",
"acorn-numeric-separator": "^0.3.6",
"acorn-private-methods": "^0.3.3",
"acorn-static-class-features": "^0.2.4"
},
"version": "3.1.0",
"version": "4.0.0",
"devDependencies": {

@@ -34,0 +32,0 @@ "acorn": "^8",

@@ -14,3 +14,3 @@ "use strict"

run(
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 11, allowHashBang: true, allowAwaitOutsideFunction: true}),
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 12, allowHashBang: true, allowAwaitOutsideFunction: true}),
{

@@ -17,0 +17,0 @@ testsDirectory: path.dirname(require.resolve("test262/package.json")),

@@ -10,3 +10,3 @@ "use strict"

const parse = testCode => Parser.parse(testCode, { ecmaVersion: 11, sourceType: "module" })
const parse = testCode => Parser.parse(testCode, { ecmaVersion: 12, sourceType: "module" })

@@ -23,3 +23,3 @@ function test(testCode, ast) {

try {
Parser.parse(text, Object.assign({ ecmaVersion: 11, plugins: { numericSeparator: true } }, additionalOptions))
Parser.parse(text, Object.assign({ ecmaVersion: 12, additionalOptions }))
} catch (e) {

@@ -26,0 +26,0 @@ assert.strictEqual(e.message, expectedError)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc