chore(deps): update dependency sass to v1.42.0 #751

Merged
konrad merged 1 commits from renovate/sass-1.x into main 2021-09-21 20:08:18 +00:00
Member

This PR contains the following updates:

Package Type Update Change
sass devDependencies minor 1.39.2 -> 1.42.0

Release Notes

sass/dart-sass

v1.42.0

Compare Source

  • min() and max() expressions are once again parsed as calculations as long
    as they contain only syntax that's allowed in calculation expressions. To
    avoid the backwards-compatibility issues that were present in 1.40.0, they now
    allow unitless numbers to be mixed with numbers with units just like the
    global min() and max() functions. Similarly, + and - operations within
    min() and max() functions allow unitless numbers to be mixed with numbers
    with units.

v1.41.1

Compare Source

  • Preserve parentheses around var() functions in calculations, because they
    could potentially be replaced with sub-expressions that might need to be
    parenthesized.

v1.41.0

Compare Source

  • Calculation values can now be combined with strings using the + operator.
    This was an error in 1.40.0, but this broke stylesheets that were relying on
    $value + "" expressions to generically convert values to strings. (Note that
    the Sass team recommends the use of "#{$value}" or inspect($value) for
    that use-case.)

  • The selector.unify() function now correctly returns null when one selector
    is a :host or :host-context and the other is a selector that's guaranteed
    to be within the current shadow DOM. The @extend logic has been updated
    accordingly as well.

  • Fix a bug where extra whitespace in min(), max(), clamp(), and calc()
    expressions could cause bogus parse errors.

  • Fix a bug where the right-hand operand of a - in a calculation could
    incorrectly be stripped of parentheses.

Dart API
  • SassCalculation.plus() now allows SassString arguments.

v1.40.1

Compare Source

  • Potentially breaking bug fix: min() and max() expressions outside of
    calculations now behave the same way they did in 1.39.2, returning unquoted
    strings if they contain no Sass-specific features and calling the global
    min() and max() functions otherwise. Within calculations, they continue to
    behave how they did in 1.40.0.

    This fixes an unintended breaking change added in 1.40.0, wherein passing a
    unitless number and a number without units to min() or max() now produces
    an error. Since this breakage affects a major Sass library, we're temporarily
    reverting support for min() and max() calculations while we work on
    designing a longer-term fix.

v1.40.0

Compare Source

  • Add support for first-class calc() expressions (as well as clamp() and
    plain-CSS min() and max()). This means:

    • calc() expressions will be parsed more thoroughly, and errors will be
      highlighted where they weren't before. This may break your stylesheets,
      but only if they were already producing broken CSS.

    • calc() expressions will be simplified where possible, and may even return
      numbers if they can be simplified away entirely.

    • calc() expressions that can't be simplified to numbers return a new data
      type known as "calculations".

    • Sass variables and functions can now be used in calc() expressions.

    • New functions meta.calc-name() and meta.calc-args() can now inspect
      calculations.

