Changelog
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.
Changelog
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.
Changelog
Changes Since 1.0.0-rc.1
!
in custom property values ([#260][]).render()
function.Errors are now subtypes of the Error
type.
Allow both the data
and file
options to be passed to render()
and
renderSync()
at once. The data
option will be used as the contents of the
stylesheet, and the file
option will be used as the path for error reporting
and relative imports. This matches Node Sass's behavior.
Changelog
1.0.0-beta.5.3
Support hard tabs in the indented syntax.
Improve the formatting of comments that don't start on the same line as the
opening /*
.
Preserve whitespace after and
in media queries in compressed mode.
Properly parse multi-line selectors.
Don't deadlock on /*
comments.
Don't add an extra */
to comments that already have it.
Preserve empty lines in /*
comments.
Changelog
1.0.0-beta.5.2
compressed
mode.Changelog
1.0.0-beta.5.1
Add a compressed
output style.
Emit a warning when &&
is used, since it's probably not what the user means.
round()
now returns the correct results for negative numbers that should
round down.
var()
may now be passed in place of multiple arguments to rgb()
, rgba()
,
hsl()
and hsla()
.
Fix some cases where equivalent numbers wouldn't count as the same keys in maps.
Fix a bug where multiplication like (1/1px) * (1px/1)
wouldn't properly
cancel out units.
Fix a bug where dividing by a compatible unit would produce an invalid result.
Remove a non-sh
-compatible idiom from the standalone shell script.
Add a functions
parameter to compile()
, compleString()
,
compileAsync()
, and compileStringAsync()
. This allows users to define
custom functions in Dart that can be invoked from Sass stylesheets.
Expose the Callable
and AsyncCallable
types, which represent functions
that can be invoked from Sass.
Expose the Value
type and its subclasses, as well as the top-level
sassTrue
, sassFalse
, and sassNull
values, which represent Sass values
that may be passed into or returned from custom functions.
Expose the OutputStyle
enum, and add a style
parameter to compile()
,
compleString()
, compileAsync()
, and compileStringAsync()
that allows
users to control the output style.
Support the functions
option.
Support the "compressed"
value for the outputStyle
option.
Changelog
1.0.0-beta.4
Support unquoted imports in the indented syntax.
Fix a crash when :not(...)
extends a selector that appears in
:not(:not(...))
.
render()
and renderSync()
.Add compileAsync()
and compileStringAsync()
methods. These run
asynchronously, which allows them to take asynchronous importers (see below).
Add an AsyncImporter
class. This allows imports to be resolved
asynchronously in case no synchronous APIs are available. AsyncImporter
s are
only compatible with compileAysnc()
and compileStringAsync()
.
Changelog
1.0.0-beta.3
Properly parse numbers with exponents.
Don't crash when evaluating CSS variables whose names are entirely
interpolated (for example, #{--foo}: ...
).
importer
option to render()
and renderSync()
.
Only synchronous importers are currently supported.Added an Importer
class. This can be extended by users to provide support
for custom resolution for @import
rules.
Added built-in FilesystemImporter
and PackageImporter
implementations that
support resolving file:
and package:
URLs, respectively.
Added an importers
argument to the compile()
and compileString()
functions that provides Importer
s to use when resolving @import
rules.
Added a loadPaths
argument to the compile()
and compileString()
functions that provides paths to search for stylesheets when resolving
@import
rules. This is a shorthand for passing FilesystemImporter
s to the
importers
argument.