Update dependency sass to ^1.28.0
Created by: renovate[bot]
This PR contains the following updates:
| Package | Type | Update | New value | References | Sourcegraph |
|---|---|---|---|---|---|
| sass | devDependencies | minor | ^1.28.0 | source |
Release Notes
sass/dart-sass
v1.28.0
- Add a
color.hwb()function tosass:colorthat can express colors in HWB format.
- Add
color.whiteness()andcolor.blackness()functions tosass:colorto get a color's HWB whiteness and blackness components.
- Add
$whitenessand$blacknessparameters tocolor.adjust(),color.change(), andcolor.scale()to modify a color's HWB whiteness and blackness components.
Dart API
- Add HWB support to the
SassColorclass, including aSassColor.hwb()constructor,whitenessandblacknessgetters, and achangeHwb()method.
v1.27.2
- No user-visible changes.
v1.27.1
-
Potentially breaking bug fix:
meta.load-css()now correctly uses the name$urlfor its first argument, rather than$module. -
Don't crash when using
InfinityorNaNas a key in a map. -
Emit a proper parse error for a
=with no right-hand side in a function. -
Avoid going exponential on certain recursive
@extendedge cases.
v1.27.0
-
Adds an overload to
map.merge()that supports merging a nested map.map.merge($map1, $keys..., $map2): The$keysform a path to the nested map in$map1, into which$map2gets merged.See [the Sass documentation][map-merge] for more details.
[map-merge]: https://sass-lang.com/documentation/modules/map#merge
-
Adds an overloaded
map.set()function.map.set($map, $key, $value): Adds to or updates$mapwith the specified$keyand$value.map.set($map, $keys..., $value): Adds to or updates a map that is nested within$map. The$keysform a path to the nested map in$map, into which$valueis inserted.See [the Sass documentation][map-set] for more details.
[map-set]: https://sass-lang.com/documentation/modules/map#set
-
Add support for nested maps to
map.get(). For example,map.get((a: (b: (c: d))), a, b, c)would returnd. See [the documentation][map-get] for more details.[map-get]: https://sass-lang.com/documentation/modules/map#get
-
Add support for nested maps in
map.has-key. For example,map.has-key((a: (b: (c: d))), a, b, c)would return true. See [the documentation][map-has-key] for more details.[map-has-key]: https://sass-lang.com/documentation/modules/map#has-key
-
Add a
map.deep-merge()function. This works likemap.merge(), except that nested map values are also recursively merged. For example:map.deep-merge( (color: (primary: red, secondary: blue), (color: (secondary: teal) ) // => (color: (primary: red, secondary: teal))See [the Sass documentation][map-deep-merge] for more details.
[map-deep-merge]: https://sass-lang.com/documentation/modules/map#deep-merge
-
Add a
map.deep-remove()function. This allows you to remove keys from nested maps by passing multiple keys. For example:map.deep-remove( (color: (primary: red, secondary: blue)), color, primary ) // => (color: (secondary: blue))See [the Sass documentation][map-deep-remove] for more details.
[map-deep-remove]: https://sass-lang.com/documentation/modules/map#deep-remove
-
Fix a bug where custom property values in plain CSS were being parsed as normal property values.
Dart API
- Add a
Value.tryMap()function which returns theValueas aSassMapif it's a valid map, ornullotherwise. This allows function authors to safely retrieve maps even if they're internally stored as empty lists, without having to catch exceptions fromValue.assertMap().
v1.26.12
- Fix a bug where nesting properties beneath a Sass-syntax custom property
(written as
#{--foo}: ...) would crash.
v1.26.11
-
Potentially breaking bug fix:
selector.nest()now throws an error if the first arguments contains the parent selector&. -
Fixes a parsing bug with inline comments in selectors.
-
Improve some error messages for edge-case parse failures.
-
Throw a proper error when the same built-in module is
@used twice. -
Don't crash when writing
Infinityin JS mode. -
Produce a better error message for positional arguments following named arguments.
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.