dart-sass
Advanced tools
Changelog
1.22.4
Changelog
1.22.3
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()
or append()
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.
Changelog
1.22.2
require()
function to make the code statically
analyzable by Webpack.Changelog
1.22.0
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.
Value.realNull
getter, which returns Dart's null
if the value is
Sass's null.Changelog
1.21.0
Add a sass
executable when installing the package through pub
.
Add a top-level warn()
function for custom functions and importers to print
warning messages.
Changelog
1.19.0
!
in url()
s without quotes.FilesystemImporter
now doesn't change its effective directory if the working
directory changes, even if it's passed a relative argument.Changelog
1.18.0
Avoid recursively listing directories when finding the canonical name of a file on case-insensitive filesystems.
Fix importing files relative to package:
-imported files.
Don't claim that "package:" URLs aren't supported when they actually are.
--no-charset
flag. If this flag is set, Sass will never emit a
@charset
declaration or a byte-order mark, even if the CSS file contains
non-ASCII characters.Add a charset
option to compile()
, compileString()
, compileAsync()
and
compileStringAsync()
. If this option is set to false
, Sass will never emit
a @charset
declaration or a byte-order mark, even if the CSS file contains
non-ASCII characters.
Explicitly require that importers' canonicalize()
methods be able to take
paths relative to their outputs as valid inputs. This isn't considered a
breaking change because the importer infrastructure already required this in
practice.