Skip to content

chore: Bump TypeScript to 6.0 and CI to Node 24 - #1620

Merged
pxrl merged 6 commits into
masterfrom
pxrl/bumpTs
Dec 3, 2026
Merged

pxrl merged 6 commits into
masterfrom
pxrl/bumpTs

Conversation

@pxrl

@pxrl pxrl commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Moves the repo to TypeScript 6.0 and CI to Node 24.

TypeScript 5.6 → 6.0

  • TypeScript 6 no longer loads every @types package, so each project names the ones it uses, and tsconfig.json states rootDir.
  • dotenv 10 → 16, whose types TypeScript 6 can resolve.
  • The package test's fixture sets rootDir for the generated clients and passes --ignoreConfig when compiling its consumer file.
  • One Buffer annotation in an SVM test, and two unnecessary type assertions removed.

The compiled dist keeps its layout and its declarations; only the __importStar helper differs.

Node 22.23.4 → 24.23.0 in CI and publishing

  • publish.yml no longer runs npm install -g npm@11: Node 24 ships an npm new enough for trusted publishing.
  • README.md and AGENTS.md name Node 24.
  • engines stays at >=22.18.0, as the sdk still runs on Node 22.

The publish workflow only runs on a release, so the next release is its first run on Node 24.

🤖 Generated with Claude Code

pxrl and others added 2 commits December 3, 2026 09:49
Where two locked versions of a package both satisfy a range, resolve
the range to the higher one. That removes 28 packages from yarn.lock
(550 to 522) and adds none: no version is newer than one already
locked.

@solana-program/token is not imported anywhere, and nothing else
depends on it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
TypeScript 6 no longer includes every @types package, so each project
names the ones it uses, and it wants rootDir stated. The compiled
output keeps its layout; only the __importStar helper differs.

Also needed:
- dotenv 16, whose types TypeScript 6 can resolve.
- A Buffer annotation in one SVM test, and two type assertions that
  are no longer necessary removed.

CI and the publish workflow move from Node 22.23.4 to 24.23.0. The
engines range stays at >=22.18.0, as the sdk still runs on Node 22.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T11:06:40.883909Z 8ee3746 Manual request
ℹ️ 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.

@pxrl
pxrl requested a review from droplet-rl December 3, 2026 09:56

@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: 836ac055d2

ℹ️ 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 .github/workflows/pr.yml Resolved
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
@pxrl

pxrl commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 181b64b738

ℹ️ 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".

@droplet-rl droplet-rl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Requesting changes because yarn test-svm-idl-package fails under TS 6. CI runs it in the "Build TypeScript" job. The cause is test/fixtures/svm-idl-consumer.cjs, which isn't in this diff; details are inline on tsconfig.json.

Verified locally on Node 24.23.0 and TS 6.0.3, using SVM artifacts from the base branch's CI run:

  • tsc dist matches base except for __importStar. The .d.ts files are identical.
  • typecheck-tests and typecheck-svm-scripts give the same results as base. The only errors come from the test-feature IDLs and out/, which I couldn't build here.
  • lint-js, test-svm-gateway-vectors, test-svm-build-guard, generate-constants-json and export-idl pass. Node 24.23.0 accepts --no-experimental-strip-types.
  • The Buffer annotation is needed: without it there are 4 errors.
  • With both fixture fixes applied, test-svm-idl-package passes. I used a stub HubPool artifact for this run.

Not run: the anchor/SVM tests and the forge tests.

Nits:

  • Node 24.23.0 ships npm 11.21.3, so npm install -g npm@11 in publish.yml is now redundant.
  • dotenv 15 and later treat an unquoted # as the start of an inline comment. Only scripts load .env, so the risk is low.

Comment thread tsconfig.json Resolved
The package test writes a tsconfig.json for the generated clients and
then compiles a consumer file beside it. TypeScript 6 wants rootDir
stated for the first, and refuses the second while a tsconfig.json is
present unless told to ignore it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
@pxrl
pxrl requested a review from droplet-rl December 3, 2026 10:09
@pxrl

pxrl commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 92ed4553c3

ℹ️ 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".

droplet-rl
droplet-rl previously approved these changes Dec 3, 2026

@droplet-rl droplet-rl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving. Commit 92ed455 fixes both TS 6 failures in the fixture (rootDir and --ignoreConfig).

Re-verified on 92ed455 with Node 24.23.0, using this PR's CI SVM and EVM artifacts:

  • test-svm-idl-package passes (7/7).
  • typecheck-svm-scripts and lint-js pass. Prettier is clean on the touched files.
  • The CI jobs "Build TypeScript" and "Lint and Check Generated Files" pass. "EVM Tests" and "Test verified SVM build" were still pending when I submitted this.

The earlier nit still applies and is optional: npm install -g npm@11 in publish.yml is redundant now that Node 24.23.0 ships npm 11.21.3.

Base automatically changed from pxrl/trimDeps to master December 3, 2026 10:46
@pxrl
pxrl dismissed droplet-rl’s stale review December 3, 2026 10:46

The base branch was changed.

pxrl and others added 2 commits December 3, 2026 10:47
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
@pxrl
pxrl requested a review from droplet-rl December 3, 2026 11:00
@pxrl

pxrl commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Applied the npm nit in 8ee3746: the npm install -g npm@11 step is removed from publish.yml, since Node 24 ships an npm new enough for trusted publishing. No change for the dotenv note; only local scripts load .env.

@codex review

@droplet-rl droplet-rl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving again. The master merge (bf45f80) applied cleanly, and --remerge-diff shows no conflict resolutions. Dropping npm install -g npm@11 (8ee3746) is safe because Node 24.23.0 ships npm 11.21.3, which is newer than the 11.5.1 that trusted publishing needs.

Re-verified on 8ee3746 with Node 24.23.0, using this run's CI SVM and EVM artifacts:

  • test-svm-idl-package passes 7/7, including the new by-contract-name EVM export from #1618.
  • tsc, typecheck-svm-scripts and lint-js pass.
  • On the previous head (92ed455), every CI job passed. CI on 8ee3746 was still running when I submitted this.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 8ee3746143

ℹ️ 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".

@Reinis-FRP Reinis-FRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verified that the TypeScript 6 build preserves the published declarations and file layout. The package also loads on Node 22.18.0 and resolves the mainnet HubPool address. All seven checks passed on this head, including the verified SVM build. LGTM.


Sent from Reinis Martinsons's Codex CLI Agent using gpt-6.2-astra 🤖

@pxrl
pxrl merged commit 0ecc445 into master Dec 3, 2026
7 checks passed
@pxrl
pxrl deleted the pxrl/bumpTs branch December 3, 2026 11:19
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.

3 participants