Skip to content

Commit

Permalink
Release 0.27.0
Browse files Browse the repository at this point in the history
Released 2023-01-17.
See also <https://rasmus.krats.se/2023/rsass027.en>
Progress: 4604 of 6925 tests passed.

* Changed repo structure to a monorepo (PR #164).
  - The commandline interface now lives in the separate crate rsass-cli.
  - The test updater also have a separate crate, but not intended for
    publication.
  - Tests are restructured to fail faster for simple things, while
    macos and windows testing is added to the github action (appveyor
    is removed).
* Added macros (PR #163, #165).
  - The workspace now includes a `rsass-macros` crate that can be used to
    compile sass to css strings at compile time in rust crates.
* Changed numeric handing (mainly conversions to/from `f64`) to match
  improvements in how dart-sass handles numerics.  This is mainly done by
  removing some special cases as dart-sass and rust now agrees on more of
  those.
* Added new variables `$epsilon`, `$max-safe-integer`, `$min-safe-integer`,
  `$max-number`, and `$min-number` in `sass:math`, matching recent dart-sass
  additions.
* Added new `split()` function in `sass:string` module.
* Changed the span type used in parsing to a local type that borrows a
  `SourceFile` instead of `nom_locate` dependency (PR #158).
* Changed the type `SourceFile` to be reference counted, so cloned
  `SourceFile` objects share the same actual data (PR #158).
* Moved the `SourcePos` type into the `input` module and converted it from
  keeping a copy of the relevant line to keeping a range with a (reference
  counted) `SourceFile` (PR #158).
* Changed css creation from just writing to a text buffer to building
  a tree representation of the css (and serialize it to text as a
  final step) (PR #159).
* Changed `BinOp` value in both sass and css from a tuple variant with
  boxed values to a single boxed struct variant.
* Improved value checking; Report an error if trying to output invalid
  css values in some cases. Also, arithmetic involving colors that
  used to be calculated is now correctly invalid (PR #161).
* Changed `css::Item::AtRule` to wrap the new type `css::AtRule`.
* More varaints of `Invalid`, slightly fewer stringy errors.
* Changed handling of `hue` arguments to color functions, to allow
  different angle units, matching updates in sass-spec.
* Minor correctness improvent in the `calc` function handling.
* Clippy now takes MSRV from Cargo.toml.  Slightly more recent lints allowed.
* Updated clap to 4.0 for the command-line interface.
* Updated sass-spec test suite to 2023-01-06.

Thanks to @Wicpar for the initial macros implementation.
  • Loading branch information
kaj committed Jan 17, 2023
1 parent 3040011 commit 76528a8
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ The format is based on
project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## Release 0.27.0

Released 2023-01-17.
See also <https://rasmus.krats.se/2023/rsass027.en>
Progress: 4604 of 6925 tests passed.

* Changed repo structure to a monorepo (PR #164).
- The commandline interface now lives in the separate crate rsass-cli.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The sass language [is defined in its reference
doc](http://sass-lang.com/documentation/).
This implementation is incomplete but getting there, if slowly.

Progress: 4500 of 6843 tests passed.
Progress: 4604 of 6925 tests passed.

If you need _complete_ sass support, you'll need
[dart sass](https://sass-lang.com/dart-sass).
Expand Down
4 changes: 2 additions & 2 deletions rsass-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsass-cli"
version = "0.26.1-PRE"
version = "0.27.0"
authors = ["Rasmus Kaj <[email protected]>"]
description = "Commandline interface for rsass, compiles scss to css."
categories = ["command-line-utilities", "web-programming"]
Expand All @@ -19,5 +19,5 @@ path = "src/main.rs"
unimplemented_args = []

[dependencies]
rsass = { path = "../rsass" }
rsass = { path = "../rsass", version = "0.27.0" }
clap = { version = "4.1.1", features = ["derive", "wrap_help"] }
2 changes: 1 addition & 1 deletion rsass-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The sass language [is defined in its reference
doc](http://sass-lang.com/documentation/).
This implementation is incomplete but getting there, if slowly.

Progress: 4500 of 6843 tests passed.
Progress: 4604 of 6925 tests passed.

If you want a standalone sass executable, you're probably better of
with [dart sass](https://sass-lang.com/dart-sass).
Expand Down
4 changes: 2 additions & 2 deletions rsass-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsass-macros"
version = "0.1.0"
version = "0.27.0"
categories = ["web-programming"]
keywords = ["scss", "sass", "css", "web", "macro"]
description = "Sass as a rust function-like macro."
Expand All @@ -15,7 +15,7 @@ rust-version = "1.60.0"
proc-macro = true

[dependencies]
rsass = { path = "../rsass", version = "0.26.1-PRE" }
rsass = { path = "../rsass", version = "0.27.0" }
proc-macro2 = "1.0.32"
quote = "1.0.22"
syn = "1.0.106"
2 changes: 1 addition & 1 deletion rsass/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsass"
version = "0.26.1-PRE"
version = "0.27.0"
authors = ["Rasmus Kaj <[email protected]>"]
categories = ["web-programming"]
keywords = ["scss", "sass", "css", "web"]
Expand Down
2 changes: 1 addition & 1 deletion rsass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The sass language [is defined in its reference
doc](http://sass-lang.com/documentation/).
This implementation is incomplete but getting there, if slowly.

Progress: 4500 of 6843 tests passed.
Progress: 4604 of 6925 tests passed.

If you need _complete_ sass support, you'll need to call
[dart sass](https://sass-lang.com/dart-sass).
Expand Down
2 changes: 1 addition & 1 deletion rsass/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! doc](http://sass-lang.com/documentation/).
//! This implementation is incomplete but getting there, if slowly.
//!
//! Progress: 4500 of 6843 tests passed.
//! Progress: 4604 of 6925 tests passed.
//!
//! If you want a working rust library for sass right now, you may
//! be better of with [sass-rs](https://crates.io/crates/sass-rs)
Expand Down
4 changes: 2 additions & 2 deletions spectest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "spectest"
version = "0.26.1-PRE"
version = "0.27.0"
authors = ["Rasmus Kaj <[email protected]>"]
description = "Converts sass-spec to rust tests."
edition = "2021"
rust-version = "1.60.0"

[dependencies]
rsass = { path = "../rsass" }
rsass = { path = "../rsass", version = "0.27.0" }
deunicode = "1.0"
hrx-get = "0.2.0"
lazy-regex = "2.3.0"
Expand Down

0 comments on commit 76528a8

Please sign in to comment.