Skip to content

Commit

Permalink
Bump browserslist-rs 0.16.0 (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Aug 1, 2024
1 parent f7c8831 commit 3e62347
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 76 deletions.
156 changes: 84 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ paste = "1.0.12"
# CLI deps
atty = { version = "0.2", optional = true }
clap = { version = "3.0.6", features = ["derive"], optional = true }
browserslist-rs = { version = "0.15.0", optional = true }
browserslist-rs = { version = "0.16.0", optional = true }
rayon = { version = "1.5.1", optional = true }
dashmap = { version = "5.0.0", optional = true }
serde_json = { version = "1.0.78", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
lightningcss = { path = "../", features = ["browserslist"] }
parcel_sourcemap = { version = "2.1.1", features = ["json"] }
browserslist-rs = { version = "0.15.0" }
browserslist-rs = { version = "0.16.0" }

[build-dependencies]
cbindgen = "0.24.3"
4 changes: 2 additions & 2 deletions src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Browsers {
) -> Result<Option<Browsers>, browserslist::Error> {
use browserslist::{resolve, Opts};

Self::from_distribs(resolve(query, &Opts::new())?)
Self::from_distribs(resolve(query, &Opts::default())?)
}

/// Finds browserslist configuration, selects queries by environment and loads the resulting queries into LightningCSS targets.
Expand All @@ -75,7 +75,7 @@ impl Browsers {
pub fn load_browserslist() -> Result<Option<Browsers>, browserslist::Error> {
use browserslist::{execute, Opts};

Self::from_distribs(execute(&Opts::new())?)
Self::from_distribs(execute(&Opts::default())?)
}

fn from_distribs(distribs: Vec<browserslist::Distrib>) -> Result<Option<Browsers>, browserslist::Error> {
Expand Down

0 comments on commit 3e62347

Please sign in to comment.