nodalis-compiler 1.0.29 → 1.0.30

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,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## [1.0.29] 2026-03-04
3
+ ## [1.0.30] 2026-03-30
4
+ - Fixed issue with boolean assignments in C++
5
+
6
+ ## [1.0.29] 2026-03-24
4
7
  - Fixed issues with bunding ST folder and reporting errors.
5
8
  - Improved support for loop structures.
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodalis-compiler",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Compiles IEC-61131-3/10 languages into code that can be used as a PLC on multiple platforms.",
5
5
  "icon": "nodalis.png",
6
6
  "main": "src/nodalis.js",
@@ -269,6 +269,9 @@ function declareVars(varSections, inFunctionBlock = false) {
269
269
  else if (v.initialValue !== undefined && v.initialValue !== null) {
270
270
  init = ` = ${normalizeCppLiteral(v.initialValue)}`;
271
271
  }
272
+ else if (!isFunctionBlockType) {
273
+ init = '{}';
274
+ }
272
275
  if (isFunctionBlockType) {
273
276
  const functionBlockType = resolveFunctionBlockTypeName(rawType);
274
277
  const storagePrefix = (!inFunctionBlock && v.sectionType === 'VAR') ? 'static ' : '';