To install Sass 1.41.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Preserve parentheses around var() functions in calculations, because they could potentially be replaced with sub-expressions that might need to be parenthesized.
To install Sass 1.41.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
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.
To install Sass 1.40.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
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.
Preserve parentheses around var() functions in calculations, because they
could potentially be replaced with sub-expressions that might need to be
parenthesized.
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.
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.
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,
... (truncated)
Commits
52ef3c6 Preserve parentheses around var() functions in calculations (#1489)
30cc9dc Allow extra whitespace in min, max, and calculations (#1483)
7de7ab4 Fix a parenthesizing bug in calculations (#1482)
5e4bc45 Allow the + operator for calculations and strings (#1481)
fe46cbb Improve unification of :host and :host-context (#1471)
cbdcd58 Emergency fix: Temporarily drop support for min/max calculations (#1477)
bb08672 Add support for first-class calc() (#1452)
33dab9f Fix the leftover-configuration check for @forward ... with (#1472)
1672178 Fix @at-root bug for common case of built-in use (#1469)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps sass from 1.32.5 to 1.41.1.
Release notes
Sourced from sass's releases.
... (truncated)
Changelog
Sourced from sass's changelog.
... (truncated)
Commits
52ef3c6
Preserve parentheses around var() functions in calculations (#1489)30cc9dc
Allow extra whitespace in min, max, and calculations (#1483)7de7ab4
Fix a parenthesizing bug in calculations (#1482)5e4bc45
Allow the + operator for calculations and strings (#1481)fe46cbb
Improve unification of :host and :host-context (#1471)cbdcd58
Emergency fix: Temporarily drop support for min/max calculations (#1477)bb08672
Add support for first-class calc() (#1452)33dab9f
Fix the leftover-configuration check for@forward ... with
(#1472)1672178
Fix@at-root
bug for common case of built-in use (#1469)f06937e
Fix analysis errors (#1470)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)