Skip to content

chore: upgrade to latest ts#7522

Merged
jasonsaayman merged 3 commits intov1.xfrom
chore/update-ts-to-latest-version
Mar 16, 2026
Merged

chore: upgrade to latest ts#7522
jasonsaayman merged 3 commits intov1.xfrom
chore/update-ts-to-latest-version

Conversation

@jasonsaayman
Copy link
Copy Markdown
Member

@jasonsaayman jasonsaayman commented Mar 16, 2026

Summary by cubic

Upgrade to typescript@^5.9.3 across the repo and fixtures, update generated helpers, and clean up lockfiles. Keep the CJS fixture on TS 4.9 for Node 12.

Description

  • Summary of changes

    • Bump typescript to ^5.9.3 in root and fixtures (test/module/ts*, test/module/typings/*, tests/module/esm).
    • Keep tests/module/cjs on typescript@4.9.5 with @types/node@12.20.55.
    • Update test/module/ts/index.js to TS 5’s __importStar helper.
    • Refresh lockfiles; dedupe TS and reflect Node >=14.17 for TS 5.
    • Stop pinning ESM @types/node; keep ^20.0.0.
  • Reasoning

    • Stay current and consistent with TS.
    • Align fixtures to intended Node versions; avoid duplicate installs.
  • Additional context

    • Dev/test only; no runtime changes.

Docs

  • Update mentions of TypeScript to 5.9.
  • Note Node >=14.17 for tasks using TS 5; the CJS fixture intentionally stays on TS 4.9 with Node 12 types.

Testing

  • No new tests. Only devDependencies/fixtures updated.
  • Run existing suites to confirm no regressions.
  • Ensure CI uses Node >=14.17 for TS 5 tasks and a Node 12 job for the CJS fixture.

Written for commit 1741de3. Summary will update on new commits.

@jasonsaayman jasonsaayman self-assigned this Mar 16, 2026
@jasonsaayman jasonsaayman added priority::medium A medium priority commit::chore The PR is related to a chore labels Mar 16, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 12 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="tests/module/cjs/package.json">

<violation number="1" location="tests/module/cjs/package.json:16">
P1: This downgrades the CJS module test package to TypeScript 4.9, so those tests will no longer exercise the TS 5.9 behavior the rest of the repo was upgraded to.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="tests/module/esm/package.json">

<violation number="1" location="tests/module/esm/package.json:14">
P2: Keep this fixture on an exact `@types/node` version. The caret range makes the ESM test matrix non-deterministic again and contradicts the stated goal of locking fixture deps to the target runtime.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@jasonsaayman jasonsaayman merged commit 5dd7ba7 into v1.x Mar 16, 2026
28 of 30 checks passed
@jasonsaayman jasonsaayman deleted the chore/update-ts-to-latest-version branch March 16, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::chore The PR is related to a chore priority::medium A medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant