feat(tsbuild.classes): Update default TypeScript lib to lib.esnext.d.ts
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-11-17 - 3.1.0 - feat(tsbuild.classes)
|
||||||
|
Update default TypeScript lib to lib.esnext.d.ts
|
||||||
|
|
||||||
|
- Changed default compilerOptions.lib from ['lib.dom.d.ts', 'lib.es2022.d.ts'] to ['lib.dom.d.ts', 'lib.esnext.d.ts'] in compilerOptionsDefault.
|
||||||
|
- Allows newer ECMAScript/DOM features by default when compiling with tsbuild (affects emitted types and available globals).
|
||||||
|
- Behavioral default change only — no public API changes; callers can still override lib via tsconfig, programmatic options, or CLI.
|
||||||
|
|
||||||
## 2025-11-17 - 3.0.0 - BREAKING CHANGE(TsBuild)
|
## 2025-11-17 - 3.0.0 - BREAKING CHANGE(TsBuild)
|
||||||
Stop forcing emitDecoratorMetadata in protected compiler defaults
|
Stop forcing emitDecoratorMetadata in protected compiler defaults
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tsbuild',
|
name: '@git.zone/tsbuild',
|
||||||
version: '3.0.0',
|
version: '3.1.0',
|
||||||
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
|
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export const compilerOptionsDefault: CompilerOptions = {
|
|||||||
module: plugins.typescript.ModuleKind.NodeNext,
|
module: plugins.typescript.ModuleKind.NodeNext,
|
||||||
target: plugins.typescript.ScriptTarget.ESNext,
|
target: plugins.typescript.ScriptTarget.ESNext,
|
||||||
moduleResolution: plugins.typescript.ModuleResolutionKind.NodeNext,
|
moduleResolution: plugins.typescript.ModuleResolutionKind.NodeNext,
|
||||||
lib: ['lib.dom.d.ts', 'lib.es2022.d.ts'],
|
lib: ['lib.dom.d.ts', 'lib.esnext.d.ts'],
|
||||||
noImplicitAny: false, // Allow implicit any by default
|
noImplicitAny: false, // Allow implicit any by default
|
||||||
esModuleInterop: true,
|
esModuleInterop: true,
|
||||||
verbatimModuleSyntax: true,
|
verbatimModuleSyntax: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user