Upgrade project to TypeScript 6.0.3 and resolve TS6 type-system breakage#3
Draft
Copilot wants to merge 2 commits into
Draft
Upgrade project to TypeScript 6.0.3 and resolve TS6 type-system breakage#3Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/ptpt/json-schema-ts/sessions/f45f89be-b727-4d6a-ae7f-9fcba211fd74 Co-authored-by: ptpt <87357+ptpt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update TypeScript dependency to latest stable version
Upgrade project to TypeScript 6.0.3 and resolve TS6 type-system breakage
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the repo to the latest stable TypeScript and makes the minimal compatibility changes needed so the project remains buildable and CI-ready under TS6. The upgrade surfaced a recursive type-instantiation failure in schema union handling, which this PR addresses.
Dependency and CI alignment
typescriptindevDependenciesto6.0.3.6.0.3instead of the prior4.xrange.TS6 compiler compatibility
ignoreDeprecations: "6.0"totsconfig.jsonto keep the existingtarget: "es5"configuration valid under TS6 deprecation enforcement.Type-level recursion fix in schema unions/intersections
AnyOfType/OneOfType/AllOfTypeevaluation from mapped-index expansion to direct union extraction to avoid TS6 “excessively deep and possibly infinite” instantiation.Original prompt
This pull request was created from Copilot chat.