Dart API
  • Add a new value type, SassCalculation, that represents calculations.

  • Add new CalculationOperation, CalculationOperator, and
    CalculationInterpolation types to represent types of arguments that may
    exist as part of a calculation.

  • Add a new Value.assertCalculation() method.

  • Add a new Number.hasCompatibleUnits() method.


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 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 Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [sass](https://github.com/sass/dart-sass) | devDependencies | minor | [`1.39.2` -> `1.42.0`](https://renovatebot.com/diffs/npm/sass/1.39.2/1.42.0) | --- ### Release Notes <details> <summary>sass/dart-sass</summary> ### [`v1.42.0`](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#&#8203;1420) [Compare Source](https://github.com/sass/dart-sass/compare/1.41.1...1.42.0) - `min()` and `max()` expressions are once again parsed as calculations as long as they contain only syntax that's allowed in calculation expressions. To avoid the backwards-compatibility issues that were present in 1.40.0, they now allow unitless numbers to be mixed with numbers with units just like the global `min()` and `max()` functions. Similarly, `+` and `-` operations within `min()` and `max()` functions allow unitless numbers to be mixed with numbers with units. ### [`v1.41.1`](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#&#8203;1411) [Compare Source](https://github.com/sass/dart-sass/compare/1.41.0...1.41.1) - Preserve parentheses around `var()` functions in calculations, because they could potentially be replaced with sub-expressions that might need to be parenthesized. ### [`v1.41.0`](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#&#8203;1410) [Compare Source](https://github.com/sass/dart-sass/compare/1.40.1...1.41.0) - Calculation values can now be combined with strings using the `+` operator. This was an error in 1.40.0, but this broke stylesheets that were relying on `$value + ""` expressions to generically convert values to strings. (Note that the Sass team recommends the use of `"#{$value}"` or `inspect($value)` for that use-case.) - The `selector.unify()` function now correctly returns `null` when one selector is a `:host` or `:host-context` and the other is a selector that's guaranteed to be within the current shadow DOM. The `@extend` logic has been updated accordingly as well. - Fix a bug where extra whitespace in `min()`, `max()`, `clamp()`, and `calc()` expressions could cause bogus parse errors. - Fix a bug where the right-hand operand of a `-` in a calculation could incorrectly be stripped of parentheses. ##### Dart API - `SassCalculation.plus()` now allows `SassString` arguments. ### [`v1.40.1`](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#&#8203;1401) [Compare Source](https://github.com/sass/dart-sass/compare/1.40.0...1.40.1) - **Potentially breaking bug fix:** `min()` and `max()` expressions outside of calculations now behave the same way they did in 1.39.2, returning unquoted strings if they contain no Sass-specific features and calling the global `min()` and `max()` functions otherwise. Within calculations, they continue to behave how they did in 1.40.0. This fixes an unintended breaking change added in 1.40.0, wherein passing a unitless number and a number without units to `min()` or `max()` now produces an error. Since this breakage affects a major Sass library, we're temporarily reverting support for `min()` and `max()` calculations while we work on designing a longer-term fix. ### [`v1.40.0`](https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#&#8203;1400) [Compare Source](https://github.com/sass/dart-sass/compare/1.39.2...1.40.0) - Add support for first-class `calc()` expressions (as well as `clamp()` and plain-CSS `min()` and `max()`). This means: - `calc()` expressions will be parsed more thoroughly, and errors will be highlighted where they weren't before. **This may break your stylesheets,** but only if they were already producing broken CSS. - `calc()` expressions will be simplified where possible, and may even return numbers if they can be simplified away entirely. - `calc()` expressions that can't be simplified to numbers return a new data type known as "calculations". - Sass variables and functions can now be used in `calc()` expressions. - New functions `meta.calc-name()` and `meta.calc-args()` can now inspect calculations. ##### Dart API - Add a new value type, `SassCalculation`, that represents calculations. - Add new `CalculationOperation`, `CalculationOperator`, and `CalculationInterpolation` types to represent types of arguments that may exist as part of a calculation. - Add a new `Value.assertCalculation()` method. - Add a new `Number.hasCompatibleUnits()` method. </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate added the
dependencies
label 2021-09-14 00:01:48 +00:00
renovate changed title from chore(deps): update dependency sass to v1.40.0 to chore(deps): update dependency sass to v1.40.1 2021-09-14 10:01:48 +00:00
renovate force-pushed renovate/sass-1.x from 83853b6482 to 7b76aa21b8 2021-09-14 10:01:49 +00:00 Compare
renovate changed title from chore(deps): update dependency sass to v1.40.1 to chore(deps): update dependency sass to v1.41.0 2021-09-15 00:01:46 +00:00
renovate force-pushed renovate/sass-1.x from 7b76aa21b8 to 41169762c7 2021-09-15 00:01:47 +00:00 Compare
renovate changed title from chore(deps): update dependency sass to v1.41.0 to chore(deps): update dependency sass to v1.41.1 2021-09-16 23:01:56 +00:00
renovate force-pushed renovate/sass-1.x from 41169762c7 to 4a0fa89efc 2021-09-16 23:01:57 +00:00 Compare
renovate changed title from chore(deps): update dependency sass to v1.41.1 to chore(deps): update dependency sass to v1.42.0 2021-09-21 01:01:40 +00:00
renovate force-pushed renovate/sass-1.x from 4a0fa89efc to df4a254a94 2021-09-21 01:01:41 +00:00 Compare
renovate force-pushed renovate/sass-1.x from df4a254a94 to c7304fd71a 2021-09-21 17:03:08 +00:00 Compare
renovate force-pushed renovate/sass-1.x from c7304fd71a to 6be213943e 2021-09-21 20:01:38 +00:00 Compare
konrad merged commit 2f506ea653 into main 2021-09-21 20:08:18 +00:00
konrad deleted branch renovate/sass-1.x 2021-09-21 20:08:18 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.