Skip to content

Bump Codama renderer and adopt @solana/kit 6.10#163

Merged
lorisleiva merged 1 commit into
mainfrom
bump-codama-kit-6-10
Jun 17, 2026
Merged

Bump Codama renderer and adopt @solana/kit 6.10#163
lorisleiva merged 1 commit into
mainfrom
bump-codama-kit-6-10

Conversation

@lorisleiva

Copy link
Copy Markdown
Member

This PR bumps the Codama renderer and regenerates the JS client so it stays compatible with @solana/kit 6.10. The generated program plugins now return the homomorphic ExtendedClient type (introduced in kit 6.10) instead of the previous Omit<T, ...> intersection, which kit 6.10's extendClient is no longer assignable to, and the client's kit floor is raised to ^6.10.0.

The hand-written tokenProgram() plugin is also updated to compose the generated plugin via extendClient rather than an object spread. Under kit 6.10's homomorphic ExtendedClient type, the previous spread caused the hand-written batch override to merge with the generated batch signature into a two-overload type; composing with extendClient cleanly replaces the token namespace so batch keeps its single intended signature and nested batches remain a compile-time error. This lands ahead of the kit 6.10 dependency bump so the upgrade is seamless when it arrives.

This bumps the Codama renderer and regenerates the JS client so it stays compatible with @solana/kit 6.10. The generated program plugins now return the homomorphic `ExtendedClient` type (introduced in kit 6.10) instead of the previous `Omit<T, ...>` intersection, and the client's kit floor is raised to ^6.10.0.

The hand-written `tokenProgram()` plugin is updated to compose the generated plugin via `extendClient` instead of an object spread. Under kit 6.10's homomorphic `ExtendedClient` type, the previous spread caused the hand-written `batch` instruction override to merge with the generated `batch` signature into a two-overload type; composing with `extendClient` cleanly replaces the `token` namespace so `batch` keeps its single intended signature (and nested batches remain a compile error).
@lorisleiva lorisleiva merged commit 055ce69 into main Jun 17, 2026
55 of 57 checks passed
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.

1 participant