Skip to content

chore(deps-dev): upgrade TypeScript to 6.0.3#668

Merged
jimmyandrade merged 3 commits into
masterfrom
fix/typescript-6
Jul 2, 2026
Merged

chore(deps-dev): upgrade TypeScript to 6.0.3#668
jimmyandrade merged 3 commits into
masterfrom
fix/typescript-6

Conversation

@jimmyandrade

@jimmyandrade jimmyandrade commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Proposed changes

This PR supersedes #611 and brings the following changes:

  • Upgrade typescript from 5.9.3 to 6.0.3.
  • Migrate tsconfig.json from deprecated moduleResolution: "Node" (node10) to moduleResolution: "bundler" + module: "commonjs", per the TypeScript 6 migration guide.
  • Set module: "esnext" in the Rollup TypeScript plugin so bundling stays compatible with @rollup/plugin-typescript.
  • Type Promise<GlyphData> chains in glyphsData.ts for stricter inference under TS 6.
  • Keep noImplicitAny: false and strictNullChecks: false explicitly during the TS 6 transition (same effective strictness as before under node10).

Related issue

Supersedes #611 (Dependabot TypeScript bump).

Dependencies added/removed (if applicable)

  • Update: typescript 5.9.36.0.3.

Testing

  • I have added or updated tests that prove my fix is effective or that my feature works (if applicable)
    • Unit test — existing suite passes unchanged

How to test

  1. Run npm test — build, lint, declaration emit, and all 67 Jest tests pass.
  2. Confirm postbuild (tsc --emitDeclarationOnly) no longer fails with TS5107 on moduleResolution=node10.

Test configuration

  • Node.js version (if applicable): 26.4.0
  • NPM version (if applicable): (project default)

Checklist

  • I have added corresponding labels to this PR (like bug, enhancement...);
  • My commits follow the Conventional Commits 1.0 Guidelines;
  • My code follows the style guidelines of this project;
  • I have performed a self-review of my own code;
  • I have mapped technical debts found on my changes;
  • I have made changes to the documentation (if applicable);
  • My changes generate no new warnings or errors;

Made with Cursor

dependabot Bot and others added 2 commits July 2, 2026 04:04
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 4.9.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Migrate moduleResolution from deprecated node10 to bundler + commonjs
per TypeScript 6 guidance, and type Promise chains in glyphsData for
stricter inference under TS 6.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jimmyandrade jimmyandrade added dependencies Pull requests that update a dependency file build labels Jul 2, 2026
@jimmyandrade jimmyandrade requested a review from Copilot July 2, 2026 04:38
@jimmyandrade jimmyandrade self-assigned this Jul 2, 2026
@jimmyandrade jimmyandrade added this to the 12.0 milestone Jul 2, 2026
Integrate cosmiconfig v9, SWC/Jest migration, and regenerate
package-lock.json for TypeScript 6.0.3.

Co-authored-by: Cursor <cursoragent@cursor.com>

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

Upgrades the project’s TypeScript toolchain to TS 6.0.3 and adjusts compilation/bundling settings and a couple of promise typings to keep builds and type inference working under TS 6.

Changes:

  • Bump typescript devDependency from 5.9.3 to 6.0.3 (and lockfile updates).
  • Update tsconfig.json compiler options related to module resolution/output.
  • Add explicit Promise<GlyphData> typings and set Rollup TS plugin module override to keep Rollup output compatible.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsconfig.json Updates module/moduleResolution and explicit strictness toggles for TS 6 transition.
src/standalone/glyphsData.ts Adds explicit Promise/result typings to stabilize inference under TS 6.
rollup.config.js Overrides TS compiler module for the Rollup TypeScript plugin.
package.json Updates typescript to 6.0.3.
package-lock.json Lockfile updates to reflect the TypeScript bump.

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

@jimmyandrade jimmyandrade merged commit 8d3b4f6 into master Jul 2, 2026
2 checks passed
@jimmyandrade jimmyandrade deleted the fix/typescript-6 branch July 2, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants