0.6.0 - 2026-06-15
Release Notes
Changed (breaking)
-
The
Importertrait is now dart-sass's two-phasecanonicalize/load
(issue #4, RFC indocs/IMPORTER_REDESIGN.md). It replaces the old
resolve(path) -> Option<String>plus the accretedresolve_*overloads:fn canonicalize(&self, url: &str, ctx: &CanonicalizeContext) -> Result<Option<CanonicalUrl>, ImporterError>; fn load(&self, canonical: &CanonicalUrl) -> Result<Option<ImporterResult>, ImporterError>;
canonicalizeresolves a URL to a stable identity without loading (its result
is the module-cache key);loadfetches the source as an
ImporterResult { contents, syntax, source_map_url }. Three outcomes:
Ok(Some)= handled,Ok(None)= not handled,Err(ImporterError)=
handled-but-failed (an actionable compile error rather than a silent miss).
New public types:CanonicalUrl,ImporterResult,ImporterError,
CanonicalizeContext. A clean break with no compatibility shim (pre-1.0).
FsImporterand the built-in resolution are unchanged in behavior (sass-spec
ratchet delta +0); only customImporterimplementations must migrate.
Added
ImporterResult.source_map_urllets an importer set the URL recorded for a
loaded file in generated source maps (dart-sassImporterResult.sourceMapUrl).
Install sasso 0.6.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/momiji-rs/sasso/releases/download/v0.6.0/sasso-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/momiji-rs/sasso/releases/download/v0.6.0/sasso-installer.ps1 | iex"Download sasso 0.6.0
| File | Platform | Checksum |
|---|---|---|
| sasso-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| sasso-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| sasso-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| sasso-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| sasso-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
| sasso-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| sasso-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |