sass/dart-sass
### [`v1.40.1`](https://togithub.com/sass/dart-sass/blob/master/CHANGELOG.md#1401)
[Compare Source](https://togithub.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://togithub.com/sass/dart-sass/blob/master/CHANGELOG.md#1400)
[Compare Source](https://togithub.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.
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 contains the following updates:
1.39.2
->1.40.1
Release Notes
sass/dart-sass
### [`v1.40.1`](https://togithub.com/sass/dart-sass/blob/master/CHANGELOG.md#1401) [Compare Source](https://togithub.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://togithub.com/sass/dart-sass/blob/master/CHANGELOG.md#1400) [Compare Source](https://togithub.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.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.
This PR has been generated by WhiteSource Renovate. View repository job log here.