TypeScript 7.1.1 RC ships, restoring the compiler API the Go port quietly dropped
The Go-compiled TypeScript returns the programmatic API third-party tools rely on, reworked, with content mappers and a release date that kept slipping.
Microsoft's typescript-automation bot pushed the TypeScript 7.1.1 release candidate to npm on December 4. That makes it the newest pre-release in the line, and the candidate build that tool authors have been validating against all year. This is the RC for TypeScript 7.1, the first feature release built on the native Go compiler Microsoft shipped as 7.0 back in July.
For the uninitiated, jumping from 6 to 7 sounds like a language overhaul. It isn't. The typing rules don't change. You write the same code and get the same errors, just faster. That's Project Corsa: a methodical port of the compiler to Go that keeps the type-checking logic structurally identical. Microsoft says builds come out "often around 10x faster than TypeScript 6," and early testers over the past year include Figma, Bloomberg, Vercel, Notion, and Slack. One internal benchmark claims VS Code's own build fell from roughly 78 seconds down to 7.5.
The API comes back, reworked
TypeScript 7.0 shipped fast but quietly cut the stable programmatic compiler API. Editors, linters, and framework type-checkers all got stranded: Vue's Volar, Svelte, Astro, ts-morph, and type-aware linting were effectively left on TypeScript 6 for nearly three months. 7.1 closes that gap.
Rather than resurrect the old monolithic ts module, Microsoft split the API into focused entry points. typescript/sync handles a synchronous client, typescript/async the Promise-based version, plus typescript/fs, typescript/ast, and then ast/is for node guards and ast/factory for factory helpers.
Here's the part that trips people up. Because the compiler now lives in Go, the memory it hands out is invisible to JavaScript's garbage collector. Those API objects are therefore Disposable. You close them explicitly with api.close() or program.dispose(), or you tag them with using. Skip that and they leak on the Go side.
Keep in mind that the API models incremental edits through snapshots, so an editor can derive new state from an old one without rebuilding everything. Microsoft says the surface stays backward compatible across all of 7.x once stable, though watch and incremental-build APIs aren't stable yet.
Content mappers, and the Vue win that justified them
A content mapper is a plugin that gives TypeScript a virtual view of a non-.ts file, like a .vue or .svelte single-file component, with mappings back so errors land on the right line. You register them under contentMappers in tsconfig.json.
The catch is that a mapper runs as an external executable, so it only fires when you opt in. On the command line that's the tsc --runExternalCode flag, and in VS Code it's workspace trust plus the js/ts.contentMappers.enabled setting. Prototypes already exist for Astro, CSS Modules, Ember, MDX, Svelte, and Vue.
The payoff is the whole reason this feature exists. Johnson Chu shipped the Vue Language Tools v4 alpha on top of content mappers, dropping the old vue-tsc binary. In a hands-on migration of the Directus admin app, with 581 Vue components across 882 TypeScript files, type checks dropped from 14.19s to 3.10s. That's a 4.6x speedup over vue-tsc 3. Not bad for a Tuesday.
The speed keeps climbing
Microsoft's own benchmarks (4 type-checker threads, --noEmit) show 7.1 chases another big round of optimizations: up to 1.9x faster and peak memory down by as much as half versus 7.0.
For mui-docs that's 22.2s down to 11.9s, a 1.9x jump with nearly 47% less memory. The rest are smaller but steady. bluesky, sentry, t3code-server, and vscode all land between 1.2x and 1.4x, with memory savings of 16% to 25%.
Here's a number that's arguably more convincing than Microsoft's table: an independent run against a 353,000-line NestJS project checked in 2.76s on the 7.1 beta versus 4.95s on 7.0 and 12.42s on the old JavaScript compiler. That last figure is the one that stands out.
A stable es2026 and a handful of language additions
TypeScript 7.1 makes --target es2026 and --lib es2026 stable, pulling in declarations that have now hardened in ECMAScript 2026. That's Math.sumPrecise, Iterator.concat, JSON.rawJSON, a new JSON.parse overload exposing original source text, Error.isError, Map and WeakMap getOrInsert methods, Uint8Array base64/hex helpers, and Array.fromAsync. If you've been carrying a local .d.ts to declare any of these, you can finally drop it.
Two smaller additions round out the release. Import attributes in ambient module declarations let you type an import by its attribute rather than its extension. Source-phase imports (import source) let you load a module before its code runs, which mostly matters for WebAssembly:
import source SuperFastThing from "./super-fast-thing.wasm"; const instance = await WebAssembly.instantiate(SuperFastThing);
A grab-bag of proposal-stage methods lives under --lib esnext, including Promise.allKeyed, Iterator.zip variants, and Iterator.prototype.chunks.
Two things can turn a green build red
First, stricter checks on distributive type parameters. When a conditional type distributes over a union, each branch now sees a more specific subset of the type parameter, and 7.1 enforces constraints per member instead of against the whole union. Code that compiled fine in 7.0 can start erroring. Workarounds range from trimming an unnecessary constraint to wrapping types in tuple brackets, like [A] extends [B], when you want to deliberately suppress the distribution.
Second, the DOM typings shipped fresh for 7.1, so code that touches browser APIs may surface new errors. Details live in TypeScript issue #63702.
Both are 7.1 deltas. TypeScript 7.0 itself carried a longer breaking-change list, including isolatedModules now defaulting to true and const enum erroring by default. If you're still on TypeScript 5, migrate through 6 then 7 first. Don't jump blind.
The stable date keeps slipping, and now you can try it
The official iteration plan, published July 31, 2026, targeted an October 6 beta, a November 10 RC, and a November 24 stable. The beta slipped to October 20. The RC missed November 10. Then, per several third-party trackers, no RC was available at all as of late November until this December 4 build, which matches unofficial reports of a ~December 1 landing. Stable is now rumored for the second week of December.
For the RC-to-stable window, Microsoft says it's focused on feature feedback plus more speed and stability work. Tool authors are urged to port to the new entry points now and flag missing functions through API status tracker issue #64709 while gaps can still be closed.
Grab the RC with the standard package tagged @rc:
npm install -D typescript@rc npx tsc --version # reports Version 7.1.1-rc npx tsc --noEmit # type-check a project
Those who remember the pre-7.0 betas may notice there's no separate tsgo binary here. It's just tsc. For side-by-side benchmarking, the beta (typescript@beta, the October 20 7.1.0-beta) and nightly (@typescript/native-preview, still tsgo) channels still exist.
Head here to the GitHub download page.
