Skip to content

fix: future proof for ts6#5616

Open
kobenguyent wants to merge 1 commit into
4.xfrom
support-ts-v6
Open

fix: future proof for ts6#5616
kobenguyent wants to merge 1 commit into
4.xfrom
support-ts-v6

Conversation

@kobenguyent
Copy link
Copy Markdown
Collaborator

Motivation/Description of the PR

100% safe tsconfig.json with both TypeScript 5 and TypeScript 6. This configuration currently sits perfectly in the "sweet spot" for cross-version compatibility. Here is why:

  • No v6-Exclusive Flags: haven't included any brand-new compiler options that only exist in TypeScript 6. Everything in file has been stable and fully supported throughout the TS 5 lifecycle (and in many cases, since TS 4.7+).

  • No Deprecated Flags: not relying on any legacy settings that TS 5 allowed but TS 6 throws errors for (such as preserveValueImports or legacy "node" resolution).

  • Explicit Overrides: explicitly defined settings like "types": ["node"] and "strictNullChecks": true, that insulates the project from the default behavior changes between the two versions. In TS 5, it behaves exactly as specified; in TS 6, it continues to behave exactly as specified rather than falling back to the new defaults.

The project will compile identically regardless of whether a machine resolves typescript@5.x or typescript@6.x from the package manager.

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent added typescript Changes for typings or typescript compatibility 4.1 labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.1 typescript Changes for typings or typescript compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant