KEMBAR78
[Breaking] Bump minimum TypeScript version to 5.1.0 by devjiwonchoi · Pull Request #84384 · vercel/next.js · GitHub
Skip to content

Conversation

devjiwonchoi
Copy link
Member

@devjiwonchoi devjiwonchoi commented Sep 30, 2025

This PR bumps the minimum TS version required for Next.js to 5.1.0, which is the version that supports React Components that return a promise via JSX.ElementType.

https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/#decoupled-type-checking-between-jsx-elements-and-jsx-tag-types

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. tests type: next labels Sep 30, 2025
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ijjk
Copy link
Member

ijjk commented Sep 30, 2025

Tests Passed

@devjiwonchoi devjiwonchoi marked this pull request as ready for review September 30, 2025 19:02
@eps1lon
Copy link
Member

eps1lon commented Oct 1, 2025

Why 5.0 and not 5.3 that's currently lowest supported by DT?

Especially 5.1 would be a nice milestone since that's the version that shipped support for returning Promises from React Components.

@devjiwonchoi
Copy link
Member Author

Why 5.0 and not 5.3 that's currently lowest supported by DT?

Especially 5.1 would be a nice milestone since that's the version that shipped support for returning Promises from React Components.

5.1 sounds good

@devjiwonchoi devjiwonchoi changed the title [Breaking] Bump minimum TypeScript version to 5.0.0 [Breaking] Bump minimum TypeScript version to 5.1.0 Oct 1, 2025
As this is the version that supports React Components that return a promise via JSX.ElementType.
x-ref: https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/#decoupled-type-checking-between-jsx-elements-and-jsx-tag-types

Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
@devjiwonchoi devjiwonchoi requested a review from eps1lon October 1, 2025 10:23
@devjiwonchoi devjiwonchoi merged commit a4b96c8 into canary Oct 1, 2025
305 of 309 checks passed
@devjiwonchoi devjiwonchoi deleted the jiwon/09-30-_breaking_bump_minimum_typescript_version_to_5.0.0 branch October 1, 2025 13:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked tests type: next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants