This MR contains the following updates:
- Fix a bug where Sass compilation could crash in strict mode if passed a callback that threw a string, boolean, number, symbol, or bignum.
Breaking change: Drop support for the additional CSS calculations defined in CSS Values and Units 4. Custom Sass functions whose names overlapped with these new CSS functions were being parsed as CSS calculations instead, causing an unintentional breaking change outside our normal [compatibility policy] for CSS compatibility changes.
Support will be added again in a future version, but only after Sass has emitted a deprecation warning for all functions that will break for at least three months prior to the breakage.
- Update abs-percent deprecatedIn version to
All functions defined in CSS Values and Units 4 are now parsed as calculation objects:
Deprecate explicitly passing the
%unit to the global
abs()function. In future releases, this will emit a CSS abs() function to be resolved by the browser. This deprecation is named
- No user-visible changes.
- Fix a bug where a valid
SassCalculation.clamp()with less than 3 arguments would throw an error.
Comments that appear before or between
@forwardrules are now emitted in source order as much as possible, instead of always being emitted after the CSS of all module dependencies.
Fix a bug where an interpolation in a custom property name crashed if the file was loaded by a
@usenested in an
Add a new
SassCalculationtype that represents the calculation objects added in Dart Sass 1.40.0.
Value.assertCalculation(), which returns the value if it's a
SassCalculationand throws an error otherwise.
Produce a better error message when an environment that supports some Node.js APIs loads the browser entrypoint but attempts to access the filesystem.
- Fix a bug where nested relative
@importsfailed to load when using the deprecated functions
renderSyncand those relative imports were loaded multiple times across different files.
import sass from 'sass'again after it was broken in the last release.
- Fix the
- Fix a bug where loading the package through both CJS
importcould crash on Node.js.
Fix a deadlock when running at high concurrency on 32-bit systems.
Fix a race condition where the embedded compiler could deadlock or crash if a compilation ID was reused immediately after the compilation completed.
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.