feat(es/preset-env): Upgrade browserslist-rs (#2927)

This commit is contained in:
Pig Fang 2021-12-01 20:18:11 +08:00 committed by GitHub
parent 24de5507ae
commit 8a55870ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 7 deletions

26
Cargo.lock generated
View File

@ -258,11 +258,13 @@ dependencies = [
[[package]]
name = "browserslist-rs"
version = "0.2.0"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa428c5a7369965603314e5fbfa5ae1755159bce2c35880d80ea84a866213b20"
checksum = "06d55644ca5427fce1939111997f9d58e78b0ea196e76a4cf327aa93f2553608"
dependencies = [
"anyhow",
"chrono",
"either",
"itertools",
"js-sys",
"once_cell",
@ -271,6 +273,7 @@ dependencies = [
"serde-wasm-bindgen",
"serde_json",
"thiserror",
"ustr",
"wasm-bindgen",
]
@ -286,6 +289,12 @@ version = "3.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f1e260c3a9040a7c19a12468758f4c16f31a81a1fe087482be9570ec864bb6c"
[[package]]
name = "byteorder"
version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "bytes"
version = "1.1.0"
@ -3753,6 +3762,19 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "ustr"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cbd539d8973e229b9d04f15d36e6a8f8d8f85f946b366f06bb001aaed3fa9dd9"
dependencies = [
"ahash",
"byteorder",
"lazy_static",
"parking_lot 0.11.1",
"serde",
]
[[package]]
name = "vcpkg"
version = "0.2.15"

View File

@ -12,7 +12,7 @@ version = "0.67.4"
[dependencies]
ahash = "0.7.4"
anyhow = "1"
browserslist-rs = "=0.2.0"
browserslist-rs = "=0.4.0"
dashmap = "4.0.2"
indexmap = "1.6.2"
once_cell = "1.2.0"

View File

@ -592,10 +592,9 @@ impl Query {
{
let distribs = browserslist::resolve(
s,
&browserslist::Opts {
mobile_to_desktop: true,
ignore_unknown_versions: true,
},
browserslist::Opts::new()
.mobile_to_desktop(true)
.ignore_unknown_versions(true),
)
.with_context(|| {
format!(

View File

@ -75,6 +75,7 @@ allow = [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-Patent",
"BSD-3-Clause",
"CC0-1.0",
"ISC",