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 Sep 11, 2024
1 parent ad2ec9f commit 54390b4
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 47 deletions.
4 changes: 2 additions & 2 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.44",
"@mdn/browser-compat-data": "~5.5.51",
"@napi-rs/cli": "^2.14.0",
"autoprefixer": "^10.4.20",
"caniuse-lite": "^1.0.30001649",
"caniuse-lite": "^1.0.30001660",
"codemirror": "^6.0.1",
"cssnano": "^5.0.8",
"esbuild": "^0.19.8",
Expand Down
64 changes: 39 additions & 25 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 < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -537,7 +537,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -627,7 +627,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -672,7 +672,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -717,7 +717,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -762,7 +762,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -807,7 +807,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -899,7 +899,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -944,7 +944,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1024,7 +1024,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1069,7 +1069,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1159,7 +1159,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1204,7 +1204,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1254,7 +1254,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1341,7 +1341,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1386,7 +1386,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1431,7 +1431,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1471,7 +1471,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1516,7 +1516,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1561,7 +1561,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -1628,7 +1628,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8323072 {
if version < 8388608 {
return false;
}
}
Expand Down Expand Up @@ -2908,12 +2908,17 @@ impl Feature {
return false;
}
}
if let Some(version) = browsers.samsung {
if version < 1769472 {
return false;
}
}
if let Some(version) = browsers.android {
if version < 8192000 {
return false;
}
}
if browsers.ie.is_some() || browsers.samsung.is_some() {
if browsers.ie.is_some() {
return false;
}
}
Expand Down Expand Up @@ -3385,12 +3390,17 @@ impl Feature {
return false;
}
}
if let Some(version) = browsers.samsung {
if version < 1769472 {
return false;
}
}
if let Some(version) = browsers.android {
if version < 8060928 {
return false;
}
}
if browsers.ie.is_some() || browsers.samsung.is_some() {
if browsers.ie.is_some() {
return false;
}
}
Expand Down Expand Up @@ -5182,6 +5192,11 @@ impl Feature {
return false;
}
}
if let Some(version) = browsers.samsung {
if version < 1769472 {
return false;
}
}
if let Some(version) = browsers.android {
if version < 8192000 {
return false;
Expand All @@ -5191,7 +5206,6 @@ impl Feature {
|| browsers.ie.is_some()
|| browsers.ios_saf.is_some()
|| browsers.safari.is_some()
|| browsers.samsung.is_some()
{
return false;
}
Expand Down
30 changes: 15 additions & 15 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 {
if version >= 1441792 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1269,7 +1269,7 @@ impl Feature {
}
Feature::Stretch => {
if let Some(version) = browsers.chrome {
if version >= 1441792 {
if version >= 1441792 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1279,12 +1279,12 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1517,17 +1517,17 @@ impl Feature {
}
Feature::BoxDecorationBreak => {
if let Some(version) = browsers.chrome {
if version >= 1441792 {
if version >= 1441792 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1919,17 +1919,17 @@ impl Feature {
}
Feature::CrossFade => {
if let Some(version) = browsers.chrome {
if version >= 1114112 {
if version >= 1114112 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8323072 {
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 {
if version >= 1114112 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8323072 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down
Loading

0 comments on commit 54390b4

Please sign in to comment.