Skip to content

Commit 2bc430c

Browse files
committed
update
1 parent 0f02685 commit 2bc430c

10 files changed

+134
-68
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to cssdb
22

3+
### 8.2.6 (May 26, 2025)
4+
5+
- Updated `@mdn/browser-compat-data` to `6.0.17`
6+
37
### 8.2.5 (April 15, 2025)
48

59
- Updated `@mdn/browser-compat-data` to `6.0.5`

cssdb.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,11 @@
14851485
"edge": "110",
14861486
"firefox": "78",
14871487
"ios_saf": "16.4",
1488-
"safari": "16.4"
1488+
"op_mob": "74",
1489+
"opera": "96",
1490+
"safari": "16.4",
1491+
"samsung": "21.0",
1492+
"webview_ios": "16.4"
14891493
},
14901494
"docs": {
14911495
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/ratio"

cssdb.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,11 @@ export default [
14851485
"edge": "110",
14861486
"firefox": "78",
14871487
"ios_saf": "16.4",
1488-
"safari": "16.4"
1488+
"op_mob": "74",
1489+
"opera": "96",
1490+
"safari": "16.4",
1491+
"samsung": "21.0",
1492+
"webview_ios": "16.4"
14891493
},
14901494
"docs": {
14911495
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/ratio"

cssdb.settings.json

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,34 +1108,59 @@
11081108
"browser_support": {},
11091109
"browser_support_overrides": {
11101110
"and_chr": {
1111-
"from": null,
1111+
"from": "87",
11121112
"to": "110",
1113-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1113+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11141114
},
11151115
"android": {
1116-
"from": null,
1116+
"from": "87",
11171117
"to": "110",
1118-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1118+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11191119
},
11201120
"chrome": {
1121-
"from": null,
1121+
"from": "87",
11221122
"to": "110",
1123-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1123+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11241124
},
11251125
"edge": {
1126-
"from": null,
1126+
"from": "87",
11271127
"to": "110",
1128-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1128+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11291129
},
11301130
"ios_saf": {
1131-
"from": null,
1131+
"from": "14.5",
1132+
"to": "16.4",
1133+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
1134+
},
1135+
"oculus": {
1136+
"from": "13.0",
1137+
"to": null,
1138+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
1139+
},
1140+
"op_mob": {
1141+
"from": "62",
1142+
"to": "74",
1143+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
1144+
},
1145+
"opera": {
1146+
"from": "73",
1147+
"to": "96",
1148+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
1149+
},
1150+
"samsung": {
1151+
"from": "14.0",
1152+
"to": "21.0",
1153+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
1154+
},
1155+
"webview_ios": {
1156+
"from": "14.5",
11321157
"to": "16.4",
1133-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1158+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11341159
},
11351160
"safari": {
1136-
"from": null,
1161+
"from": "14.1",
11371162
"to": "16.4",
1138-
"bug": "https://github.com/mdn/browser-compat-data/issues/18198"
1163+
"bug": "https://github.com/mdn/browser-compat-data/issues/25034#issuecomment-2908617595"
11391164
}
11401165
},
11411166
"docs": {
@@ -1414,7 +1439,7 @@
14141439
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/:read-only"
14151440
},
14161441
"example": "input:read-only {\n background-color: #ccc;\n}",
1417-
"mdn_path": "css.selectors['read-only']"
1442+
"mdn_path": "css.selectors.read-only"
14181443
},
14191444
{
14201445
"id": "rebeccapurple-color",

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cssdb",
3-
"version": "8.2.5",
3+
"version": "8.2.6",
44
"type": "module",
55
"description": "A comprehensive list of CSS features and their positions in the process of becoming implemented web standards",
66
"license": "MIT-0",
@@ -64,7 +64,6 @@
6464
"@mdn/browser-compat-data": "^6.0.17",
6565
"browserslist": "^4.24.5",
6666
"glob": "^11.0.2",
67-
"lodash.get": "^4.4.2",
6867
"postcss": "^8.5.3",
6968
"postcss-cli": "^11.0.1",
7069
"postcss-preset-env": "^10.1.6",

tasks/check-doc-links.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fs from 'fs/promises';
21
import cssdb from 'cssdb';
32

43
let hasBadLinks = false;

utils/apply-browser-overrides.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export default function applyBrowserOverrides(feature, realValues, overrides) {
1616
}
1717

1818
realValues[key] = to;
19+
20+
if (to === null) {
21+
delete realValues[key];
22+
}
1923
}
2024

2125
return realValues;

utils/get.mjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
export function get(object, keys) {
2+
let _keys;
3+
if (typeof keys === 'string') {
4+
_keys = keys.split('.')
5+
} else {
6+
_keys = keys.slice();
7+
}
8+
9+
const key = _keys.shift();
10+
if (!key) {
11+
return null;
12+
}
13+
14+
if (key === 'prototype' || key === '__proto__') {
15+
return null;
16+
}
17+
18+
let hasOwnProperty = false;
19+
try {
20+
hasOwnProperty = Object.prototype.hasOwnProperty.call(object, key)
21+
} catch {
22+
return null;
23+
}
24+
25+
if (hasOwnProperty) {
26+
const value = object[key];
27+
28+
if (_keys.length === 0) {
29+
return value;
30+
} else {
31+
return get(value, _keys);
32+
}
33+
}
34+
35+
return null;
36+
}

utils/supported-browsers-from-mdn.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import bcd from '@mdn/browser-compat-data' with { type: 'json' };
2-
import _get from 'lodash.get';
32
import semver from 'semver';
3+
import { get } from './get.mjs';
44
import { MDNToBrowserlist } from './mdn-to-browserslist.mjs';
55

66
function getBrowsersFromFeature(mdnConfigPath, feature) {
7-
const mdnFeature = _get(bcd, mdnConfigPath);
7+
const mdnFeature = get(bcd, mdnConfigPath);
88
if (!mdnFeature) {
9-
throw new Error(`Invalid mdn config path "${mdnConfigPath}" in feature "${feature}"`);
9+
throw new Error(`Invalid mdn config path "${mdnConfigPath}" in feature "${feature.id}"`);
1010
}
1111

1212
// We assume users also have autoprefixer.

0 commit comments

Comments
 (0)