diff --git a/package.json b/package.json index 68e6701d..de3637b3 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.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", diff --git a/src/compat.rs b/src/compat.rs index 6c86d398..339c8754 100644 --- a/src/compat.rs +++ b/src/compat.rs @@ -445,7 +445,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -537,7 +537,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -582,7 +582,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -627,7 +627,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -672,7 +672,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -717,7 +717,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -762,7 +762,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -807,7 +807,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -899,7 +899,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -944,7 +944,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1024,7 +1024,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1069,7 +1069,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1159,7 +1159,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1204,7 +1204,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1254,7 +1254,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1341,7 +1341,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1386,7 +1386,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1431,7 +1431,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1471,7 +1471,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1516,7 +1516,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1561,7 +1561,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -1628,7 +1628,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8323072 { + if version < 8388608 { return false; } } @@ -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; } } @@ -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; } } @@ -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; @@ -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; } diff --git a/src/prefixes.rs b/src/prefixes.rs index 5cb213de..b712ddae 100644 --- a/src/prefixes.rs +++ b/src/prefixes.rs @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } } diff --git a/yarn.lock b/yarn.lock index b744a2a1..69f27f64 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.5.44": - version "5.5.44" - resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.5.44.tgz#f791d414b6f5e738c1f0dbba0f5c0136476f3b14" - integrity sha512-bG2ePe+cjEyZQ9hBB+EzsItnl0hPNs1RLjmRuWX7lS0vJ8ddxTeyoQ8yXkp+DAcprbJ0X65wUCgfjBODCRsB5w== +"@mdn/browser-compat-data@~5.5.51": + version "5.5.51" + resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.5.51.tgz#49c563e5b46500a987b57f46bde1b0b3343b7039" + integrity sha512-17L3+/oqX+sgSyucNKSipri1LkI/d8pwPQI4Vv2ejRVZLZr1WGxcEGBnglqFhdlislQBceJiHAdQnWEE+YJE3A== "@mischnic/json-sourcemap@^0.1.0": version "0.1.0" @@ -1347,11 +1347,16 @@ caniuse-api@^3.0.0: lodash.memoize "^4.1.2" lodash.uniq "^4.5.0" -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001649: +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646: version "1.0.30001649" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001649.tgz#3ec700309ca0da2b0d3d5fb03c411b191761c992" integrity sha512-fJegqZZ0ZX8HOWr6rcafGr72+xcgJKI9oWfDW5DrD7ExUtgZC7a7R7ZYmZqplh7XDocFdGeIFn7roAxhOeYrPQ== +caniuse-lite@^1.0.30001660: + version "1.0.30001660" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz#31218de3463fabb44d0b7607b652e56edf2e2355" + integrity sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg== + chalk@^2.0.0: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"