TypeScript 6.0 RC Released
The release candidate for TypeScript 6.0 is now available. The new version brings further improvements to type safety and developer ergonomics, reinforcing TypeScript's importance for building large-scale applications.
This version is the final release planned to be built on the current JavaScript codebase. It serves as a crucial bridge to TypeScript 7.0, which will feature a completely new compiler and language service rewritten from the ground up in Go. The upcoming shift to a Go-based compiler aims to significantly boost performance by leveraging native code speed and shared-memory multi-threading. This architectural overhaul is designed to address performance and scalability limitations encountered as TypeScript's adoption has grown in large, complex projects. TypeScript 6.0 introduces built-in types for the `Temporal` API, a long-awaited and modern replacement for JavaScript's legacy `Date` object. This allows developers to start using the immutable and more predictable date and time handling features in their code today. The release also prepares developers for the future by changing compiler defaults to align with modern practices. For instance, `strict` mode will be enabled by default, and the default module system will be `esnext`, reflecting the widespread adoption of ESM and evergreen runtimes. Static typing is a core reason for TypeScript's widespread adoption in enterprise environments, including fintech and big tech. Research indicates that static typing can prevent up to 15% of public bugs from ever reaching production by catching type-related errors during compilation. Since its first official release in 2014, TypeScript has introduced foundational features for large-scale development. Version 2.0 in 2016 brought optional null safety to mitigate "billion-dollar mistake" errors, and version 5.0 introduced support for decorators in 2023.