|
4 | 4 | division in SassScript. You can still use it for division within `calc()` and |
5 | 5 | other calculation expressions, or use `math.div()` instead. |
6 | 6 |
|
| 7 | +* **Breaking change:** The global functions `red()`, `green()`, `blue()`, |
| 8 | + `hue()`, `saturation()`, `lightness()`, `whiteness()`, `blackness()`, |
| 9 | + `alpha()`, `opacity()`, `adjust-hue()`, `saturate()`, `desaturate()`, |
| 10 | + `lighten()`, `darken()`, `opacify()`, `fade-in()`, `transparentize()`, and |
| 11 | + `fade-out()`, as well as their `sass:color` equivalents where they exist, have |
| 12 | + been removed. |
| 13 | + |
7 | 14 | * **Breaking change:** `@elseif` is no longer treated as equivalent to `@else |
8 | 15 | if`, and is now treated like any other unknown plain CSS at-rule. |
9 | 16 |
|
|
106 | 113 | * **Breaking change:** Remove `Deprecation.duplicateVariableFlags`. Use |
107 | 114 | `Deprecation.duplicateVarFlags`. |
108 | 115 |
|
| 116 | +#### `SassColor` |
| 117 | + |
| 118 | +* **Breaking change:** Remove the `SassColor.red`, `.green`, `.blue`, `.hue`, |
| 119 | + `.saturation`, `.lightness`, `.whiteness`, and `.blackness` parameters. Use |
| 120 | + the `SassColor.channel()` method instead. |
| 121 | + |
| 122 | +* **Breaking change:** Remove the `SassColor.changeRgb`, `.changeHsl`, and |
| 123 | + `.changeHwb` methods. Use `SassColor.changeChannels()` instead. |
| 124 | + |
109 | 125 | #### `ImporterResult` |
110 | 126 |
|
111 | 127 | * **Breaking change:** Remove `ImporterResult.isIndented`. Use |
|
117 | 133 | * **Breaking change:** The `syntax` parameter to `ImporterResult()` is now |
118 | 134 | `required` and non-nullable. |
119 | 135 |
|
| 136 | +### JavaScript API |
| 137 | + |
| 138 | +#### `SassColor` |
| 139 | + |
| 140 | +* **Breaking change:** Remove the `SassColor.red`, `.green`, `.blue`, `.hue`, |
| 141 | + `.saturation`, `.lightness`, `.whiteness`, and `.blackness` parameters. Use |
| 142 | + the `SassColor.channel()` method instead. |
| 143 | + |
| 144 | +* **Breaking change:** A `null` `alpha` argument for `new SassColor()` for a |
| 145 | + legacy color space is now interpreted as a missing channel rather than a fully |
| 146 | + opaque color. Use `undefined` to pass the default value for any channel or `1` |
| 147 | + to explicitly make the color opaque. |
| 148 | + |
| 149 | +* **Breaking change:** Calling `SassColor.change()` for a legacy color with a |
| 150 | + `null` value now marks that channel as missing rather than using its previous |
| 151 | + value. Use `undefined` to retain the previous value. |
| 152 | + |
| 153 | +* **Breaking change:** Calling `SassColor.change()` with a channel name not in |
| 154 | + the color's current color space is now an error for all colors. Previously, |
| 155 | + legacy colors would automatically convert between the RGB, HSL, and HWB color |
| 156 | + spaces. You can pass the `space` parameter to explicitly convert to a new |
| 157 | + space. |
| 158 | + |
120 | 159 | ## 1.97.4-dev |
121 | 160 |
|
122 | 161 | ### JavaScript API |
|
0 commit comments