Snyk has created this PR to upgrade sass from 1.35.2 to 1.45.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 27 versions ahead of your current version.
The recommended version was released a month ago, on 2021-12-10.
To install Sass 1.45.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JS API
This release includes an entirely new JavaScript API, designed to be more idiomatic, performant, and usable. The old API will continue to be supported until Dart Sass 2.0.0, but it is now considered deprecated and should be avoided for new code.
The new API includes:
compile() and compileAsync() functions that take Sass file paths and return the result of compiling them to CSS. The async function returns a Promise rather than using a callback-based API.
compileString() and compileStringAsync() functions that take a string of Sass source and compiles it to CSS. As above, the async function returns a Promise.
A new importer API that more closely matches the Sass specification's logic for resolving loads. This makes it much easier for Sass to cache information across @ import and @ use rules, which substantially improves performance for applications that rely heavily on repeated @ imports.
A new custom function API, including much more usable JS representations of Sass value types complete with type-assertion functions, easy map and list lookups, and compatibility with the immutable package. Unlike in the legacy API, function callbacks now take one argument which contains an array of Sass values (rather than taking a separate JS argument for each Sass argument).
For full documentation of this API, please see the Sass website.
This release also adds TypeScript type definitions.
To install Sass 1.45.0-rc.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JS API
This release includes an entirely new JavaScript API, designed to be more idiomatic, performant, and usable. The old API will continue to be supported until Dart Sass 2.0.0, but it is now considered deprecated and should be avoided for new code.
The new API includes:
compile() and compileAsync() functions that take Sass file paths and return the result of compiling them to CSS. The async function returns a Promise rather than using a callback-based API.
compileString() and compileStringAsync() functions that take a string of Sass source and compiles it to CSS. As above, the async function returns a Promise.
A new importer API that more closely matches the Sass specification's logic for resolving loads. This makes it much easier for Sass to cache information across @ import and @ use rules, which substantially improves performance for applications that rely heavily on repeated @ imports.
A new custom function API, including much more usable JS representations of Sass value types complete with type-assertion functions, easy map and list lookups, and compatibility with the immutable package. Unlike in the legacy API, function callbacks now take one argument which contains an array of Sass values (rather than taking a separate JS argument for each Sass argument).
For full documentation of this API, please see the Sass website.
To install Sass 1.44.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Suggest calc() as an alternative in /-as-division deprecation messages.
Dart API
Add SassNumber.convert() and SassNumber.convertValue(). These work like SassNumber.coerce() and SassNumber.coerceValue(), except they don't treat unitless numbers as universally compatible.
Fix a bug where SassNumber.coerceToMatch() and SassNumber.coerceValueToMatch() wouldn't coerce single-unit numbers to match unitless numbers.
Snyk has created this PR to upgrade sass from 1.35.2 to 1.45.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: sass
To install Sass 1.45.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JS API
This release includes an entirely new JavaScript API, designed to be more idiomatic, performant, and usable. The old API will continue to be supported until Dart Sass 2.0.0, but it is now considered deprecated and should be avoided for new code.
The new API includes:
compile()
andcompileAsync()
functions that take Sass file paths and return the result of compiling them to CSS. The async function returns aPromise
rather than using a callback-based API.compileString()
andcompileStringAsync()
functions that take a string of Sass source and compiles it to CSS. As above, the async function returns aPromise
.A new importer API that more closely matches the Sass specification's logic for resolving loads. This makes it much easier for Sass to cache information across
@ import
and@ use
rules, which substantially improves performance for applications that rely heavily on repeated@ import
s.A new custom function API, including much more usable JS representations of Sass value types complete with type-assertion functions, easy map and list lookups, and compatibility with the
immutable
package. Unlike in the legacy API, function callbacks now take one argument which contains an array of Sass values (rather than taking a separate JS argument for each Sass argument).For full documentation of this API, please see the Sass website.
This release also adds TypeScript type definitions.
See the full changelog for changes in earlier releases.
To install Sass 1.45.0-rc.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JS API
See the full changelog for changes in earlier releases.
To install Sass 1.45.0-rc.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JS API
This release includes an entirely new JavaScript API, designed to be more idiomatic, performant, and usable. The old API will continue to be supported until Dart Sass 2.0.0, but it is now considered deprecated and should be avoided for new code.
The new API includes:
compile()
andcompileAsync()
functions that take Sass file paths and return the result of compiling them to CSS. The async function returns aPromise
rather than using a callback-based API.compileString()
andcompileStringAsync()
functions that take a string of Sass source and compiles it to CSS. As above, the async function returns aPromise
.A new importer API that more closely matches the Sass specification's logic for resolving loads. This makes it much easier for Sass to cache information across
@ import
and@ use
rules, which substantially improves performance for applications that rely heavily on repeated@ import
s.A new custom function API, including much more usable JS representations of Sass value types complete with type-assertion functions, easy map and list lookups, and compatibility with the
immutable
package. Unlike in the legacy API, function callbacks now take one argument which contains an array of Sass values (rather than taking a separate JS argument for each Sass argument).For full documentation of this API, please see the Sass website.
See the full changelog for changes in earlier releases.
To install Sass 1.44.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
calc()
as an alternative in/
-as-division deprecation messages.Dart API
Add
SassNumber.convert()
andSassNumber.convertValue()
. These work likeSassNumber.coerce()
andSassNumber.coerceValue()
, except they don't treat unitless numbers as universally compatible.Fix a bug where
SassNumber.coerceToMatch()
andSassNumber.coerceValueToMatch()
wouldn't coerce single-unit numbers to match unitless numbers.See the full changelog for changes in earlier releases.
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs