Skip to content

Commit

Permalink
Bump browser compat data
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 25, 2024
1 parent 33265a2 commit 4159bc5
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 52 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.6.12",
"@mdn/browser-compat-data": "~5.6.18",
"@napi-rs/cli": "^2.14.0",
"autoprefixer": "^10.4.20",
"caniuse-lite": "^1.0.30001677",
"caniuse-lite": "^1.0.30001684",
"codemirror": "^6.0.1",
"cssnano": "^5.0.8",
"esbuild": "^0.19.8",
Expand Down
44 changes: 22 additions & 22 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 < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -537,7 +537,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -582,7 +582,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -627,7 +627,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -672,7 +672,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -717,7 +717,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -762,7 +762,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -807,7 +807,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -899,7 +899,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -944,7 +944,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1014,7 +1014,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1059,7 +1059,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1149,7 +1149,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1194,7 +1194,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1244,7 +1244,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1331,7 +1331,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1376,7 +1376,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1421,7 +1421,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1461,7 +1461,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1506,7 +1506,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1551,7 +1551,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down Expand Up @@ -1618,7 +1618,7 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version < 8519680 {
if version < 8585216 {
return false;
}
}
Expand Down
50 changes: 26 additions & 24 deletions src/prefixes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ impl Feature {
}
}
if let Some(version) = browsers.ios_saf {
if version >= 197120 {
if version >= 197120 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -682,7 +682,7 @@ impl Feature {
}
}
if let Some(version) = browsers.safari {
if version >= 196864 {
if version >= 196864 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down 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 <= 8716288 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8519680 {
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 <= 8716288 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1279,17 +1279,17 @@ impl Feature {
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.ios_saf {
if version >= 458752 {
if version >= 458752 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1299,7 +1299,7 @@ impl Feature {
}
}
if let Some(version) = browsers.safari {
if version >= 458752 {
if version >= 458752 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1374,7 +1374,7 @@ impl Feature {
}
Feature::TextDecorationSkip | Feature::TextDecorationSkipInk => {
if let Some(version) = browsers.ios_saf {
if version >= 524288 {
if version >= 524288 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1386,12 +1386,12 @@ impl Feature {
}
Feature::TextDecoration => {
if let Some(version) = browsers.ios_saf {
if version >= 524288 {
if version >= 524288 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.safari {
if version >= 524288 {
if version >= 524288 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1414,8 +1414,10 @@ impl Feature {
}
}
Feature::TextSizeAdjust => {
if browsers.firefox.is_some() {
prefixes |= VendorPrefix::Moz;
if let Some(version) = browsers.firefox {
if version <= 8519680 {
prefixes |= VendorPrefix::Moz;
}
}
if let Some(version) = browsers.edge {
if version >= 786432 && version <= 1179648 {
Expand All @@ -1428,7 +1430,7 @@ impl Feature {
}
}
if let Some(version) = browsers.ios_saf {
if version >= 327680 {
if version >= 327680 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1532,7 +1534,7 @@ impl Feature {
}
}
if let Some(version) = browsers.ios_saf {
if version >= 458752 {
if version >= 458752 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand All @@ -1542,7 +1544,7 @@ impl Feature {
}
}
if let Some(version) = browsers.safari {
if version >= 393472 {
if version >= 393472 && version <= 1179904 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -1919,17 +1921,17 @@ impl Feature {
}
Feature::CrossFade => {
if let Some(version) = browsers.chrome {
if version >= 1114112 {
if version >= 1114112 && version <= 8716288 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down Expand Up @@ -2154,17 +2156,17 @@ impl Feature {
}
Feature::PrintColorAdjust | Feature::ColorAdjust => {
if let Some(version) = browsers.chrome {
if version >= 1114112 {
if version >= 1114112 && version <= 8716288 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.android {
if version >= 263168 {
if version >= 263168 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
if let Some(version) = browsers.edge {
if version >= 5177344 {
if version >= 5177344 && version <= 8519680 {
prefixes |= VendorPrefix::WebKit;
}
}
Expand Down
Loading

0 comments on commit 4159bc5

Please sign in to comment.