Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
Tweak version mappings to match compat-table updates (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism authored May 17, 2017
1 parent 0e917de commit abdbeec
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 47 deletions.
38 changes: 19 additions & 19 deletions data/built-ins.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"opera": 12,
"edge": 12,
"firefox": 15,
"safari": 5,
"safari": 5.1,
"node": 0.12,
"ie": 10,
"android": 4,
Expand Down Expand Up @@ -490,7 +490,7 @@
"chrome": 45,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 4,
"ios": 8,
"opera": 32,
Expand All @@ -500,7 +500,7 @@
"chrome": 45,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 4,
"ios": 8,
"opera": 32,
Expand All @@ -510,7 +510,7 @@
"chrome": 45,
"edge": 12,
"firefox": 31,
"safari": 8,
"safari": 7.1,
"node": 4,
"ios": 8,
"opera": 32,
Expand All @@ -520,7 +520,7 @@
"chrome": 38,
"edge": 12,
"firefox": 28,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand Down Expand Up @@ -606,7 +606,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -617,7 +617,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -628,7 +628,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -639,7 +639,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -661,7 +661,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -672,7 +672,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -683,7 +683,7 @@
"chrome": 38,
"edge": 12,
"firefox": 26,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -694,7 +694,7 @@
"chrome": 38,
"edge": 12,
"firefox": 27,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -716,7 +716,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -727,7 +727,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -738,7 +738,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -760,7 +760,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -771,7 +771,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand All @@ -782,7 +782,7 @@
"chrome": 38,
"edge": 12,
"firefox": 25,
"safari": 8,
"safari": 7.1,
"node": 0.12,
"android": 5.1,
"ios": 8,
Expand Down
2 changes: 1 addition & 1 deletion data/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"chrome": 44,
"edge": 12,
"firefox": 34,
"safari": 8,
"safari": 7.1,
"node": 4,
"ios": 8,
"opera": 31,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"babel-register": "^6.23.0",
"chai": "^3.5.0",
"codecov": "^1.0.1",
"compat-table": "kangax/compat-table#f49f1b23ad35e61819c388bc1876d936bc6ad8bf",
"compat-table": "kangax/compat-table#1f0bb0913736fe8c4c11b139766c73b9cbedb9f2",
"eslint": "^3.17.1",
"eslint-config-babel": "^6.0.0",
"eslint-plugin-flowtype": "^2.29.1",
Expand Down
25 changes: 1 addition & 24 deletions scripts/build-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,29 +125,6 @@ const environments = [
"phantom"
];

const envMap = {
safari51: "safari5",
safari71_8: "safari8",
safari10_1: "safari10.1",
firefox3_5: "firefox3",
firefox3_6: "firefox3",
node010: "node0.10",
node012: "node0.12",
iojs: "node3.3",
node64: "node6",
node65: "node6.5",
node76: "node7.6",
android40: "android4.0",
android41: "android4.1",
android42: "android4.2",
android43: "android4.3",
android44: "android4.4",
android50: "android5.0",
android51: "android5.1",
ios51: "ios5.1",
ios10_3: "ios10.3",
};

const compatibilityTests = flattenDeep([
es6,
es2016plus,
Expand Down Expand Up @@ -198,7 +175,7 @@ const getLowestImplementedVersion = ({ features }, env) => {
// Babel assumes strict mode
.filter((test) => tests[i].res[test] === true || tests[i].res[test] === "strict")
// normalize some keys
.map((test) => envMap[test] || test)
.map((test) => test.replace("_", "."))
.filter((test) => !isNaN(parseFloat(test.replace(env, ""))))
.shift();
});
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1270,9 +1270,9 @@ commoner@^0.10.1:
q "^1.1.2"
recast "^0.11.17"

compat-table@kangax/compat-table#f49f1b23ad35e61819c388bc1876d936bc6ad8bf:
compat-table@kangax/compat-table#1f0bb0913736fe8c4c11b139766c73b9cbedb9f2:
version "0.0.0"
resolved "https://codeload.github.com/kangax/compat-table/tar.gz/f49f1b23ad35e61819c388bc1876d936bc6ad8bf"
resolved "https://codeload.github.com/kangax/compat-table/tar.gz/1f0bb0913736fe8c4c11b139766c73b9cbedb9f2"
dependencies:
babel-core latest
babel-polyfill latest
Expand Down

0 comments on commit abdbeec

Please sign in to comment.