diff --git a/package.json b/package.json index 237ea5f2..71d5c39d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/compat.rs b/src/compat.rs index b62ab61b..911b2c86 100644 --- a/src/compat.rs +++ b/src/compat.rs @@ -445,7 +445,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -537,7 +537,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -582,7 +582,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -627,7 +627,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -672,7 +672,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -717,7 +717,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -762,7 +762,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -807,7 +807,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -899,7 +899,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -944,7 +944,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1014,7 +1014,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1059,7 +1059,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1149,7 +1149,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1194,7 +1194,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1244,7 +1244,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1331,7 +1331,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1376,7 +1376,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1421,7 +1421,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1461,7 +1461,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1506,7 +1506,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1551,7 +1551,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } @@ -1618,7 +1618,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8519680 { + if version < 8585216 { return false; } } diff --git a/src/prefixes.rs b/src/prefixes.rs index c967bdc6..34a97e1f 100644 --- a/src/prefixes.rs +++ b/src/prefixes.rs @@ -672,7 +672,7 @@ impl Feature { } } if let Some(version) = browsers.ios_saf { - if version >= 197120 { + if version >= 197120 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -682,7 +682,7 @@ impl Feature { } } if let Some(version) = browsers.safari { - if version >= 196864 { + if version >= 196864 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -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; } } @@ -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; } } @@ -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; } } @@ -1299,7 +1299,7 @@ impl Feature { } } if let Some(version) = browsers.safari { - if version >= 458752 { + if version >= 458752 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -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; } } @@ -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; } } @@ -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 { @@ -1428,7 +1430,7 @@ impl Feature { } } if let Some(version) = browsers.ios_saf { - if version >= 327680 { + if version >= 327680 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -1532,7 +1534,7 @@ impl Feature { } } if let Some(version) = browsers.ios_saf { - if version >= 458752 { + if version >= 458752 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -1542,7 +1544,7 @@ impl Feature { } } if let Some(version) = browsers.safari { - if version >= 393472 { + if version >= 393472 && version <= 1179904 { prefixes |= VendorPrefix::WebKit; } } @@ -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; } } @@ -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; } } diff --git a/yarn.lock b/yarn.lock index 0b27e80b..9186ec11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -454,10 +454,10 @@ resolved "https://registry.yarnpkg.com/@lmdb/lmdb-win32-x64/-/lmdb-win32-x64-2.5.2.tgz#28f643fbc0bec30b07fbe95b137879b6b4d1c9c5" integrity sha512-zrBczSbXKxEyK2ijtbRdICDygRqWSRPpZMN5dD1T8VMEW5RIhIbwFWw2phDRXuBQdVDpSjalCIUMWMV2h3JaZA== -"@mdn/browser-compat-data@~5.6.12": - version "5.6.12" - resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.6.12.tgz#ac3e1855c2387334bbfdb2b6249dd95c9d9c2b70" - integrity sha512-W/Km+GFczwpoimaXbtHYdjK26VHGszOEZ9EnIyLS2E65x6LEZs7r0FovR/XSkzgNau95sTxI3JfFKQFLIJE7EQ== +"@mdn/browser-compat-data@~5.6.18": + version "5.6.18" + resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.6.18.tgz#62bfd9f7a646e54e68b3739cb34bcf508e699410" + integrity sha512-WCQcQGyydquw7NXPL2NopMCgmUvIQDG7KM/IGR4PMJSDH5SHZKXUDEF6rdpGWj0MtcjQseOCl/hjzYzj0fMMeA== "@mischnic/json-sourcemap@^0.1.0": version "0.1.0" @@ -1352,6 +1352,11 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001677: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz#27c2e2c637e007cfa864a16f7dfe7cde66b38b5f" integrity sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog== +caniuse-lite@^1.0.30001684: + version "1.0.30001684" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz#0eca437bab7d5f03452ff0ef9de8299be6b08e16" + integrity sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ== + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"