Skip to content

mono - chore: upgrade TypeScript and build tooling - #154

Merged
jaredwray merged 1 commit into
mainfrom
chore/typescript-build
Oct 8, 2026
Merged

jaredwray merged 1 commit into
mainfrom
chore/typescript-build

Conversation

@jaredwray

Copy link
Copy Markdown
Contributor

Summary

TypeScript moves from 6.0.3 to 7.0.2, and tsdown moves from 0.22.2 to 0.23.0. @types/node stays on 22.20.1. The Node sources do not name one major, so the type package stays on major 22. pnpm already resolves 22.20.1 for that major.

Changes

  • Bump typescript 6.0.3 → 7.0.2.
  • Bump tsdown 0.22.2 → 0.23.0.

Artifact diffs

Verification

  • pnpm build passes.
  • pnpm exec biome check --error-on-warnings passes.
  • Vitest runs. Local failures are the same missing HYPHEN_API_KEY and HYPHEN_PUBLIC_API_KEY errors (52 failed, 241 passed, 2 skipped).
  • Test audit: this pull request does not add, rewrite, or delete a test.
Open in Web Open in Cursor 

Bump typescript to 7.0.2 and tsdown to 0.23.0.
Keep @types/node at 22.20.1.

Co-authored-by: Jared Wray <me@jaredwray.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T23:25:43.644473Z c60c0c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request upgrades tsdown to ^0.23.0 and typescript to ^7.0.2 in package.json, updating the lockfile accordingly. Feedback indicates that the upgraded tsdown dependency introduces stricter Node.js engine requirements that conflict with the project's current engines.node configuration, and it is recommended to update package.json to match these new constraints.

Comment thread package.json
"tsd": "^0.33.0",
"tsdown": "^0.22.2",
"typescript": "^6.0.3",
"tsdown": "^0.23.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Upgrading tsdown to ^0.23.0 (which pulls in rolldown-plugin-dts@0.28.6) introduces stricter Node.js engine requirements: ^22.18.0 || ^24.11.0 || >=26.0.0. This is incompatible with the project's current engines.node definition (^22.18.0 || >=24.0.0), which permits Node.js versions in the [24.0.0, 24.11.0) and [25.0.0, 26.0.0) ranges. To prevent installation or runtime issues on unsupported Node.js versions, please update the engines.node field in package.json to match these new constraints.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Keep engines.node at package.json:48. tsdown is a devDependency. Its engines field is at node_modules/tsdown/package.json:38. That field limits the Node version for the build. It does not limit the Node version for the published SDK. A copy of that range drops Node 24.0 through 24.10 and Node 25 for SDK users. This pull request does not change runtime code.

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7aae233) to head (c60c0c5).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #154   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          639       639           
  Branches       151       146    -5     
=========================================
  Hits           639       639           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cursor

cursor Bot commented Oct 7, 2026

Copy link
Copy Markdown

The review asks to copy the tsdown engines range into engines.node. I left package.json:48 as it is. tsdown is a devDependency, so its engines field limits the build, not the published SDK. I replied on the thread.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c60c0c5f53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"tsd": "^0.33.0",
"tsdown": "^0.22.2",
"typescript": "^6.0.3",
"tsdown": "^0.23.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match the Node range to tsdown 0.23

For Node 24.0 through 24.10, or Node 25, package.json permits the runtime, but tsdown 0.23.0 rejects it. Its lockfile engine is ^22.18.0 || ^24.11.0 || >=26.0.0, while this package declares ^22.18.0 || >=24.0.0. Installs can fail with strict engine checks, and the build cannot run on a declared supported runtime. Update the project engine range or retain compatible tooling.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Keep tsdown at 0.23.0. See package.json:57. Do not change engines.node at package.json:48. tsdown 0.22.2 used the same engines range as this package. tsdown 0.23.0 uses a stricter range. tsdown is a devDependency. SDK users do not install it. This repo does not set engine-strict. CI builds on Node 22, 24, and 26, and those checks pass. A narrower engines.node drops Node 24.0 through 24.10 and Node 25 for SDK users. The Node version sources already disagree, so this pull request does not change them.

@cursor

cursor Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codex asks to narrow engines.node or keep tsdown 0.22.2. I kept tsdown 0.23.0 and left engines.node unchanged. The reason is on the review thread.

@jaredwray
jaredwray merged commit 0b9bce0 into main Oct 8, 2026
9 checks passed
@jaredwray
jaredwray deleted the chore/typescript-build branch October 8, 2026 17:43
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