diff --git a/package.json b/package.json index d6eed968..c0a03b84 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.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", @@ -78,7 +78,8 @@ "uvu": "^0.5.6" }, "resolutions": { - "lightningcss": "link:." + "lightningcss": "link:.", + "caniuse-lite": "^1.0.30001677" }, "scripts": { "prepare": "patch-package", diff --git a/scripts/build-prefixes.js b/scripts/build-prefixes.js index 8fc83ca2..0c475f42 100644 --- a/scripts/build-prefixes.js +++ b/scripts/build-prefixes.js @@ -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, diff --git a/src/compat.rs b/src/compat.rs index 339c8754..b62ab61b 100644 --- a/src/compat.rs +++ b/src/compat.rs @@ -445,7 +445,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -537,7 +537,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -582,7 +582,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -627,7 +627,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -672,7 +672,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -717,7 +717,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -762,7 +762,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -807,7 +807,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -899,7 +899,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -944,7 +944,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -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; } } @@ -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; } } @@ -1069,7 +1059,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1159,7 +1149,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1204,7 +1194,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1254,7 +1244,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1341,7 +1331,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1386,7 +1376,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1431,7 +1421,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1471,7 +1461,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1516,7 +1506,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1561,7 +1551,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -1628,7 +1618,7 @@ impl Feature { } } if let Some(version) = browsers.android { - if version < 8388608 { + if version < 8519680 { return false; } } @@ -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; @@ -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; } } diff --git a/src/prefixes.rs b/src/prefixes.rs index b712ddae..c967bdc6 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 && 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; } } @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } } diff --git a/yarn.lock b/yarn.lock index 69f27f64..0b27e80b 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.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== +"@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== "@mischnic/json-sourcemap@^0.1.0": version "0.1.0" @@ -1347,15 +1347,10 @@ 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: - 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== +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001677: + version "1.0.30001677" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz#27c2e2c637e007cfa864a16f7dfe7cde66b38b5f" + integrity sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog== chalk@^2.0.0: version "2.4.2"