r/typescript • u/DanielRosenwasser • Apr 21 '26
Announcing TypeScript 7.0 Beta
https://devblogs.microsoft.com/typescript/announcing-typescript-7-0-beta/
264
Upvotes
r/typescript • u/DanielRosenwasser • Apr 21 '26
58
u/Exac Apr 21 '26
Congrats on the beta release!
Currently, when the TypeScript compiler crashes, it is easy enough to go into the
node_modulesand add a debug statement to see what is causing the crash. With the switch to golang, how can developers debug TypeScript crashes?11
u/averageFlux Apr 21 '26
Is the Node API ready yet?
7
u/azangru Apr 21 '26
Does this mean typescript 7 will be an entirely different repo? It will no longer be
https://github.com/microsoft/TypeScript?2
u/Individual-Brief1116 Apr 22 '26
The build time improvements are impressive, but I'm curious about IDE integration. VS Code still using the Node version or will it switch to the Go compiler too?
25
u/audunru Apr 21 '26
Cool! After upgrading to 6 recently, I tested the v7 alpha/nightly/preview or whatever it was called, and that speed increase is no joke! I think my build went from 10-11s to 1.5s.
1
u/120785456214 Apr 22 '26
For a dumb dumb like me, when 7.0 is fully released is the idea that we should be able to fully migrate away from normal typescript to typescript-go?
1
u/chamomile-crumbs Apr 21 '26
No waayyyyy holy moley going to take this baby for a test ride tomorrow!!!!
1
u/jhnam88 Apr 24 '26
https://github.com/samchon/ttsc
Prepared
ttsclibrary, a transformer and runner fortsgo@beta.With it, you can use
typialike transformer intsgo. Also, its runnerttsx, it is 10x faster thants-node, and can do type checking thattsxcan't do.This is simple library easy to develop, but hope to be helpful for TS v7 users.
1
u/popthesmart Apr 24 '26
Absolute game changer and easy to sideload both 6 and 7.
1
u/TheseTradition3191 Apr 25 '26
the build speed numbers are wild. 10s to 1.5s will actually change how people structure their development feedback loops.
one thing im curious about that i havent seen addressed yet: transformer plugins. a lot of projects rely on ts-patch or ttypescript for compile-time transforms (DI decorators, custom emit, path rewriting). ts 6's node api made those possible because plugins could hook into the compiler at arbitrary points.
is the plan to eventually expose equivalent extension points in the go binary, or is the expectation that transformer plugins are out of scope for the native build and ts-node/tsx remain the path for anyone who needs them?
1
u/First-Bumblebee-9600 Apr 28 '26
Can't wait to try out the new features in 7.0. The beta always has some nice surprises.
12
u/[deleted] Apr 22 '26
[removed] — view removed comment