Update compat table (#11039)

* Fix compat-data build script

* Update compat table

* Update mappings for transform-parameters

kangax/compat-table#1570

* Update unrelated fixture

* Update
This commit is contained in:
Nicolò Ribaudo
2020-01-27 22:23:27 +01:00
committed by GitHub
parent 916429b516
commit eae6211258
5 changed files with 104 additions and 82 deletions

View File

@@ -234,12 +234,8 @@ const getLowestImplementedVersion = ({ features }, env) => {
}
return envFiltered.reduce((a, b) => {
if (
a.semver === unreleasedLabelForEnv ||
b.semver === unreleasedLabelForEnv
) {
return unreleasedLabelForEnv;
}
if (a.semver === unreleasedLabelForEnv) return a;
if (b.semver === unreleasedLabelForEnv) return b;
return semver.lt(a.semver, b.semver) ? b : a;
});

View File

@@ -64,7 +64,8 @@ const es2015 = {
features: [
"default function parameters",
"rest parameters",
"destructuring, parameters / defaults, arrow function",
"destructuring, parameters / aliased defaults, arrow function",
"destructuring, parameters / shorthand defaults, arrow function",
],
},
"transform-destructuring": {

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -e
COMPAT_TABLE_COMMIT=4195aca631ad904cb0efeb62a9c2d8c8511706f8
COMPAT_TABLE_COMMIT=4e9369a699b0e15ba5c21586ce3bdd34299db9c1
rm -rf build/compat-table
mkdir -p build
git clone --branch=gh-pages --single-branch --shallow-since=2019-11-14 https://github.com/kangax/compat-table.git build/compat-table