Releases: sass/dart-sass
Dart Sass 1.22.9
To install Dart Sass 1.22.9, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Include argument names when reporting range errors and selector parse errors.
-
Avoid double
Error:
headers when reporting selector parse errors. -
Clarify the error message when the wrong number of positional arguments are passed along with a named argument.
JavaScript API
- Re-add support for Node Carbon (8.x).
See the full changelog for changes in earlier releases.
Dart Sass 1.22.8
To install Dart Sass 1.22.8, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JavaScript API
-
Don't crash when running in a directory whose name contains URL-sensitive characters.
-
Drop support for Node Carbon (8.x), which doesn't support
url.pathToFileURL
.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.7
To install Dart Sass 1.22.7, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Restrict the supported versions of the Dart SDK to
^2.4.0
.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.6
To install Dart Sass 1.22.6, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Potentially breaking bug fix: The
keywords()
function now converts underscore-separated argument names to hyphen-separated names. This matches LibSass's behavior, but not Ruby Sass's. -
Further improve performance for logic-heavy stylesheets.
-
Improve a few error messages.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.5
To install Dart Sass 1.22.5, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JavaScript API
- Improve performance for logic-heavy stylesheets.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.4
To install Dart Sass 1.22.4, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Fix a bug where at-rules imported from within a style rule would appear within that style rule rather than at the root of the document.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.3
To install Dart Sass 1.22.3, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Potentially breaking bug fix: The argument name for the
saturate()
function is now$amount
, to match the name in LibSass and originally in Ruby Sass. -
Potentially breaking bug fix: The
invert()
function now properly returns#808080
when passed$weight: 50%
. This matches the behavior in LibSass and originally in Ruby Sass, as well as being consistent with other nearby values of$weight
. -
Potentially breaking bug fix: The
invert()
function now throws an error if it's used as a plain CSS function and the Sass-only$weight
parameter is passed. This never did anything useful, so it's considered a bug fix rather than a full breaking change. -
Potentially breaking bug fix: The
str-insert()
function now properly inserts at the end of the string if the$index
is-1
. This matches the behavior in LibSass and originally in Ruby Sass. -
Potentially breaking bug fix: An empty map returned by
map-remove()
is now treated as identical to the literal value()
, rather than being treated as though it had a comma separator. This matches the original behavior in Ruby Sass. -
The
adjust-color()
function no longer throws an error when a large$alpha
value is combined with HSL adjustments. -
The
alpha()
function now produces clearer error messages when the wrong number of arguments are passed. -
Fix a bug where the
str-slice()
function could produce invalid output when passed a string that contains characters that aren't represented as a single byte in UTF-16. -
Improve the error message for an unknown separator name passed to the
join()
orappend()
functions. -
The
zip()
function no longer deadlocks if passed no arguments. -
The
map-remove()
function can now take a$key
named argument. This matches the signature in LibSass and originally in Ruby Sass.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.2
To install Dart Sass 1.22.2, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JavaScript API
- Avoid re-assigning the
require()
function to make the code statically analyzable by Webpack.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.1
To install Dart Sass 1.22.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JavaScript API
- Expand the dependency on
chokidar
to allow 3.x.
See the full changelog for changes in earlier releases.
Dart Sass 1.22.0
To install Dart Sass 1.22.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Produce better stack traces when importing a file that contains a syntax error.
-
Make deprecation warnings for
!global
variable declarations that create new variables clearer, especially in the case where the!global
flag is unnecessary because the variables are at the top level of the stylesheet.
Dart API
- Add a
Value.realNull
getter, which returns Dart'snull
if the value is Sass's null.
See the full changelog for changes in earlier releases.