TypeScript 6.0 Beta is now available, serving as the final JavaScript-based release before TypeScript 7.0's native Go rewrite. Key improvements include better type inference for functions without explicit `this` usage, support for `#/` subpath imports in Node.js, and the ability to combine `--moduleResolution bundler` with `--module commonjs`. The release introduces significant breaking changes and deprecations to modernize the ecosystem: `strict` mode and ESM are now defaults, ES5 target is deprecated, and several legacy options (AMD/UMD modules, `baseUrl`, `outFile`, classic module resolution) are removed. Projects will likely need to set explicit `types` arrays and adjust `rootDir` configurations. A new `--stableTypeOrdering` flag helps diagnose differences between 6.0 and the upcoming 7.0 release. All deprecated options will be completely removed in TypeScript 7.0.
Table of contents
Less Context-Sensitivity on this -less Functions Copy linkSubpath Imports Starting with #/ Copy linkCombining --moduleResolution bundler with --module commonjs Copy linkThe --stableTypeOrdering Flag Copy linkBreaking Changes and Deprecations in TypeScript 6.0 Copy linkPreparing for TypeScript 7.0 Copy linkWhat’s Next? Copy link5 Comments
Sort: