diff --git a/changelog.md b/changelog.md index 6a69eec..cf6b5e4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-11-17 - 2.7.2 - fix(compilerOptions) +Remove experimentalDecorators and useDefineForClassFields from default TypeScript compiler options + +- Removed experimentalDecorators from compilerOptionsDefault in ts/tsbuild.classes.tsbuild.ts +- Removed useDefineForClassFields from compilerOptionsDefault in ts/tsbuild.classes.tsbuild.ts +- Default compiler options now rely on TypeScript's upstream defaults for decorator and class field behavior +- If your project relies on these settings, re-enable them in your tsconfig.json or pass them via the programmatic API / CLI + ## 2025-11-02 - 2.7.1 - fix(readme) Update documentation: expand README with usage, CLI and API examples; add readme.hints.md project memory diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 28eada2..e9d2413 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbuild', - version: '2.7.1', + version: '2.7.2', description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.' } diff --git a/ts/tsbuild.classes.tsbuild.ts b/ts/tsbuild.classes.tsbuild.ts index 9d48789..ef26730 100644 --- a/ts/tsbuild.classes.tsbuild.ts +++ b/ts/tsbuild.classes.tsbuild.ts @@ -19,7 +19,6 @@ export interface IErrorSummary { export const compilerOptionsDefault: CompilerOptions = { declaration: true, emitDecoratorMetadata: true, - experimentalDecorators: true, inlineSourceMap: true, noEmitOnError: true, outDir: 'dist_ts/', @@ -29,7 +28,6 @@ export const compilerOptionsDefault: CompilerOptions = { lib: ['lib.dom.d.ts', 'lib.es2022.d.ts'], noImplicitAny: false, // Allow implicit any by default esModuleInterop: true, - useDefineForClassFields: false, verbatimModuleSyntax: true, baseUrl: './', };