Releases: localnerve/sass-asset-functions
Releases · localnerve/sass-asset-functions
Version 6
Version 6
Many updates to allow direct use of this library standalone. Includes proper support of sass modern JS APIs.
Changes:
- sass 1.79.3
BREAKING CHANGES:
- Default export supports new JS API (for synchronous dartSass.compile).
- Asynchronous modern JS API (dartSass.compileAsync) available via
async
option. This is required if supplied function options (asset_host, asset_cache_buster) are asynchronous AND/OR you are directly calling dartSass.compileAsync. - Sass Legacy JS API, the prior default of this lib thru version sass-asset-functions@5, used by legacy nodeSass/dartSass.render, is now only available via
legacyAPI
option. NOTE: This api will be dropped at [email protected]. - Dropped explicit support for old node-sass, although it still works thru node 20, for now.
- To get the old behavior, you have to supply
{ legacyAPI: true }
in the options.
Version 5
Release Summary
Sass 1.77.6 (no change)
Breaking change
- Support Node 18+
Other changes
- Development dependency updates
Notes
- Compatibility with Node-sass/lib-sass limited by those projects. Currently doesn't support Node 22.
Version 4
4.0.0
Drop Node 14 Support
Update Development Dependencies
v3.0.0
ESM Release
- Breaking Change
ESM require support now requires destructuring
default
export.
const { default: assetFunctions } = require('@localnerve/sass-asset-functions');
// or
const assetFunctions = require('@localnerve/sass-asset-functions').default;
- Dependency Update
- Full ESM module with cjs support
v2.0.0
Support Node 14+, update dependencies.
Dropped support for Node 12.
v1.0.0
v1.0.0
Drop Node 10 support
- Dependency Update
- Drop Node 10 support