Skip to content

Commit c03a7e7

Browse files
committed
bump compat data
1 parent 48332fe commit c03a7e7

File tree

4 files changed

+72
-55
lines changed

4 files changed

+72
-55
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
"@codemirror/lang-javascript": "^6.1.2",
4949
"@codemirror/lint": "^6.1.0",
5050
"@codemirror/theme-one-dark": "^6.1.0",
51-
"@mdn/browser-compat-data": "~5.7.0",
51+
"@mdn/browser-compat-data": "~5.7.3",
5252
"@napi-rs/cli": "^2.14.0",
53-
"autoprefixer": "^10.4.20",
54-
"caniuse-lite": "^1.0.30001702",
53+
"autoprefixer": "^10.4.21",
54+
"caniuse-lite": "^1.0.30001704",
5555
"codemirror": "^6.0.1",
5656
"cssnano": "^7.0.6",
5757
"esbuild": "^0.19.8",

src/compat.rs

+16-7
Original file line numberDiff line numberDiff line change
@@ -2926,6 +2926,16 @@ impl Feature {
29262926
}
29272927
}
29282928
Feature::AbsFunction | Feature::SignFunction => {
2929+
if let Some(version) = browsers.chrome {
2930+
if version < 8847360 {
2931+
return false;
2932+
}
2933+
}
2934+
if let Some(version) = browsers.edge {
2935+
if version < 8847360 {
2936+
return false;
2937+
}
2938+
}
29292939
if let Some(version) = browsers.firefox {
29302940
if version < 7733248 {
29312941
return false;
@@ -2941,13 +2951,12 @@ impl Feature {
29412951
return false;
29422952
}
29432953
}
2944-
if browsers.android.is_some()
2945-
|| browsers.chrome.is_some()
2946-
|| browsers.edge.is_some()
2947-
|| browsers.ie.is_some()
2948-
|| browsers.opera.is_some()
2949-
|| browsers.samsung.is_some()
2950-
{
2954+
if let Some(version) = browsers.android {
2955+
if version < 8847360 {
2956+
return false;
2957+
}
2958+
}
2959+
if browsers.ie.is_some() || browsers.opera.is_some() || browsers.samsung.is_some() {
29512960
return false;
29522961
}
29532962
}

src/prefixes.rs

+26-28
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ impl Feature {
562562
}
563563
Feature::Element => {
564564
if let Some(version) = browsers.firefox {
565-
if version >= 131072 && version <= 8912896 {
565+
if version >= 131072 {
566566
prefixes |= VendorPrefix::Moz;
567567
}
568568
}
@@ -672,7 +672,7 @@ impl Feature {
672672
}
673673
}
674674
if let Some(version) = browsers.ios_saf {
675-
if version >= 197120 && version <= 1180416 {
675+
if version >= 197120 {
676676
prefixes |= VendorPrefix::WebKit;
677677
}
678678
}
@@ -682,7 +682,7 @@ impl Feature {
682682
}
683683
}
684684
if let Some(version) = browsers.safari {
685-
if version >= 196864 && version <= 1180416 {
685+
if version >= 196864 {
686686
prefixes |= VendorPrefix::WebKit;
687687
}
688688
}
@@ -1190,17 +1190,17 @@ impl Feature {
11901190
}
11911191
Feature::Fill | Feature::FillAvailable => {
11921192
if let Some(version) = browsers.chrome {
1193-
if version >= 1441792 && version <= 8781824 {
1193+
if version >= 1441792 {
11941194
prefixes |= VendorPrefix::WebKit;
11951195
}
11961196
}
11971197
if let Some(version) = browsers.android {
1198-
if version >= 263168 && version <= 8585216 {
1198+
if version >= 263168 {
11991199
prefixes |= VendorPrefix::WebKit;
12001200
}
12011201
}
12021202
if let Some(version) = browsers.edge {
1203-
if version >= 5177344 && version <= 8585216 {
1203+
if version >= 5177344 {
12041204
prefixes |= VendorPrefix::WebKit;
12051205
}
12061206
}
@@ -1269,27 +1269,27 @@ impl Feature {
12691269
}
12701270
Feature::Stretch => {
12711271
if let Some(version) = browsers.chrome {
1272-
if version >= 1441792 && version <= 8781824 {
1272+
if version >= 1441792 {
12731273
prefixes |= VendorPrefix::WebKit;
12741274
}
12751275
}
12761276
if let Some(version) = browsers.firefox {
1277-
if version >= 196608 && version <= 8912896 {
1277+
if version >= 196608 {
12781278
prefixes |= VendorPrefix::Moz;
12791279
}
12801280
}
12811281
if let Some(version) = browsers.android {
1282-
if version >= 263168 && version <= 8585216 {
1282+
if version >= 263168 {
12831283
prefixes |= VendorPrefix::WebKit;
12841284
}
12851285
}
12861286
if let Some(version) = browsers.edge {
1287-
if version >= 5177344 && version <= 8585216 {
1287+
if version >= 5177344 {
12881288
prefixes |= VendorPrefix::WebKit;
12891289
}
12901290
}
12911291
if let Some(version) = browsers.ios_saf {
1292-
if version >= 458752 && version <= 1180416 {
1292+
if version >= 458752 {
12931293
prefixes |= VendorPrefix::WebKit;
12941294
}
12951295
}
@@ -1299,7 +1299,7 @@ impl Feature {
12991299
}
13001300
}
13011301
if let Some(version) = browsers.safari {
1302-
if version >= 458752 && version <= 1180416 {
1302+
if version >= 458752 {
13031303
prefixes |= VendorPrefix::WebKit;
13041304
}
13051305
}
@@ -1374,7 +1374,7 @@ impl Feature {
13741374
}
13751375
Feature::TextDecorationSkip | Feature::TextDecorationSkipInk => {
13761376
if let Some(version) = browsers.ios_saf {
1377-
if version >= 524288 && version <= 1180416 {
1377+
if version >= 524288 {
13781378
prefixes |= VendorPrefix::WebKit;
13791379
}
13801380
}
@@ -1386,12 +1386,12 @@ impl Feature {
13861386
}
13871387
Feature::TextDecoration => {
13881388
if let Some(version) = browsers.ios_saf {
1389-
if version >= 524288 && version <= 1180416 {
1389+
if version >= 524288 {
13901390
prefixes |= VendorPrefix::WebKit;
13911391
}
13921392
}
13931393
if let Some(version) = browsers.safari {
1394-
if version >= 524288 && version <= 1180416 {
1394+
if version >= 524288 {
13951395
prefixes |= VendorPrefix::WebKit;
13961396
}
13971397
}
@@ -1414,10 +1414,8 @@ impl Feature {
14141414
}
14151415
}
14161416
Feature::TextSizeAdjust => {
1417-
if let Some(version) = browsers.firefox {
1418-
if version <= 8650752 {
1419-
prefixes |= VendorPrefix::Moz;
1420-
}
1417+
if browsers.firefox.is_some() {
1418+
prefixes |= VendorPrefix::Moz;
14211419
}
14221420
if let Some(version) = browsers.edge {
14231421
if version >= 786432 && version <= 1179648 {
@@ -1430,7 +1428,7 @@ impl Feature {
14301428
}
14311429
}
14321430
if let Some(version) = browsers.ios_saf {
1433-
if version >= 327680 && version <= 1180416 {
1431+
if version >= 327680 {
14341432
prefixes |= VendorPrefix::WebKit;
14351433
}
14361434
}
@@ -1534,7 +1532,7 @@ impl Feature {
15341532
}
15351533
}
15361534
if let Some(version) = browsers.ios_saf {
1537-
if version >= 458752 && version <= 1180416 {
1535+
if version >= 458752 {
15381536
prefixes |= VendorPrefix::WebKit;
15391537
}
15401538
}
@@ -1544,7 +1542,7 @@ impl Feature {
15441542
}
15451543
}
15461544
if let Some(version) = browsers.safari {
1547-
if version >= 393472 && version <= 1180416 {
1545+
if version >= 393472 {
15481546
prefixes |= VendorPrefix::WebKit;
15491547
}
15501548
}
@@ -1921,17 +1919,17 @@ impl Feature {
19211919
}
19221920
Feature::CrossFade => {
19231921
if let Some(version) = browsers.chrome {
1924-
if version >= 1114112 && version <= 8781824 {
1922+
if version >= 1114112 {
19251923
prefixes |= VendorPrefix::WebKit;
19261924
}
19271925
}
19281926
if let Some(version) = browsers.android {
1929-
if version >= 263168 && version <= 8585216 {
1927+
if version >= 263168 {
19301928
prefixes |= VendorPrefix::WebKit;
19311929
}
19321930
}
19331931
if let Some(version) = browsers.edge {
1934-
if version >= 5177344 && version <= 8585216 {
1932+
if version >= 5177344 {
19351933
prefixes |= VendorPrefix::WebKit;
19361934
}
19371935
}
@@ -2156,17 +2154,17 @@ impl Feature {
21562154
}
21572155
Feature::PrintColorAdjust | Feature::ColorAdjust => {
21582156
if let Some(version) = browsers.chrome {
2159-
if version >= 1114112 && version <= 8781824 {
2157+
if version >= 1114112 {
21602158
prefixes |= VendorPrefix::WebKit;
21612159
}
21622160
}
21632161
if let Some(version) = browsers.android {
2164-
if version >= 263168 && version <= 8585216 {
2162+
if version >= 263168 {
21652163
prefixes |= VendorPrefix::WebKit;
21662164
}
21672165
}
21682166
if let Some(version) = browsers.edge {
2169-
if version >= 5177344 && version <= 8585216 {
2167+
if version >= 5177344 {
21702168
prefixes |= VendorPrefix::WebKit;
21712169
}
21722170
}

yarn.lock

+27-17
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,10 @@
570570
resolved "https://registry.yarnpkg.com/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz#775374306116d51c0c500b8c4face0f9a04752d8"
571571
integrity sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==
572572

573-
"@mdn/browser-compat-data@~5.7.0":
574-
version "5.7.0"
575-
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.7.0.tgz#3f08f76234cb075e8377bbb822d93ebc2003bee5"
576-
integrity sha512-Z96UeDGT80sBRJAY67xKnbDEdt5F/8wduy6aU5NeEzLwFqWcyx1oNcj9XapZNMp/i0Nz9iTWZqht+1zcq48j5Q==
573+
"@mdn/browser-compat-data@~5.7.3":
574+
version "5.7.3"
575+
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.7.3.tgz#1c4abb3a0ff9e631dd23eed1435d388ccc999f4b"
576+
integrity sha512-ckygcngv0i7Qe0yOzzge/K7Gr5dnk2jNm/AYdqUd1ZTGa9pIEdDuVyWmL3bDU/NdJ8FtdSAjng98YfUuou9Csw==
577577

578578
"@mischnic/json-sourcemap@^0.1.0":
579579
version "0.1.1"
@@ -1505,16 +1505,16 @@ at-least-node@^1.0.0:
15051505
resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
15061506
integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
15071507

1508-
autoprefixer@^10.4.20:
1509-
version "10.4.20"
1510-
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.20.tgz#5caec14d43976ef42e32dcb4bd62878e96be5b3b"
1511-
integrity sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==
1508+
autoprefixer@^10.4.21:
1509+
version "10.4.21"
1510+
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.21.tgz#77189468e7a8ad1d9a37fbc08efc9f480cf0a95d"
1511+
integrity sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==
15121512
dependencies:
1513-
browserslist "^4.23.3"
1514-
caniuse-lite "^1.0.30001646"
1513+
browserslist "^4.24.4"
1514+
caniuse-lite "^1.0.30001702"
15151515
fraction.js "^4.3.7"
15161516
normalize-range "^0.1.2"
1517-
picocolors "^1.0.1"
1517+
picocolors "^1.1.1"
15181518
postcss-value-parser "^4.2.0"
15191519

15201520
available-typed-arrays@^1.0.7:
@@ -1580,6 +1580,16 @@ browserslist@^4.0.0, browserslist@^4.23.3, browserslist@^4.6.6:
15801580
node-releases "^2.0.19"
15811581
update-browserslist-db "^1.1.1"
15821582

1583+
browserslist@^4.24.4:
1584+
version "4.24.4"
1585+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b"
1586+
integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==
1587+
dependencies:
1588+
caniuse-lite "^1.0.30001688"
1589+
electron-to-chromium "^1.5.73"
1590+
node-releases "^2.0.19"
1591+
update-browserslist-db "^1.1.1"
1592+
15831593
buffer-crc32@~0.2.3:
15841594
version "0.2.13"
15851595
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
@@ -1639,15 +1649,15 @@ caniuse-api@^3.0.0:
16391649
lodash.memoize "^4.1.2"
16401650
lodash.uniq "^4.5.0"
16411651

1642-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001688:
1652+
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001688:
16431653
version "1.0.30001690"
16441654
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz#f2d15e3aaf8e18f76b2b8c1481abde063b8104c8"
16451655
integrity sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==
16461656

1647-
caniuse-lite@^1.0.30001702:
1648-
version "1.0.30001702"
1649-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001702.tgz#cde16fa8adaa066c04aec2967b6cde46354644c4"
1650-
integrity sha512-LoPe/D7zioC0REI5W73PeR1e1MLCipRGq/VkovJnd6Df+QVqT+vT33OXCp8QUd7kA7RZrHWxb1B36OQKI/0gOA==
1657+
caniuse-lite@^1.0.30001702, caniuse-lite@^1.0.30001704:
1658+
version "1.0.30001704"
1659+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001704.tgz#6644fe909d924ac3a7125e8a0ab6af95b1f32990"
1660+
integrity sha512-+L2IgBbV6gXB4ETf0keSvLr7JUrRVbIaB/lrQ1+z8mRcQiisG5k+lG6O4n6Y5q6f5EuNfaYXKgymucphlEXQew==
16511661

16521662
chalk@^2.4.2:
16531663
version "2.4.2"
@@ -3182,7 +3192,7 @@ pend@~1.2.0:
31823192
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
31833193
integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
31843194

3185-
picocolors@^1.0.0, picocolors@^1.0.1, picocolors@^1.1.0, picocolors@^1.1.1:
3195+
picocolors@^1.0.0, picocolors@^1.1.0, picocolors@^1.1.1:
31863196
version "1.1.1"
31873197
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
31883198
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==

0 commit comments

Comments
 (0)