Skip to content

Commit

Permalink
Update mapping for regex unicode plugin in preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Nov 28, 2018
1 parent 61f2aed commit cf17fb5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/babel-preset-env/data/plugin-features.js
Expand Up @@ -49,6 +49,7 @@ const es = {
features: [
'RegExp "y" and "u" flags / "u" flag, case folding',
'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes',
'RegExp "y" and "u" flags / "u" flag, non-BMP Unicode characters',
'RegExp "y" and "u" flags / "u" flag',
],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-preset-env/data/plugins.json
Expand Up @@ -131,9 +131,9 @@
"chrome": "50",
"edge": "13",
"firefox": "46",
"safari": "10",
"safari": "12",
"node": "6",
"ios": "10",
"ios": "12",
"opera": "37",
"electron": "1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-env/package.json
Expand Up @@ -65,7 +65,7 @@
"@babel/helper-fixtures": "^7.0.0",
"@babel/helper-plugin-test-runner": "^7.0.0",
"caniuse-db": "1.0.30000851",
"compat-table": "kangax/compat-table#5c8c113068e15298abd300ec9d064abb5edc636e",
"compat-table": "kangax/compat-table#29ec2bed5a475b42388866cfc7d24f3f44b12eba",
"electron-to-chromium": "1.3.79"
}
}
4 changes: 2 additions & 2 deletions packages/babel-preset-env/scripts/build-data.js
Expand Up @@ -232,8 +232,8 @@ const getLowestImplementedVersion = ({ features }, env) => {
return envTests
.map(str => str.replace(env, ""))
.reduce((a, b) => {
if (b === unreleasedLabelForEnv) {
return b;
if (a === unreleasedLabelForEnv || b === unreleasedLabelForEnv) {
return unreleasedLabelForEnv;
}

return semver.lt(semver.coerce(a), semver.coerce(b)) ? b : a;
Expand Down

0 comments on commit cf17fb5

Please sign in to comment.