Comparing version 4.0.0-alpha.1 to 4.0.0-rc.0
@@ -0,1 +1,8 @@ | ||
v4.0.0-rc.0 - June 9, 2018 | ||
* d8224c4 Build: Adding rc release script to package.json (#383) (Kevin Partington) | ||
* 4207773 Build: add node 10 (#381) (薛定谔的猫) | ||
* cd9da7e Update: upgrade acorn to support two ES2019 syntax (#380) (Toru Nagashima) | ||
* 8cb3ceb Chore: remove Object.assign polyfill (#382) (薛定谔的猫) | ||
v4.0.0-alpha.1 - May 28, 2018 | ||
@@ -2,0 +9,0 @@ |
@@ -75,22 +75,2 @@ /** | ||
/** | ||
* Object.assign polyfill for Node < 4 | ||
* @param {Object} target The target object | ||
* @param {...Object} sources Sources for the object | ||
* @returns {Object} `target` after being mutated | ||
*/ | ||
var assign = Object.assign || function assign(target) { | ||
for (var argIndex = 1; argIndex < arguments.length; argIndex++) { | ||
if (arguments[argIndex] !== null && typeof arguments[argIndex] === "object") { | ||
var keys = Object.keys(arguments[argIndex]); | ||
for (var keyIndex = 0; keyIndex < keys.length; keyIndex++) { | ||
target[keys[keyIndex]] = arguments[argIndex][keys[keyIndex]]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
/** | ||
* Resets the extra object to its default. | ||
@@ -146,2 +126,3 @@ * @returns {void} | ||
case 9: | ||
case 10: | ||
return version; | ||
@@ -375,3 +356,3 @@ | ||
// Options matching. | ||
options = assign({}, options); | ||
options = Object.assign({}, options); | ||
@@ -412,3 +393,3 @@ var acornOptions = { | ||
if (options.ecmaFeatures && typeof options.ecmaFeatures === "object") { | ||
extra.ecmaFeatures = assign({}, options.ecmaFeatures); | ||
extra.ecmaFeatures = Object.assign({}, options.ecmaFeatures); | ||
impliedStrict = extra.ecmaFeatures.impliedStrict; | ||
@@ -549,3 +530,3 @@ extra.ecmaFeatures.impliedStrict = typeof impliedStrict === "boolean" && impliedStrict; | ||
if (options.ecmaFeatures && typeof options.ecmaFeatures === "object") { | ||
extra.ecmaFeatures = assign({}, options.ecmaFeatures); | ||
extra.ecmaFeatures = Object.assign({}, options.ecmaFeatures); | ||
impliedStrict = extra.ecmaFeatures.impliedStrict; | ||
@@ -552,0 +533,0 @@ extra.ecmaFeatures.impliedStrict = typeof impliedStrict === "boolean" && impliedStrict; |
@@ -7,3 +7,3 @@ { | ||
"main": "espree.js", | ||
"version": "4.0.0-alpha.1", | ||
"version": "4.0.0-rc.0", | ||
"files": [ | ||
@@ -22,3 +22,3 @@ "lib", | ||
"dependencies": { | ||
"acorn": "^5.5.1", | ||
"acorn": "^5.6.0", | ||
"acorn-jsx": "^4.1.1" | ||
@@ -60,4 +60,5 @@ }, | ||
"betarelease": "eslint-prerelease beta", | ||
"rcrelease": "eslint-prerelease rc", | ||
"browserify": "node Makefile.js browserify" | ||
} | ||
} |
@@ -49,4 +49,4 @@ [![npm version](https://img.shields.io/npm/v/espree.svg)](https://www.npmjs.com/package/espree) | ||
// Set to 3, 5 (default), 6, 7, 8, or 9 to specify the version of ECMAScript syntax you want to use. | ||
// You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), or 2018 (same as 9) to use the year-based naming. | ||
// Set to 3, 5 (default), 6, 7, 8, 9, or 10 to specify the version of ECMAScript syntax you want to use. | ||
// You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), or 2019 (same as 10) to use the year-based naming. | ||
ecmaVersion: 5, | ||
@@ -147,10 +147,23 @@ | ||
Because ECMAScript 2018 is still under development, we are implementing features as they are finalized. Currently, Espree supports: | ||
There are seven ECMAScript 2018 syntax changes: | ||
* Invalid escape sequences in tagged template literals | ||
* Rest/spread properties | ||
* Async Iteration | ||
* Async iteration | ||
* RegExp `s` flag | ||
* RegExp named capture groups | ||
* RegExp lookhehind assersions | ||
* RegExp unicode property escapes | ||
Espree supports all of them. | ||
### What ECMAScript 2019 features do you support? | ||
Because ECMAScript 2019 is still under development, we are implementing features as they are finalized. Currently, Espree supports: | ||
* Optional `catch` binding | ||
* JSON superset (`\u2028` and `\u2029` in string literals) | ||
### How do you determine which experimental features to support? | ||
In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73428
168
1140
Updatedacorn@^5.6.0