Skip to content

chore: bundle sasso core 0.6.3 (drop trailing newline, dart-sass parity) - #1

Merged
linyiru merged 1 commit into
mainfrom
chore/bump-core-0.6.3-trailing-newline
Jun 25, 2026
Merged

chore: bundle sasso core 0.6.3 (drop trailing newline, dart-sass parity)#1
linyiru merged 1 commit into
mainfrom
chore/bump-core-0.6.3-trailing-newline

Conversation

@linyiru

@linyiru linyiru commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Bundles the sasso compiler crate 0.6.3 (was 0.6.0), propagating the
trailing-newline parity fix to the Python package.

What changed

The C ABI is dart-sass's library API, which — unlike the sass CLI — does
not terminate its output with \n. Core 0.6.3 fixed this, so
sasso.compile(...) is now byte-for-byte identical to dart-sass
compileString().css for both expanded and compressed output.

  • native/Cargo.toml: sasso_core pin =0.6.0=0.6.3; crate version 0.6.00.6.3
  • native/src/lib.rs: refresh the vendored-header pin reference to =0.6.3
    (the vendored C ABI source is otherwise unchanged between 0.6.0 and 0.6.3 —
    only include/sasso.h-identical code; no re-vendor needed)
  • __version__ 0.1.10.1.2
  • tests: drop the trailing newline from the expected CSS, add a regression test
    covering both styles, and refresh the stale version asserts (0.1.2 / 0.6.3)

Verification

python scripts/build_native.py (cargo resolved sasso v0.6.0 -> v0.6.3) +
full pytest against the freshly built lib: 16 passed.

⚠️ Behavior change: if you relied on the trailing newline (e.g. writing the
result straight to a .css file), append it yourself:
Path("out.css").write_text(sasso.compile(src) + "\n"). See CHANGELOG.

https://claude.ai/code/session_018hunqBr6AhWGu1dSJTEWMu

Bump the bundled core compiler crate from 0.6.0 to 0.6.3 (exact pin in
native/Cargo.toml). Core 0.6.3 fixes the trailing-newline divergence: the C
ABI is dart-sass's library API, which does NOT terminate output with `\n`
(for both expanded and compressed), so `compile(...)` is now byte-for-byte
identical to dart-sass `compileString().css`.

- native/Cargo.toml: sasso_core pin =0.6.0 -> =0.6.3; crate version 0.6.0 -> 0.6.3
- native/src/lib.rs: refresh the vendored-header pin reference to =0.6.3
  (the C ABI source itself is unchanged between 0.6.0 and 0.6.3)
- __version__ 0.1.1 -> 0.1.2
- tests: drop the trailing newline from the expected CSS, add a regression
  test for both styles, and refresh the stale version asserts (0.1.2 / 0.6.3)

Claude-Session: https://claude.ai/code/session_018hunqBr6AhWGu1dSJTEWMu
@linyiru
linyiru merged commit 92dc6c6 into main Jun 25, 2026
4 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