Skip to content

root - chore: upgrade TypeScript and build tooling (breaking)#134

Merged
jaredwray merged 2 commits into
mainfrom
claude/awesome-newton-c9442d
Jun 12, 2026
Merged

root - chore: upgrade TypeScript and build tooling (breaking)#134
jaredwray merged 2 commits into
mainfrom
claude/awesome-newton-c9442d

Conversation

@jaredwray

@jaredwray jaredwray commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrade TypeScript and build tooling to the latest versions allowed by the repo's minimumReleaseAge gate, and align engines.node with the new build tool.

Versions

  • typescript 6.0.2 → 6.0.3
  • tsdown 0.21.7 → 0.22.2
  • @types/node 25.6.0 → 25.9.2

Tests

  • pnpm build passes (target now node22.18.0)
  • Lint + type-check pass; no new test failures vs. base. The only failures locally are pre-existing integration tests requiring live Hyphen API access (network-blocked in the dev sandbox). CI runs them green — Codecov confirms 100% coverage on the head commit.

Breaking notes

  • engines.node raised >=20.12.0^22.18.0 || >=24.0.0 to match tsdown@0.22.2 (the prior tsdown@0.21.7 ran on >=20.19.0). This drops Node 20/21 build/runtime support. CI exercises Node 22/24/26, all of which satisfy the new range.
  • @types/node stays on major 25 — within the Node majors CI exercises (22/24/26).
  • @types/node@25.9.3 exists but is younger than the 48h minimumReleaseAge gate, so 25.9.2 is the correct target.

- typescript 6.0.2 → 6.0.3
- tsdown 0.21.7 → 0.22.2
- @types/node 25.6.0 → 25.9.2

https://claude.ai/code/session_01BzzQwgrJ6ujMSmfSEA2Wrv

@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: 78cebba379

ℹ️ 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.21.7",
"typescript": "^6.0.2",
"tsdown": "^0.22.2",

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 Align the declared Node engine with tsdown

This upgrade makes the build tool require a newer runtime: the locked tsdown@0.22.2 declares engines: {node: ^22.18.0 || >=24.0.0} in pnpm-lock.yaml, while package.json still advertises Node >=20.12.0. Since pnpm build invokes tsdown and prepublishOnly runs the build, installs/builds from source on Node 20/21 or early Node 22 can now fail under engine-strict or at build time despite satisfying the package's declared engine; either keep a Node-20-compatible tsdown or raise the declared engine range.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch — addressed in 45d8439. I raised engines.node from >=20.12.0 to ^22.18.0 || >=24.0.0 to match tsdown@0.22.2's declared engine.

Verified the regression was real and introduced here: tsdown@0.21.7 declared engines.node: >=20.19.0, while 0.22.2 moves to ^22.18.0 || >=24.0.0, dropping Node 20/21 and early 22. Since the published package ships pre-built dist/ (tsdown is dev-only), this primarily affects building from source; aligning the declared engine keeps the contract honest. CI builds on Node 22/24/26 (and release.yaml on 22) — all satisfy the new range — and the tsdown build target now resolves to node22.18.0. Marked the PR (breaking) since this drops Node 20/21 support.


Generated by Claude Code

@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (54f15b5) to head (45d8439).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #134   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          477       477           
  Branches        95        99    +4     
=========================================
  Hits           477       477           

☔ 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.

Align the package's declared Node engine with tsdown@0.22.2, which
requires ^22.18.0 || >=24.0.0. The prior tsdown (0.21.7) ran on Node
>=20.19.0; 0.22.2 drops Node 20/21 and early 22, so the published
package now declares the same floor. CI exercises Node 22/24/26, all
of which satisfy the new range.

https://claude.ai/code/session_01BzzQwgrJ6ujMSmfSEA2Wrv
@jaredwray jaredwray changed the title root - chore: upgrade TypeScript and build tooling root - chore: upgrade TypeScript and build tooling (breaking) Jun 12, 2026
@jaredwray jaredwray merged commit bb671d6 into main Jun 12, 2026
9 checks passed
@jaredwray jaredwray mentioned this pull request Jun 12, 2026
4 tasks
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