From 8a67583105757e4a25378d65d243b87a345b2c2d Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 3 Nov 2024 12:51:50 -0800 Subject: [PATCH] v1.28.0 --- Cargo.lock | 4 ++-- Cargo.toml | 24 ++++++++++++++++++------ napi/Cargo.toml | 13 ++++++++++--- node/Cargo.toml | 9 +++++++-- package.json | 2 +- selectors/Cargo.toml | 2 +- 6 files changed, 39 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2769d0c3..9367e100 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -787,7 +787,7 @@ dependencies = [ [[package]] name = "lightningcss-napi" -version = "0.3.0" +version = "0.4.0" dependencies = [ "crossbeam-channel", "cssparser", @@ -975,7 +975,7 @@ checksum = "7f222829ae9293e33a9f5e9f440c6760a3d450a64affe1846486b140db81c1f4" [[package]] name = "parcel_selectors" -version = "0.27.0" +version = "0.28.0" dependencies = [ "bitflags 2.4.1", "cssparser", diff --git a/Cargo.toml b/Cargo.toml index 7b1cb511..c9545e94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ "c", "derive", "static-self", - "static-self-derive" + "static-self-derive", ] [package] @@ -16,7 +16,7 @@ version = "1.0.0-alpha.59" description = "A CSS parser, transformer, and minifier" license = "MPL-2.0" edition = "2021" -keywords = [ "CSS", "minifier", "Parcel" ] +keywords = ["CSS", "minifier", "Parcel"] repository = "https://github.com/parcel-bundler/lightningcss" [package.metadata.docs.rs] @@ -41,17 +41,27 @@ cli = ["atty", "clap", "serde_json", "browserslist", "jemallocator"] grid = [] jsonschema = ["schemars", "serde", "parcel_selectors/jsonschema"] nodejs = ["dep:serde"] -serde = ["dep:serde", "smallvec/serde", "cssparser/serde", "parcel_selectors/serde", "into_owned"] +serde = [ + "dep:serde", + "smallvec/serde", + "cssparser/serde", + "parcel_selectors/serde", + "into_owned", +] sourcemap = ["parcel_sourcemap"] visitor = [] -into_owned = ["static-self", "static-self/smallvec", "parcel_selectors/into_owned"] +into_owned = [ + "static-self", + "static-self/smallvec", + "parcel_selectors/into_owned", +] substitute_variables = ["visitor", "into_owned"] [dependencies] serde = { version = "1.0.201", features = ["derive"], optional = true } cssparser = "0.33.0" cssparser-color = "0.1.0" -parcel_selectors = { version = "0.27.0", path = "./selectors" } +parcel_selectors = { version = "0.28.0", path = "./selectors" } itertools = "0.10.1" smallvec = { version = "1.7.0", features = ["union"] } bitflags = "2.2.1" @@ -74,7 +84,9 @@ schemars = { version = "0.8.19", features = ["smallvec"], optional = true } static-self = { version = "0.1.0", path = "static-self", optional = true } [target.'cfg(target_os = "macos")'.dependencies] -jemallocator = { version = "0.3.2", features = ["disable_initial_exec_tls"], optional = true } +jemallocator = { version = "0.3.2", features = [ + "disable_initial_exec_tls", +], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2", features = ["custom"], default-features = false } diff --git a/napi/Cargo.toml b/napi/Cargo.toml index 8807f557..83134546 100644 --- a/napi/Cargo.toml +++ b/napi/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Devon Govett "] name = "lightningcss-napi" -version = "0.3.0" +version = "0.4.0" description = "Node-API bindings for Lightning CSS" license = "MPL-2.0" repository = "https://github.com/parcel-bundler/lightningcss" @@ -16,10 +16,17 @@ bundler = ["dep:crossbeam-channel", "dep:rayon"] serde = { version = "1.0.201", features = ["derive"] } serde_bytes = "0.11.5" cssparser = "0.33.0" -lightningcss = { version = "1.0.0-alpha.56", path = "../", features = ["nodejs", "serde"] } +lightningcss = { version = "1.0.0-alpha.56", path = "../", features = [ + "nodejs", + "serde", +] } parcel_sourcemap = { version = "2.1.1", features = ["json"] } serde-detach = "0.0.1" smallvec = { version = "1.7.0", features = ["union"] } -napi = {version = "2", default-features = false, features = ["napi4", "napi5", "serde-json"]} +napi = { version = "2", default-features = false, features = [ + "napi4", + "napi5", + "serde-json", +] } crossbeam-channel = { version = "0.5.6", optional = true } rayon = { version = "1.5.1", optional = true } diff --git a/node/Cargo.toml b/node/Cargo.toml index aacc0f45..f4713da7 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -9,8 +9,13 @@ publish = false crate-type = ["cdylib"] [dependencies] -lightningcss-napi = { version = "0.3.0", path = "../napi", features = ["bundler", "visitor"] } -napi = {version = "2.15.4", default-features = false, features = ["compat-mode"]} +lightningcss-napi = { version = "0.4.0", path = "../napi", features = [ + "bundler", + "visitor", +] } +napi = { version = "2.15.4", default-features = false, features = [ + "compat-mode", +] } napi-derive = "2" [target.'cfg(target_os = "macos")'.dependencies] diff --git a/package.json b/package.json index c0a03b84..9594e521 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lightningcss", - "version": "1.27.0", + "version": "1.28.0", "license": "MPL-2.0", "description": "A CSS parser, transformer, and minifier written in Rust", "main": "node/index.js", diff --git a/selectors/Cargo.toml b/selectors/Cargo.toml index 32c6a891..90a2aab3 100644 --- a/selectors/Cargo.toml +++ b/selectors/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "parcel_selectors" -version = "0.27.0" +version = "0.28.0" authors = ["The Servo Project Developers"] documentation = "https://docs.rs/parcel_selectors/" description = "CSS Selectors matching for Rust - forked for lightningcss"