Skip to content

Commit

Permalink
v1.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Nov 3, 2024
1 parent f6b033f commit 8a67583
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

24 changes: 18 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"c",
"derive",
"static-self",
"static-self-derive"
"static-self-derive",
]

[package]
Expand All @@ -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]
Expand All @@ -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"
Expand All @@ -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 }
Expand Down
13 changes: 10 additions & 3 deletions napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Devon Govett <[email protected]>"]
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"
Expand All @@ -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 }
9 changes: 7 additions & 2 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion selectors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8a67583

Please sign in to comment.