Skip to content

Releases: localnerve/sass-asset-functions

Version 6

24 Sep 20:11
7a00634
Compare
Choose a tag to compare

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

26 Jun 15:22
9e8738e
Compare
Choose a tag to compare

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

25 May 21:00
4d99e99
Compare
Choose a tag to compare

4.0.0

Drop Node 14 Support
Update Development Dependencies

v3.0.0

09 Feb 20:09
0a865ec
Compare
Choose a tag to compare

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

30 Mar 16:54
7eba967
Compare
Choose a tag to compare

Support Node 14+, update dependencies.
Dropped support for Node 12.

v1.0.0

25 Oct 15:45
b49770c
Compare
Choose a tag to compare

v1.0.0

Drop Node 10 support

  • Dependency Update
  • Drop Node 10 support