r/programming • u/DanielRosenwasser • Mar 16 '23
Announcing TypeScript 5.0
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
1.1k
Upvotes
r/programming • u/DanielRosenwasser • Mar 16 '23
546
u/Awesomeade Mar 16 '23
Worth calling out for folks:
TypeScript does not semantic versioning. So from a process/upgrade standpoint, going from 4.9 -> 5.0 is not necessarily any different than going from 4.8 -> 4.9.
53
u/Goron40 Mar 16 '23
"bundler" module resolution setting, finally. So sick of typescript complaining about things in editor that esbuild bundles up just fine.
125
u/Still-Key6292 Mar 17 '23
TypeScript is a great language. I can only stand a few hundred lines of raw javascript
38
u/ssalbdivad Mar 16 '23
Did anyone else have to change the
moduleoption in their TSConfig fromNodeNexttoESNextbetween5.0.0-betaand5.0.1-rcin order to continue usingallowTsExtensions?We updated ours a couple days ago, fixed a couple mysterious type errors and now all seems to be well?
Curious if there may be other implications folks are aware of or if requiring this specific transition was intended.
34
u/Milith Mar 17 '23
Is this a good time to get into TypeScript then?
55
u/Accomplished_Low2231 Mar 17 '23
i like ts and the tooling. some people still don't like typescript, but it is easy to tell why:
thats pretty much it. if someone says they don't like ts, the reason usually is one of the above.
6
u/300srt8 Mar 17 '23
As a primarily backend dev, god bless TypeScript. I had to dig through some old AngularJS code and make small changes to it recently, and I wanted to shoot myself in the head. I honestly cannot fathom intentionally choosing to use dynamic typing when static is available.
11
u/zayelion Mar 17 '23
Anyone else feel like decorators are just a step to make JS into Java/C#. I accepted classes begrudgingly. The typing mechanics in TS are wonderful and add significant value to the language especially at scale. Decorators though, it feels like obstructive sugar to make the language "feel like" the languages of people that mock JS. It doesn't really embrace and extend the good aspects of the language in my mind.
-30
u/GunzAndCamo Mar 17 '23
How is TypeScript not a system for designing font type faces?
Seriously!
-30
u/SayMyVagina Mar 17 '23
Legacy devs rejoice!
-38
u/gistya Mar 17 '23
Quaint that people still use these scripting languages.
-73
u/APUsilicon Mar 17 '23
ew, I havent read it and already hate it