News for hackers. Stuff that matters.
Re:TypeScript 5.0 by azangru on Thursday March 16, 2023 @01:33PM (#35185244)
> But if you’re already familiar with TypeScript, have no fear! 5.0 is not a disruptive release, and everything you know is still applicable.

Do you know what caused the typescript team to make it a major release? Has the decorator api changed sufficiently to become a breaking change?

Re:TypeScript 5.0 by cacozen on Thursday March 16, 2023 @01:37PM (#35185317)
Internal refactors that included moving to ES modules and ended up improving overall performance and size.
Re:TypeScript 5.0 by dcre on Thursday March 16, 2023 @01:52PM (#35185551)
It's not a major release.
Re:TypeScript 5.0 by jakebailey on Thursday March 16, 2023 @01:58PM (#35185648)
There's a full page of API breaks: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Ch...

Then, a new error about the deprecations of ancient options to be removed in 5.5: https://github.com/microsoft/TypeScript/issues/51909

Re:TypeScript 5.0 by zdragnar on Thursday March 16, 2023 @02:01PM (#35185720)
I think "major" was used in the semver sense, which is not how the TS team chooses version numbers.
Re:TypeScript 5.0 by jakebailey on Thursday March 16, 2023 @02:09PM (#35185852)
Sure, we don't bump according to semver, but it's hard to say that 5.0 _isn't_ a major release given how we used it as a way to get a bunch of breaking changes and cleanups in. It's a very opportune time as people will be forced to manually upgrade and acknowledge that something is changing.
Re:TypeScript 5.0 by demurgos on Thursday March 16, 2023 @01:37PM (#35185303)
Typescript always goes from version x.9 to (x+1).0. Please also note that TypeScript does not claim to strictly follow semver.
Re:TypeScript 5.0 by styfle on Thursday March 16, 2023 @03:22PM (#35186978)
There's a section in the article called "Breaking Changes and Deprecations"

> TypeScript 5.0 has a minimum version requirement of at least Node.js 12.20 and later

https://devblogs.microsoft.com/typescript/announcing-typescr...