TypeScript 5.7 Iteration Plan
This document outlines our focused tasks for TypeScript 5.7. It minimally indicates intent to investigate tasks or contribute to an implementation. Nothing is set in stone, but we will strive to complete these tasks in a reasonable timeframe.
| Date | Event |
|---|---|
| 2024-09-09 | TypeScript 5.6 Release |
| 2024-09-27 | Create 5.7 Beta (5.7.0) Build for Testing |
| 2024-10-01 | TypeScript 5.7 Beta Release |
| 2024-11-08 | Create 5.7 RC (5.7.1) Build for Testing |
| 2024-11-12 | TypeScript 5.7 RC Release |
| 2024-11-18 | Create 5.7 Final (5.7.2) Build for Testing |
| 2024-11-21 | TypeScript 5.7 Final Release š |
Compiler and Language
- Control Flow Analysis for Lambdas Passed to
immediateParameters - Enforce Readonly Checks on Object Members
- Checks for Never-Initialized Variables
- Disallow Parameter Property References from Class Fields
- Investigate Relating Values to Conditional Return Types
- Investigate Relative Import Extension Rewrites
- Investigate
/** @typeArguments/specialize */ - Investigate Support for Sourcemap v4
lib.d.tsUpdates
Editor and Language Service
- Investigate Expandable Quick Info/Hover Verbosity
- Consult Root Files Before Opening
compositeProjects - Ancestor Configuration File Searching
- Completions for
package.jsonSubpathimports - Improved Rename for Shorthand Properties/Destructuring
- Support "Prepare Paste Edits" Command
- Ship Import-on-Paste in Stable VS Code
- Improved Detection of
node:for Auto-Import Paths - Investigate File Drop Support in Editor
- Investigate Improved Move to File Naming
- Investigate LSP Support
Performance
- Path Mapping Optimizations
- Investigate Enabling V8 Compile Caching in Node.js
- Investigate and Experiment with Full Monomorphization
Website and Docs
- Simplify and Refactor Website for Faster Builds
- Handbook Review
- Experiment with Example-Driven Learning Paths
Infrastructure
I hope ES2024 target (#58573) will be added. It's blocked by #59417.
Are the dates for 5.7 still accurate or do they need an update?
I looked at the linked Compiler and Language issues / PRs and most of them are not committed. The beta is scheduled 6 days from now. I'm unclear on what the typical timing is between commits and the Beta (or if all the intended commits are actually in the Beta)
Is es2024 target support planned to be included?
@pociej #58573 was merged a few days ago, so yes this will be included.
@typescript-bot create release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
create release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I was unable to create the new release branch.
Check the logs at: https://github.com/microsoft/TypeScript/actions/runs/11115678209
@typescript-bot create release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
create release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I was unable to create the new release branch.
Check the logs at: https://github.com/microsoft/TypeScript/actions/runs/11116217953
Hey, @DanielRosenwasser! I was unable to create the new release branch.
Check the logs at: https://github.com/microsoft/TypeScript/actions/runs/11116217953
@typescript-bot create release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
create release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I've created release-5.7 with version 5.7.0-beta for you.
Hey all, to be transparent, we have fallen behind a bit on the plans. The beta will be delayed by up to a week, though that doesn't mean we'll be bringing in everything that's still outstanding in the compiler + language. Thanks for the patience everyone!
Hi, I'm a language server developer. I am very curious about how to implement the Import-on-Paste function you mentioned above? Here is my idea, is it feasible? (sorry but reading ts source code is a bit difficult for me)
- Before pasting the text in the clipboard into the file, maintain a string of the pasted text in the memory
- Compile the new code in this memory
- If there is no syntax error, if an undefined symbol error is encountered in the line where the paste is located, try to do automatic completion at the location of the symbol
- If there is an automatic completion item that completely matches the text of the symbol, complete the import statement corresponding to this item (the same as the behavior of the user manually selecting this completion item)
- Repeat 2 to 5 until there is no such error, or there is no completely matching text
- Overwrite the text string in the memory into the file to be pasted
Hi, can I ask the current status of #33912 ? I do understand that the iteration plan is not a commitment to complete it in 5.7, but Iād appreciate any information because Iām going to give a short talk about this exact feature. š Particularly the info on what drove the addition to the plan would be great.
š Solved by recently published Design Meeting Notes. Thank you!
Based on scheduling, we will be moving the date that 5.7 RC "snaps" to tomorrow, and release the RC next week. The stable release will still be released the week of the 21st.
@typescript-bot sync release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
sync release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I've pulled main into release-5.7 for you.
@typescript-bot bump release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
bump release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I've set the version of release-5.7 to 5.7.1-rc for you.
@typescript-bot bump release-5.7
Starting jobs; this comment will be updated as builds start and complete.
| Command | Status | Results |
|---|---|---|
bump release-5.7 |
ā Started | ā Results |
Hey, @DanielRosenwasser! I've set the version of release-5.7 to 5.7.2 for you.
As a heads up, it looks like a more realistic release date is tomorrow.
@typescript-bot bump release-5.7