Skip to content

Commit

Permalink
Update browser compat data
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 3, 2024
1 parent c82e7d7 commit f6b033f
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 67 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"@codemirror/lang-javascript": "^6.1.2",
"@codemirror/lint": "^6.1.0",
"@codemirror/theme-one-dark": "^6.1.0",
"@mdn/browser-compat-data": "~5.5.51",
"@mdn/browser-compat-data": "~5.6.12",
"@napi-rs/cli": "^2.14.0",
"autoprefixer": "^10.4.20",
"caniuse-lite": "^1.0.30001660",
"caniuse-lite": "^1.0.30001677",
"codemirror": "^6.0.1",
"cssnano": "^5.0.8",
"esbuild": "^0.19.8",
Expand All @@ -78,7 +78,8 @@
"uvu": "^0.5.6"
},
"resolutions": {
"lightningcss": "link:."
"lightningcss": "link:.",
"caniuse-lite": "^1.0.30001677"
},
"scripts": {
"prepare": "patch-package",
Expand Down
1 change: 1 addition & 0 deletions scripts/build-prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const MDN_BROWSER_MAPPING = {
firefox_android: 'firefox',
opera_android: 'opera',
safari_ios: 'ios_saf',
webview_ios: 'ios_saf',
samsunginternet_android: 'samsung',
webview_android: 'android',
oculus: null,
Expand Down
68 changes: 34 additions & 34 deletions src/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -537,7 +537,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -627,7 +627,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -672,7 +672,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -717,7 +717,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -762,7 +762,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -807,7 +807,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -899,7 +899,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -944,7 +944,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1008,23 +1008,13 @@ impl Feature {
return false;
}
}
if let Some(version) = browsers.safari {
if version < 721152 {
return false;
}
}
if let Some(version) = browsers.opera {
if version < 4718592 {
return false;
}
}
if let Some(version) = browsers.ios_saf {
if version < 721664 {
return false;
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand All @@ -1033,7 +1023,7 @@ impl Feature {
return false;
}
}
if browsers.ie.is_some() {
if browsers.ie.is_some() || browsers.ios_saf.is_some() || browsers.safari.is_some() {
return false;
}
}
Expand Down Expand Up @@ -1069,7 +1059,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1159,7 +1149,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1204,7 +1194,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1254,7 +1244,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1341,7 +1331,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1386,7 +1376,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1431,7 +1421,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1471,7 +1461,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1516,7 +1506,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1561,7 +1551,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -1628,7 +1618,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8388608 {
if version < 8519680 {
return false;
}
}
Expand Down Expand Up @@ -2773,6 +2763,16 @@ impl Feature {
return false;
}
}
if let Some(version) = browsers.safari {
if version < 1048576 {
return false;
}
}
if let Some(version) = browsers.ios_saf {
if version < 1048576 {
return false;
}
}
if let Some(version) = browsers.samsung {
if version < 655360 {
return false;
Expand All @@ -2783,7 +2783,7 @@ impl Feature {
return false;
}
}
if browsers.ie.is_some() || browsers.ios_saf.is_some() || browsers.safari.is_some() {
if browsers.ie.is_some() {
return false;
}
}
Expand Down
34 changes: 17 additions & 17 deletions src/prefixes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,17 +1190,17 @@ impl Feature {
}
Feature::Fill | Feature::FillAvailable => {
if let Some(version) = browsers.chrome {
if version >= 1441792 && version <= 8519680 {
if version >= 1441792 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 && version <= 8323072 {
if version >= 263168 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 && version <= 8323072 {
if version >= 5177344 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1269,7 +1269,7 @@ impl Feature {
}
Feature::Stretch => {
if let Some(version) = browsers.chrome {
if version >= 1441792 && version <= 8519680 {
if version >= 1441792 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1279,12 +1279,12 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version >= 263168 && version <= 8323072 {
if version >= 263168 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 && version <= 8323072 {
if version >= 5177344 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1516,18 +1516,18 @@ impl Feature {
}
}
Feature::BoxDecorationBreak => {
if let Some(version) = browsers.chrome {
if version >= 1441792 && version <= 8519680 {
if let Some(version) = browsers.android {
if version >= 263168 && version <= 263171 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 && version <= 8323072 {
if let Some(version) = browsers.chrome {
if version >= 1441792 && version <= 8454144 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 && version <= 8323072 {
if version >= 5177344 && version <= 8454144 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1919,17 +1919,17 @@ impl Feature {
}
Feature::CrossFade => {
if let Some(version) = browsers.chrome {
if version >= 1114112 && version <= 8519680 {
if version >= 1114112 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 && version <= 8323072 {
if version >= 263168 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 && version <= 8323072 {
if version >= 5177344 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -2154,17 +2154,17 @@ impl Feature {
}
Feature::PrintColorAdjust | Feature::ColorAdjust => {
if let Some(version) = browsers.chrome {
if version >= 1114112 && version <= 8519680 {
if version >= 1114112 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 && version <= 8323072 {
if version >= 263168 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 && version <= 8323072 {
if version >= 5177344 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down
Loading

0 comments on commit f6b033f

Please sign in to comment.