Skip to content

Update dependency sass to ^1.28.0

Administrator requested to merge renovate/sass-1.x into main

Created by: renovate[bot]

This PR contains the following updates:

Package Type Update New value References Sourcegraph
sass devDependencies minor ^1.28.0 source code search for "sass"

Release Notes

sass/dart-sass

v1.28.0

Compare Source

  • Add a color.hwb() function to sass:color that can express colors in HWB format.
Dart API
  • Add HWB support to the SassColor class, including a SassColor.hwb() constructor, whiteness and blackness getters, and a changeHwb() method.

v1.27.2

Compare Source

  • No user-visible changes.

v1.27.1

Compare Source

  • Potentially breaking bug fix: meta.load-css() now correctly uses the name $url for its first argument, rather than $module.

  • Don't crash when using Infinity or NaN as 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 @extend edge cases.

v1.27.0

Compare Source

  • Adds an overload to map.merge() that supports merging a nested map.

    map.merge($map1, $keys..., $map2): The $keys form a path to the nested map in $map1, into which $map2 gets 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 $map with the specified $key and $value.

    map.set($map, $keys..., $value): Adds to or updates a map that is nested within $map. The $keys form a path to the nested map in $map, into which $value is 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 return d. 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 like map.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 the Value as a SassMap if it's a valid map, or null otherwise. This allows function authors to safely retrieve maps even if they're internally stored as empty lists, without having to catch exceptions from Value.assertMap().

v1.26.12

Compare Source

  • Fix a bug where nesting properties beneath a Sass-syntax custom property (written as #{--foo}: ...) would crash.

v1.26.11

Compare Source

  • 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 Infinity in JS mode.

  • Produce a better error message for positional arguments following named arguments.


Renovate configuration

📅 Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

Merge request reports

Loading