Skip to content

Commit 71f4a5a

Browse files
committed
update compat-table (note: css nesting changed)
1 parent eb667c3 commit 71f4a5a

6 files changed

Lines changed: 19 additions & 24 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ compat-table: esbuild
657657
node --enable-source-maps compat-table/out.js
658658

659659
update-compat-table: esbuild
660-
cd compat-table && npm update --silent
660+
cd compat-table && npm i @mdn/browser-compat-data@latest caniuse-lite@latest --silent
661661
./esbuild compat-table/src/index.ts --bundle --platform=node --external:./compat-table/repos/* --outfile=compat-table/out.js --log-level=warning --sourcemap
662662
node --enable-source-maps compat-table/out.js --update
663663

compat-table/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compat-table/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"githubDependencies": {
3-
"kangax/compat-table": "61b6d112578c21827e702360553424b4effabdaa",
4-
"williamkapke/node-compat-table": "b11fbdb3e6c6d5fffbf4688d830c7453eb64cff7"
3+
"kangax/compat-table": "c7a5c7ea7a8628c90532f0b331ac0929501b1898",
4+
"williamkapke/node-compat-table": "6631ac5cc8a2e9adb8f71abb536fec87554fa0e6"
55
},
66
"dependencies": {
7-
"@mdn/browser-compat-data": "5.3.2",
7+
"@mdn/browser-compat-data": "5.3.9",
88
"@types/caniuse-lite": "1.0.1",
99
"@types/node": "20.3.2",
10-
"caniuse-lite": "1.0.30001508"
10+
"caniuse-lite": "1.0.30001519"
1111
}
1212
}

compat-table/src/caniuse.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const jsFeatures: Record<string, JSFeature> = {
2929

3030
const cssFeatures: Record<string, CSSFeature> = {
3131
'css-matches-pseudo': 'IsPseudoClass',
32-
'css-nesting': 'Nesting',
3332
}
3433

3534
const cssPrefixFeatures: Record<string, CSSProperty> = {

compat-table/src/mdn.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const cssFeatures: Partial<Record<CSSFeature, string | string[]>> = {
3838
'css.types.color.rgba.float_values',
3939
'css.types.color.rgba.space_separated_parameters',
4040
],
41+
Nesting: 'css.selectors.nesting',
4142
}
4243

4344
const cssPrefixFeatures: Record<string, CSSProperty> = {
@@ -95,10 +96,11 @@ const addFeatures = <F extends string>(map: SupportMap<F>, features: Partial<Rec
9596
if (engine) {
9697
const entries = support[env as BrowserName]!
9798

98-
for (const { flags, version_added, version_removed } of Array.isArray(entries) ? entries : [entries]) {
99+
for (const { flags, version_added, version_removed, partial_implementation } of Array.isArray(entries) ? entries : [entries]) {
99100
if (typeof version_added === 'string' && isSemver.test(version_added)) {
100-
// The feature isn't considered to be supported if it was removed or if it requires a flag
101-
const isSupported = !version_removed || !flags
101+
// The feature isn't considered to be supported if it was removed,
102+
// if it requires a flag, or if it's only partially-implemented
103+
const isSupported = (!version_removed || !flags) && !partial_implementation
102104
const maxVersion = maxVersions[engine]
103105
if (
104106
!maxVersion ||

internal/compat/css_table.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ var cssTable = map[CSSFeature]map[Engine][]versionRange{
7070
Opera: {{start: v{53, 0, 0}}},
7171
Safari: {{start: v{12, 1, 0}}},
7272
},
73-
Nesting: {
74-
Chrome: {{start: v{112, 0, 0}}},
75-
Edge: {{start: v{112, 0, 0}}},
76-
IOS: {{start: v{16, 5, 0}}},
77-
Opera: {{start: v{98, 0, 0}}},
78-
Safari: {{start: v{16, 5, 0}}},
79-
},
73+
Nesting: {},
8074
RebeccaPurple: {
8175
Chrome: {{start: v{38, 0, 0}}},
8276
Edge: {{start: v{12, 0, 0}}},

0 commit comments

Comments
 (0)