Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compat data #13008

Merged
merged 4 commits into from Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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-after-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-after-optional-chaining": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT bugfix/v8-spread-parameters-after-optional-chaining? I can't think of any term other transform that could follow bugfix/.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: in, not after?

"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-after-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