Release 0.16.0
Progress: 2718 of 5840 tests passed in dart-sass compatiblilty mode.
Breaking changes
SourceName
andsass::Item::Import
was changed by #62.Use
was added to thesass::Item
enum by #80.- Changes to
sass::Value
andcss::Vaue
by #81.
Improvements
- PR #80: Implement
@use
for standard sass modules. All standard modules are at least partially supported, onlysass:string
is fully supported. See issue #60 for for module support status. - PR 82: Implement hwb support in
sass:color
. Also, provideFrom<Rgba>
forcss::Value
and deprecate color value constructors. - Provide
From<bool>
forcss::Value
(and deprecateValue::bool(v)
). - PR #62: Improve
ParseError
,SourcePos
, andSourceName
by using located spans by nom_locate in the parser. Asass::Item::Import
now handles where each file is imported from, to improve error reporting. - PR #81: Improved number handlig. Now
Value::Number
handles both machine-sized rationals, bignum rationals and floats internally andValue::NumberBig
is removed. Also,Value
no longer implemntsOrd
but onlyPartialOrd
, to handle f64 NaN an infinite values correctly. - Improve parsing of
@else
clauses. - Update spec to 2020-10-29.
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.8 (121901459 2020-11-08), and 1.49.0-nightly (25f6938da 2020-11-09),