acorn
Advanced tools
Comparing version 6.1.1 to 6.2.0
@@ -0,1 +1,17 @@ | ||
## 6.2.0 (2019-07-04) | ||
### 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. | ||
## 6.1.1 (2019-02-27) | ||
@@ -2,0 +18,0 @@ |
@@ -7,7 +7,3 @@ 'use strict'; | ||
var infile; | ||
var forceFile; | ||
var silent = false; | ||
var compact = false; | ||
var tokenize = false; | ||
var infile, forceFile, silent = false, compact = false, tokenize = false; | ||
var options = {}; | ||
@@ -49,5 +45,5 @@ | ||
result = []; | ||
var tokenizer$$1 = acorn.tokenizer(code, options), token; | ||
var tokenizer = acorn.tokenizer(code, options), token; | ||
do { | ||
token = tokenizer$$1.getToken(); | ||
token = tokenizer.getToken(); | ||
result.push(token); | ||
@@ -57,3 +53,3 @@ } while (token.type !== acorn.tokTypes.eof) | ||
} catch (e) { | ||
console.error(e.message); | ||
console.error(infile && infile !== "-" ? e.message.replace(/\(\d+:\d+\)$/, function (m) { return m.slice(0, 1) + infile + " " + m.slice(1); }) : e.message); | ||
process.exit(1); | ||
@@ -60,0 +56,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"module": "dist/acorn.mjs", | ||
"version": "6.1.1", | ||
"version": "6.2.0", | ||
"engines": {"node": ">=0.4.0"}, | ||
@@ -10,0 +10,0 @@ "maintainers": [ |
@@ -57,3 +57,3 @@ # Acorn | ||
support). This influences support for strict mode, the set of | ||
reserved words, and support for new syntax features. Default is 7. | ||
reserved words, and support for new syntax features. Default is 9. | ||
@@ -264,8 +264,5 @@ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being | ||
- [`acorn-stage3`](https://github.com/acornjs/acorn-stage3): Parse most stage 3 proposals, bundling: | ||
- [`acorn-async-iteration`](https://github.com/acornjs/acorn-async-iteration): Parse [async iteration proposal](https://github.com/tc39/proposal-async-iteration) | ||
- [`acorn-bigint`](https://github.com/acornjs/acorn-bigint): Parse [BigInt proposal](https://github.com/tc39/proposal-bigint) | ||
- [`acorn-class-fields`](https://github.com/acornjs/acorn-class-fields): Parse [class fields proposal](https://github.com/tc39/proposal-class-fields) | ||
- [`acorn-dynamic-import`](https://github.com/kesne/acorn-dynamic-import): Parse [import() proposal](https://github.com/tc39/proposal-dynamic-import) | ||
- [`acorn-import-meta`](https://github.com/acornjs/acorn-import-meta): Parse [import.meta proposal](https://github.com/tc39/proposal-import-meta) | ||
- [`acorn-numeric-separator`](https://github.com/acornjs/acorn-numeric-separator): Parse [numeric separator proposal](https://github.com/tc39/proposal-numeric-separator) | ||
- [`acorn-private-methods`](https://github.com/acornjs/acorn-private-methods): parse [private methods, getters and setters proposal](https://github.com/tc39/proposal-private-methods)n |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1101068
9039
267