Microsoft Launches TypeScript 6.0, Prepares for Go-Based Compiler Rewrite


typescript 6

Microsoft has officially released TypeScript 6.0, marking a major transition for the widely used JavaScript superset. While the update introduces new features and breaking changes, its main purpose is to prepare developers for TypeScript 7.0, which is being rewritten in Go.

TypeScript 6.0 is the final version built on the current JavaScript-based compiler. Microsoft is now shifting focus to TypeScript 7.0, a native rewrite expected to deliver up to 10x faster performance.

A Transition Release With Key Improvements

TypeScript 6.0 focuses on cleanup and modernization, but it still brings several useful updates.

One of the key changes is reduced context sensitivity for thisless functions, making type inference more predictable. Developers also get support for subpath imports using #/, which improves module structure flexibility.

The update allows combining –moduleResolution bundler with –module commonjs, helping modern build setups. A new –stableTypeOrdering flag ensures consistent type ordering across builds.

TypeScript 6.0 also introduces new types for Temporal APIs and getOrInsert methods. It adds support for RegExp.escape and updates the DOM library with iterable and async iterable support.

New Defaults and Breaking Changes

The release changes several default compiler settings. It now uses:

  • strict: true
  • types: []
  • module: esnext
  • target: es2025

At the same time, Microsoft is removing legacy options. Deprecated features include target: es5, –outFile, –baseUrl, and older module resolution strategies like –moduleResolution node. Support for AMD, UMD, and SystemJS modules has also been dropped.

Because of these changes, developers may need to adjust their configs. Adding “types”: [“node”] can fix missing identifier errors, while setting “rootDir”: “./src” ensures correct output paths.

Preparing for TypeScript 7.0

With version 6.0 now released, Microsoft is fully focused on TypeScript 7.0. The next version will be rebuilt in Go, aiming to significantly improve speed and scalability.

A native preview of TypeScript 7.0 is already available, and the stable release is expected in the coming months.

Developers can install the latest version or update TypeScript to 6.0 by running npm install -D typescript.

While TypeScript 6.0 is not a massive feature release, it sets the stage for a major shift in performance and architecture.

In other news, Visual Studio Code recently gained end-to-end web debugging, while Microsoft added GPT-5.4 mini and nano models to Foundry. Meanwhile, OpenAI is reportedly working on a unified “super app” combining ChatGPT, Atlas, and Codex.

Via Neowin

More about the topics: microsoft, typescript

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages