From a26c35e72283c98ac3c01ed819712db029bfd203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 29 Aug 2024 15:59:43 +0200 Subject: [PATCH] Update compat-table (#220) --- .../data/polyfills.json | 164 +++++++++++++++--- scripts/download-compat-table.js | 2 +- 2 files changed, 144 insertions(+), 22 deletions(-) diff --git a/packages/babel-plugin-polyfill-es-shims/data/polyfills.json b/packages/babel-plugin-polyfill-es-shims/data/polyfills.json index 93397b62..c45d4b92 100644 --- a/packages/babel-plugin-polyfill-es-shims/data/polyfills.json +++ b/packages/babel-plugin-polyfill-es-shims/data/polyfills.json @@ -324,7 +324,13 @@ "samsung": "9", "electron": "3" }, - "ArrayBuffer.prototype.transfer": {}, + "ArrayBuffer.prototype.transfer": { + "chrome": "126", + "opera": "112", + "edge": "126", + "firefox": "122", + "electron": "31" + }, "Date.prototype.toISOString": { "chrome": "5", "opera": "10.50", @@ -390,19 +396,84 @@ "samsung": "1", "electron": "0.20" }, - "Iterator": {}, - "Iterator.from": {}, - "Iterator.prototype.drop": {}, - "Iterator.prototype.every": {}, - "Iterator.prototype.filter": {}, - "Iterator.prototype.find": {}, - "Iterator.prototype.flatMap": {}, - "Iterator.prototype.forEach": {}, - "Iterator.prototype.map": {}, - "Iterator.prototype.reduce": {}, - "Iterator.prototype.some": {}, - "Iterator.prototype.take": {}, - "Iterator.prototype.toArray": {}, + "Iterator": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.from": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.drop": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.every": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.filter": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.find": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.flatMap": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.forEach": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.map": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.reduce": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.some": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.take": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, + "Iterator.prototype.toArray": { + "chrome": "126", + "opera": "112", + "edge": "126", + "electron": "31" + }, "Map": { "chrome": "51", "opera": "38", @@ -791,23 +862,74 @@ "electron": "1.2" }, "Set.prototype.difference": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", "safari": "17", - "ios": "17" + "node": "22", + "ios": "17", + "electron": "29" }, "Set.prototype.intersection": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", + "safari": "17", + "node": "22", + "ios": "17", + "electron": "29" + }, + "Set.prototype.isDisjointFrom": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", + "safari": "17", + "node": "22", + "ios": "17", + "electron": "29" + }, + "Set.prototype.isSubsetOf": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", + "safari": "17", + "node": "22", + "ios": "17", + "electron": "29" + }, + "Set.prototype.isSupersetOf": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", "safari": "17", - "ios": "17" + "node": "22", + "ios": "17", + "electron": "29" }, - "Set.prototype.isDisjointFrom": {}, - "Set.prototype.isSubsetOf": {}, - "Set.prototype.isSupersetOf": {}, "Set.prototype.symmetricDifference": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", "safari": "17", - "ios": "17" + "node": "22", + "ios": "17", + "electron": "29" }, "Set.prototype.union": { + "chrome": "122", + "opera": "108", + "edge": "122", + "firefox": "127", "safari": "17", - "ios": "17" + "node": "22", + "ios": "17", + "electron": "29" }, "String.fromCodePoint": { "chrome": "41", diff --git a/scripts/download-compat-table.js b/scripts/download-compat-table.js index 3ecefcd9..dfec3ee5 100644 --- a/scripts/download-compat-table.js +++ b/scripts/download-compat-table.js @@ -3,7 +3,7 @@ const { existsSync, mkdirSync } = require("fs"); const path = require("path"); const rimraf = require("rimraf"); -const COMPAT_TABLE_COMMIT = "459ee154ee35e1cf55fc9179178d072badf8c67d"; +const COMPAT_TABLE_COMMIT = "fb3c71d4fea9b376c353752b28be38febd99688c"; const COMPAT_TABLE_PATH = "build/compat-table"; if (existsSync(COMPAT_TABLE_PATH)) {