Release 0.19.0
Progress: 3371 of 5945 tests passed in dart-sass compatibility mode.
Breaking changes
- The unit of a
Numeric
is now aUnitSet
rather than aUnit
. Error
has new variants and a new field inBadArguments
.- A sass::Value::Call now has a source position.
- A
Rational
is now aRatio<i64>
rather than aRatio<isize>
.
Improvements
- Added a Contributing section to readme.
- Handle values with multiple units. PR #97.
- Show call position for errors in function calls, and test for type errors in many standard functions. Many error messages are made identical to dart-sass, improving test-suit progress with more than 400 tests. PR #99.
- Fix issue #98: overflow in rational number arithmetic.
- Allow
@at-root
at document root. - Boolean operators is truly lazy, e.g.
false and f($x)
does not callf
. - Refactored number parsing to use overflowing rationals. PR #100.
- Test suite sass-spec updated to 2021-03-02.
- Updated num-rational and num-bigint to 0.4.0.
Thanks to @alvra for reporting #98.
Tested with rustc 1.50.0 (cb75ad5db 2021-02-10), rustc 1.48.0 (7eac88abb 2020-11-16), rustc 1.46.0 (04488afe3 2020-08-24), rustc 1.44.1 (c7087fe00 2020-06-17), rustc 1.51.0-beta.6 (6a1835ad7 2021-03-12), and rustc 1.52.0-nightly (acca81892 2021-03-13).