Repository navigation
chore: Bump TypeScript to 6.0 and CI to Node 24 - #1620
Conversation
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>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
left a comment
There was a problem hiding this comment.
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:
tscdist matches base except for__importStar. The.d.tsfiles are identical.typecheck-testsandtypecheck-svm-scriptsgive the same results as base. The only errors come from the test-feature IDLs andout/, which I couldn't build here.lint-js,test-svm-gateway-vectors,test-svm-build-guard,generate-constants-jsonandexport-idlpass. Node 24.23.0 accepts--no-experimental-strip-types.- The
Bufferannotation is needed: without it there are 4 errors. - With both fixture fixes applied,
test-svm-idl-packagepasses. 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@11in 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.
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>
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
left a comment
There was a problem hiding this comment.
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-packagepasses (7/7).typecheck-svm-scriptsandlint-jspass. 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.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
droplet-rl
left a comment
There was a problem hiding this comment.
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:
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
left a comment
There was a problem hiding this comment.
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 🤖
Moves the repo to TypeScript 6.0 and CI to Node 24.
TypeScript 5.6 → 6.0
@typespackage, so each project names the ones it uses, andtsconfig.jsonstatesrootDir.dotenv10 → 16, whose types TypeScript 6 can resolve.rootDirfor the generated clients and passes--ignoreConfigwhen compiling its consumer file.Bufferannotation in an SVM test, and two unnecessary type assertions removed.The compiled
distkeeps its layout and its declarations; only the__importStarhelper differs.Node 22.23.4 → 24.23.0 in CI and publishing
publish.ymlno longer runsnpm install -g npm@11: Node 24 ships an npm new enough for trusted publishing.README.mdandAGENTS.mdname Node 24.enginesstays 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