Skip to content

chore(deps): update dependency typescript to v6 - #18

Merged
baseballyama merged 1 commit into
mainfrom
chore/typescript-6
May 9, 2026
Merged

chore(deps): update dependency typescript to v6#18
baseballyama merged 1 commit into
mainfrom
chore/typescript-6

Conversation

@baseballyama

Copy link
Copy Markdown
Collaborator

Summary

Why drop the two flags rather than ignoreDeprecations: "6.0"?

verbatimModuleSyntax: true is already set in tsconfig.json, which forbids the synthetic-default import patterns that esModuleInterop=false / allowSyntheticDefaultImports=false were defending against. Whether esModuleInterop resolves to false (TS 5 default) or true (TS 6 default), verbatimModuleSyntax enforces the same source-level import discipline, so the runtime/emit behavior of xlsx-kit is unchanged. Removing the explicit values means the project will keep tracking each TS major's defaults without another tsconfig nudge when TS 7 arrives.

Verified locally on TS 6.0.3

  • pnpm typecheck — clean
  • pnpm lint — 0 warnings, 0 errors
  • pnpm test — 2169/2169 passed
  • pnpm build — completes with no warnings beyond the existing tsdown external deprecation notice

Test plan

  • CI matrix (Node 22/24/26) passes
  • After merge, static and test (22|24|26) jobs are green on main

🤖 Generated with Claude Code

Bump TypeScript from `^5.9.3` to `^6.0.3`.

TypeScript 6 deprecates the `false` settings for `esModuleInterop` and
`allowSyntheticDefaultImports`; both will stop functioning in TS 7.
Drop those two lines from `tsconfig.json` rather than carry an
`"ignoreDeprecations": "6.0"` escape hatch:

- `verbatimModuleSyntax: true` is already set, which forbids the
  synthetic-default import patterns these flags were guarding against.
  Whether `esModuleInterop` is `false` (old TS default) or `true` (new
  TS 6 default), `verbatimModuleSyntax` enforces the same import
  discipline at the source level, so the runtime/emit behavior of this
  package's code is unchanged.
- Removing the explicit values lets the project track each TS major's
  defaults without further changes when TS 7 lands.

Verified locally on TS 6.0.3: `pnpm typecheck`, `pnpm lint`, `pnpm test`
(2169/2169), and `pnpm build` all pass.

Supersedes #14.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 9, 2026 06:37
@baseballyama
baseballyama merged commit e3d5fb2 into main May 9, 2026
6 checks passed
@baseballyama
baseballyama deleted the chore/typescript-6 branch May 9, 2026 06:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s TypeScript toolchain to TypeScript 6, and cleans up tsconfig.json by removing two compiler flags that are no longer needed given the project’s current module/interop constraints.

Changes:

  • Bump typescript from ^5.9.3 to ^6.0.3.
  • Remove explicit esModuleInterop / allowSyntheticDefaultImports settings from tsconfig.json.
  • Regenerate pnpm-lock.yaml to reflect the TypeScript update across the root workspace tooling.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment.

File Description
tsconfig.json Removes explicit interop/import flags to rely on TS defaults under TS 6.
package.json Updates the root workspace devDependency to TypeScript ^6.0.3.
pnpm-lock.yaml Updates lock entries to TypeScript 6.0.3 for root tooling and peers.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pnpm-lock.yaml
Comment on lines 49 to +56
specifier: ^0.22.0
version: 0.22.0(oxc-resolver@11.19.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0))(typescript@5.9.3)(unrun@0.2.37)
version: 0.22.0(oxc-resolver@11.19.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0))(typescript@6.0.3)(unrun@0.2.37)
typedoc:
specifier: ^0.28.19
version: 0.28.19(typescript@5.9.3)
version: 0.28.19(typescript@6.0.3)
typescript:
specifier: ^5.9.3
version: 5.9.3
specifier: ^6.0.3
version: 6.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants