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.
Changelog
1.17.4
sass.types.Error
constructor as an alias for Error
. This makes our
custom function API compatible with Node Sass's.Changelog
1.17.3
Fix an edge case where slash-separated numbers were written to the stylesheet with a slash even when they're used as part of another arithmetic operation, such as being concatenated with a string.
Don't put style rules inside empty @keyframes
selectors.
Changelog
1.17.2
!global
variable assignments to variables that aren't yet defined.
This deprecation message can be avoided by assigning variables to null
at
the top level before globally assigning values to them.Changelog
1.17.1
Changelog
1.17.0
Improve error output, particularly for errors that cover multiple lines.
Improve source locations for some parse errors. Rather than pointing to the next token that wasn't what was expected, they point after the previous token. This should generally provide more context for the syntax error.
Produce a better error message for style rules that are missing the closing
}
.
Produce a better error message for style rules and property declarations
within @function
rules.
Passing a directory on the command line now compiles all Sass source files in
the directory to CSS files in the same directory, as though dir:dir
were
passed instead of just dir
.
The new error output uses non-ASCII Unicode characters by default. Add a
--no-unicode
flag to disable this.