@videinfra/static-website-builder 1.15.6 → 1.15.8

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,10 @@ 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.15.7] - 2025-07-31
8
+ ### Added
9
+ - Optional chaining to the JS
10
+
7
11
  ## [1.15.5] - 2025-05-16
8
12
  ### Added
9
13
  - "preposition_nbsp" TWIG filter
@@ -3,3 +3,11 @@
3
3
  */
4
4
 
5
5
  console.log('Shared file loaded');
6
+
7
+ const config = {
8
+ a: {
9
+ b: 'c',
10
+ },
11
+ };
12
+
13
+ console.log(config?.a?.b);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.15.6",
3
+ "version": "1.15.8",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -27,6 +27,8 @@
27
27
  "dependencies": {
28
28
  "@babel/core": "^7.21.8",
29
29
  "@babel/preset-env": "^7.21.5",
30
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
31
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
30
32
  "@csstools/postcss-nested-calc": "^3.0.0",
31
33
  "autoprefixer": "^10.4.14",
32
34
  "babel-loader": "^8.3.0",
@@ -26,7 +26,7 @@ function normalizeTwigVariable (value) {
26
26
  function getEnvData () {
27
27
  const envVariables = {};
28
28
  const twigVariables = {};
29
- const scssVariables = { env: {} };
29
+ const scssVariables = { env: { _tmp: 1 } }; // _tmp is used to avoid SCSS error if object is empty
30
30
  const jsVariables = {};
31
31
  const envOutVariables = {};
32
32
 
@@ -34,7 +34,10 @@ exports.javascripts = {
34
34
  loader: 'babel-loader',
35
35
  options: {
36
36
  presets: ['@babel/preset-env'],
37
- plugins: ['@babel/plugin-proposal-object-rest-spread']
37
+ plugins: [
38
+ '@babel/plugin-proposal-object-rest-spread',
39
+ '@babel/plugin-proposal-optional-chaining',
40
+ ],
38
41
  }
39
42
  }
40
43
  }