acorn-loose
Advanced tools
Comparing version 7.1.0 to 8.0.0
@@ -0,1 +1,11 @@ | ||
## 8.0.0 (2020-08-12) | ||
### New features | ||
The package can now be loaded directly as an ECMAScript module in node 13+. | ||
### Breaking changes | ||
The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release. | ||
## 7.1.0 (2020-06-11) | ||
@@ -2,0 +12,0 @@ |
@@ -1030,3 +1030,3 @@ (function (global, factory) { | ||
node.raw = this.input.slice(this.tok.start, this.tok.end); | ||
if (this.tok.type === acorn.tokTypes.num && node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1); } | ||
if (this.tok.type === acorn.tokTypes.num && node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); } | ||
this.next(); | ||
@@ -1033,0 +1033,0 @@ return this.finishNode(node, "Literal") |
@@ -7,6 +7,10 @@ { | ||
"module": "dist/acorn-loose.mjs", | ||
"version": "7.1.0", | ||
"exports": { | ||
"import": "./dist/acorn-loose.mjs", | ||
"require": "./dist/acorn-loose.js" | ||
}, | ||
"version": "8.0.0", | ||
"engines": {"node": ">=0.4.0"}, | ||
"dependencies": { | ||
"acorn": "^7.0.0" | ||
"acorn": "^8.0.0" | ||
}, | ||
@@ -13,0 +17,0 @@ "maintainers": [ |
@@ -55,3 +55,3 @@ # Acorn loose parser | ||
var acornLoose = require("acorn-loose"); | ||
console.log(acornLoose.parse("1 / * 4 )[2]")); | ||
console.log(acornLoose.parse("1 / * 4 )[2]", {ecmaVersion: 2020})); | ||
``` | ||
@@ -58,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
306017
+ Addedacorn@8.14.0(transitive)
- Removedacorn@7.4.1(transitive)
Updatedacorn@^8.0.0