@videinfra/static-website-builder 1.16.1 → 1.16.3

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
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.16.3] - 2025-10-29
8
+ ### Updated
9
+ - Added `embed` to TWIG dependency tracking
10
+
11
+ ## [1.16.2] - 2025-10-29
12
+ ### Updated
13
+ - Changed `sass` to sync for better performance
14
+
7
15
  ## [1.16.0] - 2025-10-22
8
16
  ### Updated
9
17
  - Removed `node-sass` and use `sass` module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.16.1",
3
+ "version": "1.16.3",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -42,7 +42,7 @@ module.exports = function processSASSConfig (config, fullConfig) {
42
42
  }
43
43
 
44
44
  sassConfig.data = merge(getEnvData().sass, sassConfig.data || {});
45
- return sass(sassConfig).on('error', sass.logError)
45
+ return sass(sassConfig, /* sync */ true).on('error', sass.logError);
46
46
  };
47
47
 
48
48
  // Main 'dependents' config is shared between all tasks
package/plugins/twig.js CHANGED
@@ -18,7 +18,7 @@ exports.html = {
18
18
  dependents: {
19
19
  '.twig': {
20
20
  parserSteps: [
21
- /\{%\s+(?:from|extends|include)\s+['"]([^'"]+)/gm,
21
+ /\{%\s+(?:from|extends|include|embed)\s+['"]([^'"]+)/gm,
22
22
  ],
23
23
  prefixes: [],
24
24
  postfixes: [],
@@ -93,7 +93,7 @@ module.exports = function (options) {
93
93
  if (options.async) {
94
94
  template.renderAsync(data)
95
95
  .then(function (output) {
96
- file.contents = new Buffer(output);
96
+ file.contents = Buffer.from(output);
97
97
  file.path = data._target.path;
98
98
  cb(null, file);
99
99
  })
@@ -110,7 +110,7 @@ module.exports = function (options) {
110
110
  });
111
111
  } else {
112
112
  try {
113
- file.contents = new Buffer(template.render(data));
113
+ file.contents = Buffer.from(template.render(data));
114
114
  }catch(e){
115
115
  if (options.errorLogToConsole) {
116
116
  log(PLUGIN_NAME + ' ' + e);