From 71f4a5aff3c943d2f44c606337a9a4d5ef530e31 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Sun, 13 Aug 2023 01:01:10 -0400 Subject: [PATCH] update compat-table (note: css nesting changed) --- Makefile | 2 +- compat-table/package-lock.json | 16 ++++++++-------- compat-table/package.json | 8 ++++---- compat-table/src/caniuse.ts | 1 - compat-table/src/mdn.ts | 8 +++++--- internal/compat/css_table.go | 8 +------- 6 files changed, 19 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 2203fa263c6..85a2e252016 100644 --- a/Makefile +++ b/Makefile @@ -657,7 +657,7 @@ compat-table: esbuild node --enable-source-maps compat-table/out.js update-compat-table: esbuild - cd compat-table && npm update --silent + cd compat-table && npm i @mdn/browser-compat-data@latest caniuse-lite@latest --silent ./esbuild compat-table/src/index.ts --bundle --platform=node --external:./compat-table/repos/* --outfile=compat-table/out.js --log-level=warning --sourcemap node --enable-source-maps compat-table/out.js --update diff --git a/compat-table/package-lock.json b/compat-table/package-lock.json index a0a712b3098..2904ed30895 100644 --- a/compat-table/package-lock.json +++ b/compat-table/package-lock.json @@ -5,16 +5,16 @@ "packages": { "": { "dependencies": { - "@mdn/browser-compat-data": "5.3.2", + "@mdn/browser-compat-data": "5.3.9", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001508" + "caniuse-lite": "1.0.30001519" } }, "node_modules/@mdn/browser-compat-data": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.2.tgz", - "integrity": "sha512-c2dxwcqbClWUUSZqM6hMzM8dAUCEaPBBciBW8iyT+62OPmfb61VVZKu4vtCyAPzE/fBYY1F2bhuTsOTBRtt7WA==" + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.3.9.tgz", + "integrity": "sha512-J7lLtHMEizYbI5T0Xlqpg1JXCz9JegZBeb7y3v/Nm8ScRw8TL9v3n+I3g1TFm+bLrRtwA33FKwX5znDwz+WzAQ==" }, "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.30001508", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001508.tgz", - "integrity": "sha512-sdQZOJdmt3GJs1UMNpCCCyeuS2IEGLXnHyAo9yIO5JJDjbjoVRij4M1qep6P6gFpptD1PqIYgzM+gwJbOi92mw==", + "version": "1.0.30001519", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz", + "integrity": "sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg==", "funding": [ { "type": "opencollective", diff --git a/compat-table/package.json b/compat-table/package.json index e8a42a25307..a61c9b67090 100644 --- a/compat-table/package.json +++ b/compat-table/package.json @@ -1,12 +1,12 @@ { "githubDependencies": { - "kangax/compat-table": "61b6d112578c21827e702360553424b4effabdaa", - "williamkapke/node-compat-table": "b11fbdb3e6c6d5fffbf4688d830c7453eb64cff7" + "kangax/compat-table": "c7a5c7ea7a8628c90532f0b331ac0929501b1898", + "williamkapke/node-compat-table": "6631ac5cc8a2e9adb8f71abb536fec87554fa0e6" }, "dependencies": { - "@mdn/browser-compat-data": "5.3.2", + "@mdn/browser-compat-data": "5.3.9", "@types/caniuse-lite": "1.0.1", "@types/node": "20.3.2", - "caniuse-lite": "1.0.30001508" + "caniuse-lite": "1.0.30001519" } } diff --git a/compat-table/src/caniuse.ts b/compat-table/src/caniuse.ts index c43894e3409..8525eeea6d7 100644 --- a/compat-table/src/caniuse.ts +++ b/compat-table/src/caniuse.ts @@ -29,7 +29,6 @@ const jsFeatures: Record = { const cssFeatures: Record = { 'css-matches-pseudo': 'IsPseudoClass', - 'css-nesting': 'Nesting', } const cssPrefixFeatures: Record = { diff --git a/compat-table/src/mdn.ts b/compat-table/src/mdn.ts index 88138904d67..159bcd73a6c 100644 --- a/compat-table/src/mdn.ts +++ b/compat-table/src/mdn.ts @@ -38,6 +38,7 @@ const cssFeatures: Partial> = { 'css.types.color.rgba.float_values', 'css.types.color.rgba.space_separated_parameters', ], + Nesting: 'css.selectors.nesting', } const cssPrefixFeatures: Record = { @@ -95,10 +96,11 @@ const addFeatures = (map: SupportMap, features: Partial