From b76b54f928ebea590d716e27a0f57d21b4bade40 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Fri, 15 Dec 2023 12:01:44 -0500 Subject: [PATCH] run `make update-compat-table` --- compat-table/package-lock.json | 16 ++++++++-------- compat-table/package.json | 6 +++--- compat-table/src/mdn.ts | 3 ++- internal/compat/js_table.go | 9 +++------ 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/compat-table/package-lock.json b/compat-table/package-lock.json index 8f2ce8a34fc..2253c748a89 100644 --- a/compat-table/package-lock.json +++ b/compat-table/package-lock.json @@ -5,16 +5,16 @@ "packages": { "": { "dependencies": { - "@mdn/browser-compat-data": "5.4.1", + "@mdn/browser-compat-data": "5.5.0", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001565" + "caniuse-lite": "1.0.30001570" } }, "node_modules/@mdn/browser-compat-data": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.4.1.tgz", - "integrity": "sha512-rD1yrH+vrinzmdgtLjj7qeE4FmYh0VezWQaB3DqVrLSBcGtz61pqV/yCO7piJQc8XmgOIKQIF9Go3LUdS9ORHg==" + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.0.tgz", + "integrity": "sha512-H+jO7BSlQAf7W1md2+CcBeWGhfOpuYSOemm0cCU3ffyWEodOJLIODaYSe6+Y1hQ8JxprsoXHFwGau8Hzudd70A==" }, "node_modules/@types/caniuse-lite": { "version": "1.0.1", @@ -27,9 +27,9 @@ "integrity": "sha512-vOBLVQeCQfIcF/2Y7eKFTqrMnizK5lRNQ7ykML/5RuwVXVWxYkgwS7xbt4B6fKCUPgbSL5FSsjHQpaGQP/dQmw==" }, "node_modules/caniuse-lite": { - "version": "1.0.30001565", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", - "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", + "version": "1.0.30001570", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz", + "integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==", "funding": [ { "type": "opencollective", diff --git a/compat-table/package.json b/compat-table/package.json index 9dfffc9d2d1..e42914487c6 100644 --- a/compat-table/package.json +++ b/compat-table/package.json @@ -1,12 +1,12 @@ { "githubDependencies": { "kangax/compat-table": "1a1ccdc02b8b2158ab39a6146d8a7308f43c830b", - "williamkapke/node-compat-table": "087ff2079fbeb7e0a05ee11a55e1612e0ab2dc27" + "williamkapke/node-compat-table": "e1d91f8e5c21dc09690f57b5656b382ae1fcdcf4" }, "dependencies": { - "@mdn/browser-compat-data": "5.4.1", + "@mdn/browser-compat-data": "5.5.0", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001565" + "caniuse-lite": "1.0.30001570" } } diff --git a/compat-table/src/mdn.ts b/compat-table/src/mdn.ts index 16f4087c2c7..807847750a1 100644 --- a/compat-table/src/mdn.ts +++ b/compat-table/src/mdn.ts @@ -18,7 +18,7 @@ const supportedEnvironments: Record = { const jsFeatures: Partial> = { ClassStaticBlocks: 'javascript.classes.static_initialization_blocks', ExportStarAs: 'javascript.statements.export.namespace', - ImportAssertions: 'javascript.statements.import.import_attribues_assert', + ImportAssertions: 'javascript.statements.import.import_assertions', ImportAttributes: 'javascript.statements.import.import_attributes', ImportMeta: 'javascript.operators.import_meta', RegexpMatchIndices: 'javascript.builtins.RegExp.hasIndices', @@ -123,6 +123,7 @@ const extractProperty = (object: any, fullKey: string): any => { for (const key of fullKey.split('.')) { object = object[key] } + if (!object) throw new Error(`Failed to find "${fullKey}"`) return object } diff --git a/internal/compat/js_table.go b/internal/compat/js_table.go index e399214b00f..f96db798cf7 100644 --- a/internal/compat/js_table.go +++ b/internal/compat/js_table.go @@ -586,7 +586,7 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{ }, ImportAttributes: { Deno: {{start: v{1, 37, 0}}}, - Node: {{start: v{21, 0, 0}}}, + Node: {{start: v{20, 10, 0}}}, }, ImportMeta: { Chrome: {{start: v{64, 0, 0}}}, @@ -806,13 +806,10 @@ var jsTable = map[JSFeature]map[Engine][]versionRange{ // Note: The latest version of "Hermes" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11 // Note: The latest version of "IE" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11 // Note: The latest version of "IOS" failed this test: RegExp Unicode Property Escapes: Unicode 15.1 - // Note: The latest version of "Node" failed this test: RegExp Unicode Property Escapes: Unicode 15.1 // Note: The latest version of "Rhino" failed 8 tests including: RegExp Unicode Property Escapes: Unicode 11 // Note: The latest version of "Safari" failed this test: RegExp Unicode Property Escapes: Unicode 15.1 - Deno: {{start: v{1, 31, 0}}}, - Edge: {{start: v{110, 0, 0}}}, - ES: {{start: v{2018, 0, 0}}}, - Opera: {{start: v{96, 0, 0}}}, + ES: {{start: v{2018, 0, 0}}}, + Node: {{start: v{21, 3, 0}}}, }, RestArgument: { // Note: The latest version of "Hermes" failed this test: rest parameters: function 'length' property