Update compat data (#13008)

This commit is contained in:
Huáng Jùnliàng 2021-03-19 08:33:59 -04:00 committed by GitHub
parent 52d2716bf6
commit 020c88e74b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 37 additions and 15 deletions

View File

@ -14,5 +14,8 @@
], ],
"transform-template-literals": [ "transform-template-literals": [
"bugfix/transform-tagged-template-caching" "bugfix/transform-tagged-template-caching"
],
"proposal-optional-chaining": [
"bugfix/transform-v8-spread-parameters-in-optional-chaining"
] ]
} }

View File

@ -121,5 +121,21 @@
"ios": "13", "ios": "13",
"samsung": "3.4", "samsung": "3.4",
"electron": "0.21" "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"
} }
} }

View File

@ -47,15 +47,9 @@
"electron": "8.0" "electron": "8.0"
}, },
"proposal-optional-chaining": { "proposal-optional-chaining": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "74", "firefox": "74",
"safari": "13.1", "safari": "13.1",
"node": "14", "ios": "13.4"
"ios": "13.4",
"samsung": "13",
"electron": "8.0"
}, },
"proposal-json-strings": { "proposal-json-strings": {
"chrome": "66", "chrome": "66",

View File

@ -44,7 +44,10 @@ for (const [plugin, { replaces, features }] of Object.entries(data)) {
for (const [replaced, features] of Object.entries(allReplacedFeatures)) { for (const [replaced, features] of Object.entries(allReplacedFeatures)) {
let replacedFeatures = pluginFeatures[replaced]; let replacedFeatures = pluginFeatures[replaced];
if (!Array.isArray(replacedFeatures)) { if (
typeof replacedFeatures === "object" &&
!Array.isArray(replacedFeatures)
) {
replacedFeatures = replacedFeatures.features; replacedFeatures = replacedFeatures.features;
} }

View File

@ -35,4 +35,10 @@ module.exports = {
features: ["template literals / TemplateStrings permanent caching"], features: ["template literals / TemplateStrings permanent caching"],
replaces: "transform-template-literals", 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",
},
}; };

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
COMPAT_TABLE_COMMIT=ec317e988ed0011cc5d24364e0f4f3a2e86d1f7f COMPAT_TABLE_COMMIT=ab73608bddb6895f6f3296c03dba057b47ba8aea
GIT_HEAD=build/compat-table/.git/HEAD GIT_HEAD=build/compat-table/.git/HEAD
if [ -d "build/compat-table" ]; then if [ -d "build/compat-table" ]; then

View File

@ -18,7 +18,7 @@ Using plugins:
proposal-numeric-separator { "ios":"12.2" } 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-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-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-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-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" } syntax-async-generators { "android":"85", "chrome":"84", "edge":"85", "firefox":"78", "ios":"12.2", "opera":"71", "safari":"13.1", "samsung":"11.1" }

View File

@ -19,7 +19,7 @@ Using plugins:
proposal-numeric-separator { "ie":"11", "ios":"12.2" } 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-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-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-json-strings { "ie":"11" }
proposal-optional-catch-binding { "ie":"11" } proposal-optional-catch-binding { "ie":"11" }
transform-parameters { "ie":"11" } transform-parameters { "ie":"11" }

View File

@ -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" } 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-logical-assignment-operators { "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }
proposal-nullish-coalescing-operator { "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-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-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" } syntax-async-generators { "android":"85", "chrome":"85", "edge":"85", "firefox":"81", "ios":"13.4", "opera":"71", "safari":"13.1", "samsung":"11.1" }

View File

@ -13,7 +13,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"80" } syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" } proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" } syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" } proposal-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" } syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" } syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" } syntax-async-generators { "chrome":"80" }

View File

@ -12,7 +12,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"84" } syntax-numeric-separator { "chrome":"84" }
proposal-logical-assignment-operators { "chrome":"84" } proposal-logical-assignment-operators { "chrome":"84" }
syntax-nullish-coalescing-operator { "chrome":"84" } syntax-nullish-coalescing-operator { "chrome":"84" }
syntax-optional-chaining { "chrome":"84" } proposal-optional-chaining { "chrome":"84" }
syntax-json-strings { "chrome":"84" } syntax-json-strings { "chrome":"84" }
syntax-optional-catch-binding { "chrome":"84" } syntax-optional-catch-binding { "chrome":"84" }
syntax-async-generators { "chrome":"84" } syntax-async-generators { "chrome":"84" }

View File

@ -11,7 +11,7 @@ Using plugins:
syntax-numeric-separator { "chrome":"80" } syntax-numeric-separator { "chrome":"80" }
proposal-logical-assignment-operators { "chrome":"80" } proposal-logical-assignment-operators { "chrome":"80" }
syntax-nullish-coalescing-operator { "chrome":"80" } syntax-nullish-coalescing-operator { "chrome":"80" }
syntax-optional-chaining { "chrome":"80" } proposal-optional-chaining { "chrome":"80" }
syntax-json-strings { "chrome":"80" } syntax-json-strings { "chrome":"80" }
syntax-optional-catch-binding { "chrome":"80" } syntax-optional-catch-binding { "chrome":"80" }
syntax-async-generators { "chrome":"80" } syntax-async-generators { "chrome":"80" }