@localnerve/sass-asset-functions 6.0.1 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Sass Asset Functions Change Log
2
2
 
3
+ ## 6.0.2
4
+ * sass 1.79.4
5
+ * add build/publish provenance
6
+
7
+ ## 6.0.1
8
+ * bug fix, quoted results
9
+
3
10
  ## 6.0.0
4
11
  * sass 1.79.3
5
12
  * BREAKING CHANGES:
@@ -9,6 +16,7 @@
9
16
  * Sass Legacy JS API, the default of this lib thru version sass-asset-functions@5, used by nodeSass/dartSass.render, available ONLY via `legacyAPI` option. This will be dropped at dart-sass@2.0.0.
10
17
  * Dropped explicit support for old node-sass, although it still works thru node 20, for now.
11
18
  * To get the old behavior, you have to supply `{ legacyAPI: true }` in the options.
19
+ * To use with `gulp-sass@5` you must set this option.
12
20
 
13
21
  ## 5.2.1
14
22
  * sass 1.79.2
package/README.md CHANGED
@@ -67,7 +67,7 @@ All options are optional.
67
67
  | name | type | description |
68
68
  | --- | --- | --- |
69
69
  | `sass` | Object | A reference to an alternate Sass compiler to use other than dart-sass (must expose `types`). Defaults to `undefined` and a dart-sass reference is used |
70
- | `legacyAPI` | Boolean | truthy to use the legacy sass API via the `render` function. Defaults to `false` |
70
+ | `legacyAPI` | Boolean | truthy to use the legacy sass API via the sass `render` function. Defaults to `false` |
71
71
  | `async` | Boolean | truthy to use modern sass API via the `compileAsync` function. Required if supplied `asset_cache_buster` or `asset_host` function options are asynchronous. Defaults to `false` |
72
72
  | `images_path` | String | The build-time file path to images. Defaults to `public/images` |
73
73
  | `fonts_path` | String | The build-time file path to fonts. Defaults to `public/fonts` |
@@ -161,8 +161,9 @@ const fs = require('fs');
161
161
  const hexdigest = require('hexdigest');
162
162
  const { default: assetFunctions } = require('@localnerve/sass-asset-functions');
163
163
 
164
- const result = sass.compile(scss_filename, {
164
+ const result = sass.compileAsync(scss_filename, {
165
165
  functions: assetFunctions({
166
+ async: true,
166
167
  asset_cache_buster: (http_path, real_path, done) => {
167
168
  hexdigest(real_path, 'sha1', (err, digest) => {
168
169
  if (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/sass-asset-functions",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "compass-style asset functions for dart-sass or other sass compilers",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "image-size": "^1.1.1",
54
54
  "mime-types": "^2.1.35",
55
- "sass": "^1.79.3"
55
+ "sass": "^1.79.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@babel/cli": "^7.25.6",