|
| 1 | +## 1.56.0 |
| 2 | + |
| 3 | +* **Potentially breaking change:** To match the CSS spec, SassScript expressions |
| 4 | + beginning with `not` or `(` are no longer supported at the beginning of |
| 5 | + parenthesized sections of media queries. For example, |
| 6 | + |
| 7 | + ```scss |
| 8 | + @media (width >= 500px) and (not (grid)) |
| 9 | + ``` |
| 10 | + |
| 11 | + will now be emitted unchanged, instead of producing |
| 12 | + |
| 13 | + ```scss |
| 14 | + @media (width >= 500px) and (false) |
| 15 | + ``` |
| 16 | + |
| 17 | + See [the Sass website](https://sass-lang.com/d/media-logic) for details. |
| 18 | + |
| 19 | +* **Potentially breaking bug fix:** Angle units like `rad` or `turn` are now |
| 20 | + properly converted to equivalent `deg` values for `hsl()`, `hsla()`, |
| 21 | + `adjust-hue()`, `color.adjust()`, and `color.change()`. |
| 22 | + |
| 23 | + See [the Sass website](https://sass-lang.com/d/function-units#hue) for |
| 24 | + details. |
| 25 | + |
| 26 | +* Fix indentation for selectors that span multiple lines in a `@media` query. |
| 27 | + |
| 28 | +* Emit a deprecation warning when passing `$alpha` values with units to |
| 29 | + `color.adjust()` or `color.change()`. This will be an error in Dart Sass |
| 30 | + 2.0.0. |
| 31 | + |
| 32 | + See [the Sass website](https://sass-lang.com/d/function-units#alpha) for |
| 33 | + details. |
| 34 | + |
| 35 | +* Emit a deprecation warning when passing a `$weight` value with no units or |
| 36 | + with units other than `%` to `color.mix()`. This will be an error in Dart Sass |
| 37 | + 2.0.0. |
| 38 | + |
| 39 | + See [the Sass website](https://sass-lang.com/d/function-units#weight) for |
| 40 | + details. |
| 41 | + |
| 42 | +* Emit a deprecation warning when passing `$n` values with units to `list.nth()` |
| 43 | + or `list.set-nth()`. This will be an error in Dart Sass 2.0.0. |
| 44 | + |
| 45 | + See [the Sass website](https://sass-lang.com/d/function-units#index) for |
| 46 | + details. |
| 47 | + |
| 48 | +* Improve existing deprecation warnings to wrap `/`-as-division suggestions in |
| 49 | + `calc()` expressions. |
| 50 | + |
| 51 | +* Properly mark the warning for passing numbers with units to `random()` as a |
| 52 | + deprecation warning. |
| 53 | + |
| 54 | +* Fix a bug where `@extend` could behave unpredicatably when used along with |
| 55 | + `meta.load-css()` and shared modules that contained no CSS themselves but |
| 56 | + loaded CSS from other modules. |
| 57 | + |
| 58 | +### Dart API |
| 59 | + |
| 60 | +* Emit a deprecation warning when passing a `sassIndex` with units to |
| 61 | + `Value.sassIndexToListIndex()`. This will be an error in Dart Sass 2.0.0. |
| 62 | + |
| 63 | +### JS API |
| 64 | + |
| 65 | +* Importer results now validate whether `contents` is actually a string type. |
| 66 | + |
| 67 | +* Importer result argument errors are now rendered correctly. |
| 68 | + |
1 | 69 | ## 1.55.0
|
2 | 70 |
|
3 | 71 | * **Potentially breaking bug fix:** Sass numbers are now universally stored as
|
|
0 commit comments