To install Sass 1.42.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Fix a bug where Sass variables and function calls in calculations weren't being resolved correctly if there was a parenthesized interpolation elsewhere in the file.
To install Sass 1.42.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
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.
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 Sass variables and function calls in calculations weren't
being resolved correctly if there was a parenthesized interpolation elsewhere
in the file.
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.
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.
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
... (truncated)
Commits
8d5d586 Fix interpolation lookahead for calculations (#1500)
0806763 Add a double-check to verify that we bump versions (#1498)
a881eb6 Commit to the main branch of bazelrules/rules_sass (#1497)
825fa5c Add back support for min/max calculations (#1485)
e3370e6 Only run framework checks when deploying (#1493)
6a9cfc8 Only run GitHub Actions for tags that look like semver versions (#1484)
8090b99 Test against real-world Sass frameworks (#1487)
cfb7e40 Run shared JS tests from the sass-spec repo (#1486)
52ef3c6 Preserve parentheses around var() functions in calculations (#1489)
30cc9dc Allow extra whitespace in min, max, and calculations (#1483)
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.35.1 to 1.42.1.
Release notes
Sourced from sass's releases.
... (truncated)
Changelog
Sourced from sass's changelog.
... (truncated)
Commits
8d5d586
Fix interpolation lookahead for calculations (#1500)0806763
Add a double-check to verify that we bump versions (#1498)a881eb6
Commit to the main branch of bazelrules/rules_sass (#1497)825fa5c
Add back support for min/max calculations (#1485)e3370e6
Only run framework checks when deploying (#1493)6a9cfc8
Only run GitHub Actions for tags that look like semver versions (#1484)8090b99
Test against real-world Sass frameworks (#1487)cfb7e40
Run shared JS tests from the sass-spec repo (#1486)52ef3c6
Preserve parentheses around var() functions in calculations (#1489)30cc9dc
Allow extra whitespace in min, max, and calculations (#1483)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)