Dart-sass

Latest version: v0.5.2

Safety actively analyzes 702232 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 29 of 32

1.3.1

Node API

* Fix loading imports relative to stylesheets that were themselves imported
though relative include paths.

1.3.0

Command-Line Interface

* Generate source map files by default when writing to disk. This can be
disabled by passing `--no-source-map`.

* Add a `--source-map-urls` option to control whether the source file URLs in
the generated source map are relative or absolute.

* Add an `--embed-sources` option to embed the contents of all source files in
the generated source map.

* Add an `--embed-source-map` option to embed the generated source map as a
`data:` URL in the generated CSS.

Dart API

* Add a `sourceMap` parameter to `compile()`, `compileString()`,
`compileAsync()`, and `compileStringAsync()`. This takes a callback that's
called with a [`SingleMapping`][] that contains the source map information for
the compiled CSS file.

[`SingleMapping`]: https://www.dartdocs.org/documentation/source_maps/latest/source_maps.parser/SingleMapping-class.html

Node API

* Added support for the `sourceMap`, `omitSourceMapUrl`, `outFile`,
`sourceMapContents`, `sourceMapEmbed`, and `sourceMapRoot` options to
`render()` and `renderSync()`.

* Fix a bug where passing a relative path to `render()` or `renderSync()` would
cause relative imports to break.

* Fix a crash when printing warnings in stylesheets compiled using `render()` or
`renderSync()`.

* Fix a bug where format errors were reported badly on Windows.

1.2.1

* Always emit units in compressed mode for `0` dimensions other than lengths and
angles.

1.2.0

* The command-line executable will now create the directory for the resulting
CSS if that directory doesn't exist.

* Properly parse `{$var} -{$var}` as two separate values in a list rather than
one value being subtracted from another.

* Improve the error message for extending compound selectors.

1.1.1

* Add a commit that was accidentally left out of 1.1.0.

1.1.0

* The command-line executable can now be used to write an output file to disk
using `sass input.scss output.css`.

* Use a POSIX-shell-compatible means of finding the location of the `sass` shell
script.

Page 29 of 32

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.