TypeScript 5.0: “Smaller, Simpler, Faster”
Microsoft shipped TypeScript 5.0 with new features that make the language smaller, simpler, and faster.
“We’ve implemented a new decorator standard, added features to better support ESM projects in Node and bundlers, provided new ways for library authors to control general reasoning, extended JSDoc functionality, and added configuration. We’ve simplified it and made many other improvements,” says Daniel. In a post last week, his Senior Program Manager Rosenwasser said:
One developer who commented on Rosenwasser’s post enthusiastically called the new decorator feature “very relevant.”
The TypeScript documentation says the following about decorators: for class declarations and members. ”
A full description of the decorator feature is the bulk of the announcement post, along with a long list of other features.
const Enter parameters to optimize for speed, memory, and package size.
The latter is about “hard” changes across the language’s code structure, data structures, and algorithm implementations, for smaller, simpler, and faster claims.
Here’s a graph showing the speed improvement:
And here’s one for size improvement:
The size improvement is due to the availability of modern build tools that are supported by switching to using modules instead of namespaces.
Along with a revised packaging strategy and the removal of some obsolete code, the new tools allow for reduced package size while improving performance through direct function calls.
As for the next iteration, v5.1, which is scheduled for a May 23rd release date, it will add many enhancements and new features across the compiler, language services, performance, and infrastructure. .
David Ramel is an editor and writer at Converge360.