Tornike Nizharadze’s Post

TypeScript 6.0 beta just dropped. This is the last version written in JavaScript before the Go rewrite in 7.0. Here's what's new: 𝗡𝗲𝘄 𝗧𝗲𝗺𝗽𝗼𝗿𝗮𝗹 𝗔𝗣𝗜 𝘁𝘆𝗽𝗲𝘀 Enable with `--target esnext` or `lib: ["esnext"]` to start using modern date/time handling. 𝗠𝗮𝗽 𝘂𝗽𝘀𝗲𝗿𝘁 𝗺𝗲𝘁𝗵𝗼𝗱𝘀 `getOrInsert` and `getOrInsertComputed` make Map operations cleaner (available in esnext lib). 𝗥𝗲𝗴𝗘𝘅𝗽.𝗲𝘀𝗰𝗮𝗽𝗲 𝗳𝗼𝗿 𝘀𝗮𝗳𝗲𝗿 𝗿𝗲𝗴𝗲𝘅 Automatically escape special characters like *, ?, + (in es2025 lib). `--𝘀𝘁𝗮𝗯𝗹𝗲𝗧𝘆𝗽𝗲𝗢𝗿𝗱𝗲𝗿𝗶𝗻𝗴` 𝗳𝗹𝗮𝗴 Helps compare type outputs between 6.0 and the upcoming 7.0, useful for migration testing (not for everyday use). The catch? That ordering flag can slow type checking by 25% in large codebases. Only use it when you need to diagnose differences. If you're on modern practices (strict mode, ES2020+, ESM), upgrading is smooth. If you're stuck on old bundlers, wait. The real win comes with 7.0. This is just the bridge. Are you upgrading to 6.0 or waiting for the Go rewrite? #TypeScript #WebDevelopment #JavaScript #devlife #DevTools

  • text

Looks like a solid bridge release before the bigger changes in 7.0. The Go rewrite is what I’m really curious about, especially in terms of type-checking performance.

To view or add a comment, sign in

Explore content categories