From 4822f387834185789af16c974ec215783a6e4421 Mon Sep 17 00:00:00 2001 From: sripp Date: Tue, 6 Oct 2026 11:33:27 +0200 Subject: [PATCH] Fix SignalType.SInt value and bump tia-codegen-ts to 2.0.3 SignalType.SInt had the value 'Int', so comparisons on SInt signals were generated with SrcType Int. The C# SignalType has a separate SInt member, which produces SrcType SInt. Co-Authored-By: Claude Opus 5.5 --- TiaCodegen-ts/package-lock.json | 4 ++-- TiaCodegen-ts/package.json | 2 +- TiaCodegen-ts/src/Enums/SignalType.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TiaCodegen-ts/package-lock.json b/TiaCodegen-ts/package-lock.json index be4de9c..07b27c3 100644 --- a/TiaCodegen-ts/package-lock.json +++ b/TiaCodegen-ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "@node-projects/tia-codegen-ts", - "version": "2.0.2", + "version": "2.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@node-projects/tia-codegen-ts", - "version": "2.0.2", + "version": "2.0.3", "devDependencies": { "@types/jest": "^29.5.12", "@types/node": "^20.12.7", diff --git a/TiaCodegen-ts/package.json b/TiaCodegen-ts/package.json index b8e6352..fedcd0b 100644 --- a/TiaCodegen-ts/package.json +++ b/TiaCodegen-ts/package.json @@ -1,6 +1,6 @@ { "name": "@node-projects/tia-codegen-ts", - "version": "2.0.2", + "version": "2.0.3", "description": "TypeScript port of TiaCodeGen C# library", "type": "module", "main": "dist/index.js", diff --git a/TiaCodegen-ts/src/Enums/SignalType.ts b/TiaCodegen-ts/src/Enums/SignalType.ts index ec61ed1..5b7d7be 100644 --- a/TiaCodegen-ts/src/Enums/SignalType.ts +++ b/TiaCodegen-ts/src/Enums/SignalType.ts @@ -2,7 +2,7 @@ export enum SignalType { Bool = 'Bool', Byte = 'Byte', Int = 'Int', - SInt = 'Int', + SInt = 'SInt', DInt = 'DInt', LInt = 'LInt', UInt = 'UInt',