Sourced from sass's releases.
Dart Sass 1.70.0
To install Sass 1.70.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
JavaScript API
Add a
sass.initCompiler()function that returns asass.Compilerobject which supportscompile()andcompileString()methods with the same API as the global Sass object. On the Node.js embedded host, eachsass.Compilerobject uses a single long-lived subprocess, making compiling multiple stylesheets much more efficient.Add a
sass.initAsyncCompiler()function that returns asass.AsyncCompilerobject which supportscompileAsync()andcompileStringAsync()methods with the same API as the global Sass object. On the Node.js embedded host, eachsass.AsynCompilerobject uses a single long-lived subprocess, making compiling multiple stylesheets much more efficient.Embedded Sass
Support the
CompileRequest.silentfield. This allows compilations with no logging to avoid unnecessary request/response cycles.The Dart Sass embedded compiler now reports its name as "dart-sass" rather than "Dart Sass", to match the JS API's
infofield.See the full changelog for changes in earlier releases.
Sourced from sass's changelog.
1.70.0
JavaScript API
Add a
sass.initCompiler()function that returns asass.Compilerobject which supportscompile()andcompileString()methods with the same API as the global Sass object. On the Node.js embedded host, eachsass.Compilerobject uses a single long-lived subprocess, making compiling multiple stylesheets much more efficient.Add a
sass.initAsyncCompiler()function that returns asass.AsyncCompilerobject which supportscompileAsync()andcompileStringAsync()methods with the same API as the global Sass object. On the Node.js embedded host, eachsass.AsynCompilerobject uses a single long-lived subprocess, making compiling multiple stylesheets much more efficient.Embedded Sass
Support the
CompileRequest.silentfield. This allows compilations with no logging to avoid unnecessary request/response cycles.The Dart Sass embedded compiler now reports its name as "dart-sass" rather than "Dart Sass", to match the JS API's
infofield.