Microsoft shipped the release candidate of TypeScript 7.1 on December 4. You install it with npm install -D typescript@rc, and the stable version is due within two weeks. The biggest changes are about imports, a new API for tool authors, and support for files such as .vue or .svelte.
What is in TypeScript 7.1 RC
The announcement on the TypeScript blog says 7.1 is feature complete, with only critical bug fixes planned before the stable release. The candidate is also on GitHub as v7.1-rc.
Import attributes in module declarations
import data from "./data.json" with { type: "json" } tells the runtime how to treat a file. Until now TypeScript described such imports with a pattern on the file extension, for example declare module "*.css", and ignored the attribute completely. In 7.1 you can write declare module "*" with { type: "css" } and attach the type to the attribute instead of the file name. An import that leaves out a required attribute is an error.
These declarations are not in the built-in libraries, on purpose. Each project adds its own, because a browser and a bundler can treat the same .css file differently.
Source phase imports and ES2026
import source is an ECMAScript proposal that returns a module parsed but not yet run. Today it is mostly useful for WebAssembly, since many environments do not support source imports of plain JavaScript files yet: import source Module from "./module.wasm" gives an object you can pass straight to WebAssembly.instantiate. It needs --module set to esnext, nodenext or preserve.
--target es2026 is now a stable option, together with --lib es2026. That brings types for Math.sumPrecise(), Error.isError(), Array.fromAsync(), getOrInsert() on Map and WeakMap, and the Uint8Array conversions to Base64 and hex.
--lib esnext also gains methods from proposals that are not in the standard yet, such as Promise.allKeyed, Iterator.zip and Iterator.prototype.chunks.
The new API and content mappers
TypeScript 7 is written in Go, so the old compiler API could not survive in its previous shape. Version 7.1 ships a new one, split into several entry points: typescript/sync, typescript/async, typescript/fs, typescript/ast and a few more. Program objects have to be released, most easily with a using declaration, because the memory lives on the Go side and JavaScript's garbage collector cannot reclaim it.
The API is built around snapshots: the state of all projects at one moment. When a file changes, a tool derives a new snapshot from the previous one with update() instead of rebuilding everything. The old snapshot keeps working, so you can compare errors before and after the change.
For Vue, Svelte or Astro, content mappers matter more. They are plugins registered in tsconfig.json for a file extension. A mapper shows the compiler a virtual version of the file and maps it back to the original, so errors point at the right place in your component. Volar has worked this way for years; now the model is part of TypeScript. Prototypes exist for Astro, CSS Modules, Ember, MDX, Svelte and Vue.
A mapper is an external program, so on the command line you must allow it with the --runExternalCode flag. VS Code asks for workspace trust and a separate permission for mappers.
What changed since the beta
Since the beta the team has polished the API and the mappers, added the --disableDynamicImportExtensionRewriting option and published an experimental package, @typescript/typescript-wasip1-wasm. With it the compiler runs in the browser and in WASI runtimes, and the TypeScript Playground can run 7.1.
There is also a long list of memory and build time optimizations. The post recalls that TypeScript 7 was often around 10 times faster than TypeScript 6, but gives no new overall figure for 7.1.
What this means if you are learning to code
If you are only starting with types, change nothing. A release candidate is for people who want to test an existing project before the stable version. What you have installed is fine, and the basics from the JavaScript and TypeScript course work the same in 7.1.
Two things are worth understanding now, though. The first is import attributes. You will see with { type: "json" } in new code more and more, so it helps to know it is plain JavaScript syntax, not a TypeScript invention. Start with modules in the JavaScript docs.
The second is --target es2026. The target decides which methods TypeScript considers available. Set it in a small project, type Array.fromAsync() and watch when the editor starts suggesting it. tsconfig.json is covered in the TypeScript docs.
The new API and writing mappers can wait, that is work for tool authors. You will notice it as better suggestions in .vue and .svelte files. For the wider picture, see our TypeScript article.
Also today
- Chrome will stop trusting certificate authorities with ECDSA P-256 keys. From March 15, 2027, sites whose certificate chains to such an authority will show a full-page warning in Chrome. Google advises checking your chain and replacing the certificate before then. Source
- How to find your SSH and PGP keys on 256-bit curves. Seth Larson published commands that list such keys from the SSH agent and from GPG. As a stopgap he suggests P-384 or RSA-4096, and says there is no rush: the next few months will do. Source
- Vue 3.6.0-rc.18. The next release candidate of 3.6 has 42 bug fixes and 4 performance improvements according to the changelog, most of them in Vapor mode. One of them repairs
v-showafter hydration. Source - Claude Code 2.1.337.
/plugin installnow accepts a git repository address in the terminal, and a running skill can be moved to the background. It also fixes the git branch getting lost after compaction. Source - Vercel Sandbox on arm64. The public beta runs in the iad1 region. Pass
architecture: "arm64"when you create a sandbox; the default stays amd64. Source - Vercel CLI without long-lived tokens in CI. A GitHub workflow can exchange its OIDC token for a short-lived CLI token. Vercel recommends moving off Personal Access Tokens, although some commands still need a user token. Source
Frequently asked questions
How do I install TypeScript 7.1 RC?
Run npm install -D typescript@rc in your project folder. Use a separate branch, since this is a pre-release, and check that the project still builds.
When will TypeScript 7.1 be stable?
The team expects the stable release within two weeks of December 4, 2026. It has not given an exact date. After that, work moves on to TypeScript 7.2.
What are content mappers in TypeScript?
They are plugins that explain files with embedded code to the compiler, for example .vue, .svelte or .mdx. You register them in tsconfig.json, and on the command line you add the --runExternalCode flag.
Sources
- Announcing TypeScript 7.1 RC, Microsoft, December 4, 2026
- TypeScript v7.1-rc, GitHub, December 4, 2026
- Keeping HTTPS Connections Safe in Chrome, Google, December 3, 2026
- How to find and upgrade SSH and PGP keys using P-256, ED25519, and Curve25519, Seth Larson, December 4, 2026
- Vue v3.6.0-rc.18, GitHub, December 4, 2026
- Claude Code v2.1.337, GitHub, December 4, 2026
- Vercel Sandbox now supports Arm, Vercel, December 4, 2026
- Vercel CLI supports OIDC token exchange, Vercel, December 4, 2026
This article was prepared with the help of AI from primary sources and reviewed by the CodeWorlds editorial team.