Skip to content

chore(release): v0.2.6 — adopt core sasso 0.6.2 (compressed color fix) - #1

Merged
linyiru merged 1 commit into
mainfrom
chore/adopt-core-0.6.2
Jun 25, 2026
Merged

linyiru merged 1 commit into
mainfrom
chore/adopt-core-0.6.2

Conversation

@linyiru

@linyiru linyiru commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Adopt core sasso 0.6.2 (recompile-only; the gem's Ruby API is unchanged).

Core 0.6.2 fixes compressed output to emit the shortest equivalent legacy-color
form
, matching dart-sass 1.101.0 byte-for-byte:

input (compressed) before (0.6.1) after (0.6.2)
darken(#336699, 10%) rgb(38.25,76.5,114.75) hsl(210,50%,30%)
hsl(210, 50%, 40%) hsl(210,50%,40%) #369

Expanded output is unchanged. This matters for embedders that compile
user-authored CSS at runtime (e.g. darken/lighten/mix in custom CSS) — the
output is now identical to dart-sass.

Changes

  • ext/sasso/Cargo.toml: pin sasso_core =0.6.1 → =0.6.2 (+ Cargo.lock).
  • lib/sasso/version.rb: gem 0.2.5 → 0.2.6.
  • CHANGELOG.md: [0.2.6] entry.
  • test/compile_test.rb: binding-level regression test for the new compressed
    color output.

Validation

  • rake compile builds the native ext against the freshly-published core 0.6.2.
  • rake test: 17 runs, 38 assertions, 0 failures.
  • Verified through the gem: Sasso.compile_string("a{x:darken(#336699,10%)}", style: :compressed) → a{x:hsl(210,50%,30%)}.

Upstream: momiji-rs/sasso#14 (core fix, released as crate 0.6.2).

Recompile-only bump; the gem's Ruby API is unchanged. Picks up the upstream fix
where compressed output emits the shortest equivalent legacy-color form,
matching dart-sass 1.101.0:

  - darken(#336699, 10%) -> hsl(210,50%,30%)  (was rgb(38.25,76.5,114.75))
  - hsl(210, 50%, 40%)   -> #369

Expanded output is unchanged. Pins ext/sasso/Cargo.toml to sasso =0.6.2 and
adds a binding-level regression test.
@linyiru
linyiru merged commit df08ecf into main Jun 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant