Microsoft announced on Thursday (December 4) the Release Candidate (RC) of TypeScript 7.1, the next version of the language. The announcement, by Daniel Rosenwasser on the official TypeScript blog, marks the version as feature-complete: the stable release is expected within the next two weeks, with few changes apart from critical bug fixes. To try it, run npm install -D typescript@rc.
The compiler API is back
The headline change is the return of the programmatic compiler API, which was left out of TypeScript 7.0 — the native Go rewrite released in July. Instead of a monolithic API, 7.1 organizes it into focused entry points: typescript/sync and typescript/async for the compiler client, typescript/fs for filesystems, typescript/ast for syntax-tree types, and typescript/wasm for the experimental WebAssembly package. The missing API had kept tools such as Volar, the Svelte language service and typescript-eslint stuck on TypeScript 6.0.
Content mappers and WebAssembly in the browser
Version 7.1 also brings content mappers, a native plugin mechanism that lets frameworks such as Vue, Svelte, Astro and MDX show their files to the compiler — something that previously depended on each tool's own workarounds. And the experimental @typescript/typescript-wasip1-wasm package takes the compiler to the browser and WASI runtimes: the RC can already be tried directly in the TypeScript Playground, without installing anything in a project.
Faster, with new language features
Beyond better speed and lower memory usage, the RC adds support for import attributes in ambient module declarations, source phase imports (import source), the new --disableDynamicImportExtensionRewriting flag and a stable --target es2026, with Math.sumPrecise(), Iterator.concat(), JSON.rawJSON(), Error.isError(), Map.prototype.getOrInsert() and the Uint8Array methods for Base64 and hexadecimal. The chart in the official announcement shows gains in every measured project: the bluesky build dropped from 3.97 s to 3.3 s, mui-docs from 19.1 s to 8.77 s and sentry from 17.5 s to 12.8 s.
Image: build-time comparison chart by TypeScript version, from the official TypeScript 7.1 RC announcement. Credit: Microsoft TypeScript Blog (devblogs.microsoft.com).
Sources
- Microsoft TypeScript Blog — Announcing TypeScript 7.1 RC
- NeoTeo — TypeScript 7.1 RC brings its compiler to the browser
- Windows Forum — TypeScript 7.1 RC Restores Compiler API, Adds Framework Content Mappers and Experimental Wasm
Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.
By Muse