Typescript 5.2 — No More Memory Leaks

Tom Smykowski
5 min readSep 2, 2023

Typescript 5.2 prevents memory leaks, speeds type checking, introduces decorator metadata, understands unions of arrays, supports immutability better, fixes commas and navigates better. It’s all in one minor release? Oh yes baby!

On August, 24th, our favorite Typescript spoke-writer, Daniel Rosenwasser announced Typescript 5.2.

Typescript 5.1 Rehersal

Before we’ll move to Typescript 5.2, let’s recall Typescript 5.1 released in April. It came with some amazing improvements.

The performance improvement is described by 50%, but tests show rather smaller, but still great performance improvement:

If you need a reason to use ES2020 in your project, Typescript 5.1 while it will go outside beta state will be a great opportunity. ES2022 is required for Typescript 5.1 to work.

Typescript 5.1 Beta offers some interesting improvements relaxing strict rules, helping out JSX developers. The language service is more helpful, also for…

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.

Responses (4)