From 13cc0d3014543bd65ef6dea02b8a5dcae773e12c Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 17 Nov 2025 08:36:33 +0000 Subject: [PATCH] BREAKING CHANGE(tsconfig): Remove experimentalDecorators and useDefineForClassFields from tsconfig.json --- changelog.md | 7 +++++++ ts/00_commitinfo_data.ts | 2 +- tsconfig.json | 2 -- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 89af5b5..aeca7ed 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-11-17 - 2.0.0 - BREAKING CHANGE(tsconfig) +Remove experimentalDecorators and useDefineForClassFields from tsconfig.json + +- tsconfig.json: removed compilerOptions.experimentalDecorators — decorator support is no longer enabled by default. Projects using decorators must enable experimentalDecorators in their own tsconfig. +- tsconfig.json: removed compilerOptions.useDefineForClassFields — class field emit will follow TypeScript defaults, which may change runtime semantics for some classes. +- This may break consumers relying on the previous compiler options; bumping the major version to reflect the potential breaking change. + ## 2025-10-17 - 1.6.2 - fix(ts/index) Use cli.js as the spawned CLI entry point instead of cli.child.js diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 63d7e9a..1286ae5 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsrun', - version: '1.6.2', + version: '2.0.0', description: 'run typescript programs efficiently' } diff --git a/tsconfig.json b/tsconfig.json index dfe5a55..70d3f34 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,5 @@ { "compilerOptions": { - "experimentalDecorators": true, - "useDefineForClassFields": false, "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext",