Skip to content

Commit

Permalink
Update compat data (#13008)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 19, 2021
1 parent 52d2716 commit 020c88e
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 15 deletions.
3 changes: 3 additions & 0 deletions packages/babel-compat-data/data/overlapping-plugins.json
Expand Up @@ -14,5 +14,8 @@
],
"transform-template-literals": [
"bugfix/transform-tagged-template-caching"
],
"proposal-optional-chaining": [
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
]
}
16 changes: 16 additions & 0 deletions packages/babel-compat-data/data/plugin-bugfixes.json
Expand Up @@ -121,5 +121,21 @@
"ios": "13",
"samsung": "3.4",
"electron": "0.21"
},
"proposal-optional-chaining": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "74",
"safari": "13.1",
"node": "14",
"ios": "13.4",
"samsung": "13",
"electron": "8.0"
},
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
"firefox": "74",
"safari": "13.1",
"ios": "13.4"
}
}
8 changes: 1 addition & 7 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -47,15 +47,9 @@
"electron": "8.0"
},
"proposal-optional-chaining": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "74",
"safari": "13.1",
"node": "14",
"ios": "13.4",
"samsung": "13",
"electron": "8.0"
"ios": "13.4"
},
"proposal-json-strings": {
"chrome": "66",
Expand Down
5 changes: 4 additions & 1 deletion packages/babel-compat-data/scripts/build-bugfixes-targets.js
Expand Up @@ -44,7 +44,10 @@ for (const [plugin, { replaces, features }] of Object.entries(data)) {

for (const [replaced, features] of Object.entries(allReplacedFeatures)) {
let replacedFeatures = pluginFeatures[replaced];
if (!Array.isArray(replacedFeatures)) {
if (
typeof replacedFeatures === "object" &&
!Array.isArray(replacedFeatures)
) {
replacedFeatures = replacedFeatures.features;
}

Expand Down
6 changes: 6 additions & 0 deletions packages/babel-compat-data/scripts/data/plugin-bugfixes.js
Expand Up @@ -35,4 +35,10 @@ module.exports = {
features: ["template literals / TemplateStrings permanent caching"],
replaces: "transform-template-literals",
},
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
features: [
"optional chaining operator (?.) / spread parameters after optional chaining",
],
replaces: "proposal-optional-chaining",
},
};
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

COMPAT_TABLE_COMMIT=ec317e988ed0011cc5d24364e0f4f3a2e86d1f7f
COMPAT_TABLE_COMMIT=ab73608bddb6895f6f3296c03dba057b47ba8aea
GIT_HEAD=build/compat-table/.git/HEAD

if [ -d "build/compat-table" ]; then
Expand Down
Expand Up @@ -18,7 +18,7 @@ Using plugins:
proposal-numeric-separator { "ios":"12.2" }
proposal-logical-assignment-operators { "chrome":"84", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "android":"85", "chrome":"84", "edge":"85", "ios":"12.2", "opera":"71", "samsung":"11.1" }
syntax-json-strings { "android":"85", "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
syntax-optional-catch-binding { "android":"85", "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
syntax-async-generators { "android":"85", "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
Expand Down
Expand Up @@ -19,7 +19,7 @@ Using plugins:
proposal-numeric-separator { "ie":"11", "ios":"12.2" }
proposal-logical-assignment-operators { "chrome":"84", "firefox":"78", "ie":"11", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "ie":"11", "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "ie":"11", "ios":"12.2", "samsung":"11.1" }
proposal-optional-chaining { "android":"85", "chrome":"84", "edge":"85", "ie":"11", "ios":"12.2", "opera":"71", "samsung":"11.1" }
proposal-json-strings { "ie":"11" }
proposal-optional-catch-binding { "ie":"11" }
transform-parameters { "ie":"11" }
Expand Down
Expand Up @@ -18,7 +18,7 @@ Using plugins:
syntax-numeric-separator { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-logical-assignment-operators { "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "samsung":"11.1" }
proposal-optional-chaining { "samsung":"11.1" }
proposal-optional-chaining { "android":"85", "chrome":"85", "edge":"85", "opera":"71", "samsung":"11.1" }
syntax-json-strings { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
syntax-optional-catch-binding { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
syntax-async-generators { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
Expand Down
Expand Up @@ -13,7 +13,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" }
proposal-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" }
Expand Down
Expand Up @@ -12,7 +12,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"84" }
proposal-logical-assignment-operators { "chrome":"84" }
syntax-nullish-coalescing-operator { "chrome":"84" }
syntax-optional-chaining { "chrome":"84" }
proposal-optional-chaining { "chrome":"84" }
syntax-json-strings { "chrome":"84" }
syntax-optional-catch-binding { "chrome":"84" }
syntax-async-generators { "chrome":"84" }
Expand Down
Expand Up @@ -11,7 +11,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" }
proposal-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" }
Expand Down

0 comments on commit 020c88e

Please sign in to comment.