Skip to content

build(deps-dev): bump @codama/renderers-js from 2.7.0 to 2.9.0 - #638

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/codama/renderers-js-2.9.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/codama/renderers-js-2.9.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 12, 2026

Copy link
Copy Markdown
Contributor

Bumps @codama/renderers-js from 2.7.0 to 2.9.0.

Release notes

Sourced from @​codama/renderers-js's releases.

v2.9.0

Minor Changes

  • #292 27d7495 Thanks @​lorisleiva! - Add a fileName name transformer controlling the names of generated files and their re-exports from the barrel files. It defaults to the camelCase name used so far, so nothing changes unless it is overridden, e.g. nameTransformers: { fileName: (name, { kebabCase }) => kebabCase(name) } writes my-account.ts instead of myAccount.ts. Documentation blocks also now split their items on line breaks, so multi-line documentation strings render as several lines rather than a single line containing a line break.

  • #244 9893423 Thanks @​plutohan! - Honor custom variant discriminators when rendering enums. Scalar enums with a custom discriminator on any variant are declared with explicit member values and encoded with useValuesAsDiscriminators, and discriminated unions map their prefix to the custom values, so the generated codecs match the on-chain layout instead of numbering variants from zero.

Patch Changes

  • #288 51d57df Thanks @​lorisleiva! - Derive every name in generated code from the camelCase form of the node names, so that IDLs whose names are not camelCase — e.g. hand-written JSON IDLs using snake_case — render the same code as their camelCase equivalent. Previously, a few names leaked their raw spelling into generated code (struct value defaults, PDA seed values and the programName of identification errors), name conflicts between instruction accounts and arguments were only detected on exact spelling, and errors and constants were sorted by raw name. The keys of the linkOverrides option are now matched regardless of their casing too — e.g. counter_account, counterAccount and CounterAccount all refer to the same node — as the customAccountData, customInstructionData, internalNodes, nonScalarEnums and asyncResolvers options already did.

  • #293 0092eb9 Thanks @​lorisleiva! - Throw CodamaErrors instead of plain errors when an IDL cannot be rendered, so that callers can identify them by code: CODAMA_ERROR__DISCRIMINATOR_FIELD_NOT_FOUND and CODAMA_ERROR__DISCRIMINATOR_FIELD_HAS_NO_DEFAULT_VALUE for field discriminators that do not match a field with a default value (previously a single plain error), and CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE for instruction input default values the renderer does not support yet, i.e. accountFieldValueNode and injectedValueNode. The messages of these errors change accordingly.

v2.8.0

Minor Changes

  • #272 d5a4501 Thanks @​amilz! - Generated account fetchers now accept clients exposing an rpc property — such as Kit clients — alongside raw RPCs — i.e. fetchX, fetchMaybeX, fetchXFromSeeds and fetchMaybeXFromSeeds accept ClientWithRpc<GetAccountInfoApi> whilst fetchAllX and fetchAllMaybeX accept ClientWithRpc<GetMultipleAccountsApi> — so that fetchMint(client, address) works without reaching for client.rpc. The fetchers unwrap such clients to their RPC before calling fetchEncodedAccount and fetchEncodedAccounts from @solana/kit. Passing an RPC directly behaves exactly as before.
Changelog

Sourced from @​codama/renderers-js's changelog.

2.9.0

Minor Changes

  • #292 27d7495 Thanks @​lorisleiva! - Add a fileName name transformer controlling the names of generated files and their re-exports from the barrel files. It defaults to the camelCase name used so far, so nothing changes unless it is overridden, e.g. nameTransformers: { fileName: (name, { kebabCase }) => kebabCase(name) } writes my-account.ts instead of myAccount.ts. Documentation blocks also now split their items on line breaks, so multi-line documentation strings render as several lines rather than a single line containing a line break.

  • #244 9893423 Thanks @​plutohan! - Honor custom variant discriminators when rendering enums. Scalar enums with a custom discriminator on any variant are declared with explicit member values and encoded with useValuesAsDiscriminators, and discriminated unions map their prefix to the custom values, so the generated codecs match the on-chain layout instead of numbering variants from zero.

Patch Changes

  • #288 51d57df Thanks @​lorisleiva! - Derive every name in generated code from the camelCase form of the node names, so that IDLs whose names are not camelCase — e.g. hand-written JSON IDLs using snake_case — render the same code as their camelCase equivalent. Previously, a few names leaked their raw spelling into generated code (struct value defaults, PDA seed values and the programName of identification errors), name conflicts between instruction accounts and arguments were only detected on exact spelling, and errors and constants were sorted by raw name. The keys of the linkOverrides option are now matched regardless of their casing too — e.g. counter_account, counterAccount and CounterAccount all refer to the same node — as the customAccountData, customInstructionData, internalNodes, nonScalarEnums and asyncResolvers options already did.

  • #293 0092eb9 Thanks @​lorisleiva! - Throw CodamaErrors instead of plain errors when an IDL cannot be rendered, so that callers can identify them by code: CODAMA_ERROR__DISCRIMINATOR_FIELD_NOT_FOUND and CODAMA_ERROR__DISCRIMINATOR_FIELD_HAS_NO_DEFAULT_VALUE for field discriminators that do not match a field with a default value (previously a single plain error), and CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE for instruction input default values the renderer does not support yet, i.e. accountFieldValueNode and injectedValueNode. The messages of these errors change accordingly.

2.8.0

Minor Changes

  • #272 d5a4501 Thanks @​amilz! - Generated account fetchers now accept clients exposing an rpc property — such as Kit clients — alongside raw RPCs — i.e. fetchX, fetchMaybeX, fetchXFromSeeds and fetchMaybeXFromSeeds accept ClientWithRpc<GetAccountInfoApi> whilst fetchAllX and fetchAllMaybeX accept ClientWithRpc<GetMultipleAccountsApi> — so that fetchMint(client, address) works without reaching for client.rpc. The fetchers unwrap such clients to their RPC before calling fetchEncodedAccount and fetchEncodedAccounts from @solana/kit. Passing an RPC directly behaves exactly as before.
Commits
  • 5167395 [2.x] Release package (#289)
  • 9893423 Honor custom variant discriminators when rendering enums (#244)
  • 0092eb9 Throw CodamaErrors for IDLs the renderer cannot render (#293)
  • 27d7495 Add a fileName name transformer and split documentation on line breaks (#292)
  • 7d52a70 Factor the type manifest visitor behind rendering helpers (#291)
  • 4907e11 Add a renderer-owned view of instruction inputs (#290)
  • 51d57df Derive generated names from the camelCase form of node names (#288)
  • 0e4e3f2 Bump vitest from 5.0.5 to 5.1.0 (#287)
  • 8bd2591 Bump semver from 7.8.5 to 7.8.6 (#286)
  • 4c9f988 Bump @​solana/kit-plugin-litesvm from 0.22.0 to 0.23.0 (#285)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@codama/renderers-js](https://github.com/codama-idl/renderers-js) from 2.7.0 to 2.9.0.
- [Release notes](https://github.com/codama-idl/renderers-js/releases)
- [Changelog](https://github.com/codama-idl/renderers-js/blob/2.x/CHANGELOG.md)
- [Commits](codama-idl/renderers-js@v2.7.0...v2.9.0)

---
updated-dependencies:
- dependency-name: "@codama/renderers-js"
  dependency-version: 2.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 12, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) November 12, 2026 09:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants