Release 0.15.0
Progress: 2320 of 5577 tests passed in dart-sass compatiblilty mode.
Breaking changes
- The
Item::Comment
enum value now contains aSassString
rather than aString
. - The
Error::ParseError
enum value changed, andErrPos
is replaced withSourcePos
andSourceName
. - The error type of
parse_scss_data
changed toParseError
. Unit::dimension()
now returns aDimension
rather than a&str
.
Improvements
- PR #79: Refactor some error handling. Relates to #46.
- Improve map parsing (a map is parsed as a plain vec of key/value pairs, filterig duplicates happens only when it is evaluated).
- Allow multiple
&
items in the same selector. &
evaluates to null when used as a value without enclosing selector.- Implement the
@debug
directive. - Fix
a % b
evaluation for negative values. - Allow / ignore comments in properties and values.
- Allow
!default
and!global
in any order on variable declarations. - Improve
inspect(...)
formatting of list values. - Refactor and improve arithmetic on different units.
ListSeparator
is nowCopy
.- Allow interpolation in comments.
- Some refactoring
Tested with rustc 1.47.0 (18bf6b4f0 2020-10-07), 1.44.1 (c7087fe00 2020-06-17), 1.42.0 (b8cedc004 2020-03-09), 1.40.0 (73528e339 2019-12-16), 1.38.0 (625451e37 2019-09-23), 1.48.0-beta.5 (4c78178b1 2020-10-21), and 1.49.0-nightly (ffa2e7ae8 2020-10-24).