This MR contains the following updates:
The new API includes:
compileAsync()functions that take Sass file paths and return the result of compiling them to CSS. The async function returns a
Promiserather than using a callback-based API.
compileStringAsync()functions that take a string of Sass source and compiles it to CSS. As above, the async function returns a
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
@userules, which substantially improves performance for applications that rely heavily on repeated
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][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.
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.