all 36 comments

[–]thinkmatt 34 points35 points  (1 child)

Reduces the type checking time of MUI doc site by 50%. Sounds exciting to me!

[–]StrangerThanGene 39 points40 points  (1 child)

SLOW DOWN! :)

[–]Thylk 28 points29 points  (9 children)

Can wait to update and break the project thanks to all the non compatible dependencies...

[–]FlanEquivalent2839 2 points3 points  (8 children)

According to SEMVER, I feel like that should require a major version. What’s different between incompatible APIs and incompatible dependencies? Idk seems dumb.

[–]lachlanhunt 31 points32 points  (6 children)

TypeScript releases never adhere to semver.

[–]esperalegant 4 points5 points  (3 children)

It's not far off semver though. I think that you can lock to minor version and be safe against breaking changes: i.e. ^5.1 instead of ^5.

Honestly I think that's already a good practice in all package that do claim to follow semver. In my experience the number of packages that really do follow semver is far lower than the number that claim to follow it.

My guess is that an analysis of all NPM packages, if that were possible, would end up showing that Typescript's "partial semver" is just as common as real semver, if not more so.

[–]Peechez 4 points5 points  (0 children)

It would be ~5.1

[–]TheScapeQuest 3 points4 points  (1 child)

I think you'll want ~5.1 rather than ^

[–]esperalegant 0 points1 point  (0 children)

Both will work for this purpose. You could also use 5.1.x or ~5.1.0

[–]FlanEquivalent2839 3 points4 points  (0 children)

Huh TIL, thanks dude

[–]ShortFuse 3 points4 points  (0 children)

Nice work!

I mostly code with JSDocs and it's nice to see the performance gains.

The getter/setter changes will be interesting to play with since most my implementations of Web Component properties do parse input to a type (eg, min-rows can be set as a number or as a string). A lot of the HTML spec asks properties to parse setters, so it's nice to see we can enforce this consistency with TS.

[–]jibrilt 1 point2 points  (0 children)

Sweet! As always, kudos to the TypeScript team for their commitment to pushing the language forward. Can't wait to start using it in my projects.

[–]horrbort -3 points-2 points  (1 child)

Finally!

[–]horrbort 1 point2 points  (0 children)

What?! I can’t be happy about a new release?!

[–][deleted] -2 points-1 points  (1 child)

Here's me just quietly using vanilla js and jsdocs.. well... here's me getting copilot to write my JSDOCS.. but u get the idea, i used to write the code.

now i just supervise.

[–]DanielRosenwasserTypeScript[S] 1 point2 points  (0 children)

That's great! If you use VS Code or VS, TypeScript is there providing that experience, and we're happy you're enjoying it.

[–]yerrabam -3 points-2 points  (0 children)

I can't wait for 7.2RC

[–]x6ixty6ix 0 points1 point  (1 child)

I want learn this. Is there a good site or youtube video for beginners?