@needle-tools/needle-component-compiler 3.0.18 → 3.0.19

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,18 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.0.19] - 2026-04-28
8
+ ### Fixed
9
+ - C#: skip `= undefined` initializers — `undefined` is not valid in C#
10
+
11
+ ## [3.0.18] - 2026-04-28
12
+ ### Added
13
+ - CLI: Blender write types automatically
14
+
15
+ ### Fixed
16
+ - Blender: fix custom enum type parsing
17
+ - Blender: fix missing default values in component.json
18
+
7
19
  ## [3.0.17] - 2026-04-17
8
20
  ### Added
9
21
  - Support for string literal union types (e.g. `axis: "x" | "y" | "z" = "y"`)
@@ -245,7 +245,10 @@ var CSharpWriter = /** @class */ (function (_super) {
245
245
  // Resolve assignment
246
246
  var assignment = "";
247
247
  if (initialValue !== undefined && initialValue !== null) {
248
- if (initialValue === "null") {
248
+ if (initialValue === "undefined") {
249
+ // skip — `undefined` is not valid in C#
250
+ }
251
+ else if (initialValue === "null") {
249
252
  // keep null for reference types, skip for value types
250
253
  }
251
254
  else if (isArray && initialValue === "[]") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/needle-component-compiler",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "Compile Editor components for Needle Engine for C# and Blender",
5
5
  "main": "dist/index.js",
6
6
  "bin": "dist/cli.js",