Skip to content

[1.x] Publish packages - #1022

Merged
lorisleiva merged 1 commit into
mainfrom
changeset-release/main
Jul 26, 2026
Merged

[1.x] Publish packages#1022
lorisleiva merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@codama/cli@1.6.0

Minor Changes

  • #1018 d3e7f01 Thanks @plutohan! - Add an additionalIdls config option to generate clients for multiple programs in an Anchor workspace from a single codama.json

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/visitors@1.10.0
    • @codama/visitors-core@1.10.0

@codama/node-types@1.10.0

Minor Changes

  • #1025 add9be2 Thanks @lorisleiva! - Omit empty array attributes from nodes, and default absent arrays to [] on read.

    Every node array attribute — whether previously required (e.g. programNode.accounts, instructionNode.arguments, structTypeNode.fields) or optional (e.g. instructionNode.discriminators) — is now omitted from the node when empty, and defaults to [] when absent. An absent array and an empty array are semantically identical, so this keeps encoded IDLs small (they are often uploaded on-chain) and makes adding or omitting an array attribute non-breaking. Reading remains backwards-compatible: IDLs that still serialise empty arrays continue to parse, and every visitor and accessor normalises an absent array to [].

    Breaking type change. While runtime reads stay backwards-compatible, this is a breaking change at the type level for external consumers such as renderers and community packages. Array attributes are now typed as optional on the node interfaces (e.g. ProgramNode.accounts is now readonly accounts?: AccountNode[]), so any code that reads an array attribute without guarding — e.g. program.accounts.map(…) — must now coalesce with ?? [] ((program.accounts ?? []).map(…)). Type-parameter constraints also widen from Array<T> to Array<T> | undefined, so indexing into these types (e.g. InstructionNode['arguments'][number]) must be rewritten as NonNullable<InstructionNode['arguments']>[number]. Consumers should expect compile errors on the first unguarded array read after upgrading and add ?? [] guards accordingly.

@codama/nodes@1.10.0

Minor Changes

  • #1025 add9be2 Thanks @lorisleiva! - Omit empty array attributes from nodes, and default absent arrays to [] on read.

    Every node array attribute — whether previously required (e.g. programNode.accounts, instructionNode.arguments, structTypeNode.fields) or optional (e.g. instructionNode.discriminators) — is now omitted from the node when empty, and defaults to [] when absent. An absent array and an empty array are semantically identical, so this keeps encoded IDLs small (they are often uploaded on-chain) and makes adding or omitting an array attribute non-breaking. Reading remains backwards-compatible: IDLs that still serialise empty arrays continue to parse, and every visitor and accessor normalises an absent array to [].

    Breaking type change. While runtime reads stay backwards-compatible, this is a breaking change at the type level for external consumers such as renderers and community packages. Array attributes are now typed as optional on the node interfaces (e.g. ProgramNode.accounts is now readonly accounts?: AccountNode[]), so any code that reads an array attribute without guarding — e.g. program.accounts.map(…) — must now coalesce with ?? [] ((program.accounts ?? []).map(…)). Type-parameter constraints also widen from Array<T> to Array<T> | undefined, so indexing into these types (e.g. InstructionNode['arguments'][number]) must be rewritten as NonNullable<InstructionNode['arguments']>[number]. Consumers should expect compile errors on the first unguarded array read after upgrading and add ?? [] guards accordingly.

  • #1023 61ac0a6 Thanks @lorisleiva! - Integrate @codama/spec@1.8.0, adding the pluginNode to the node meta-model. A pluginNode attaches named, plugin-specific data to a node: it carries a name that uniquely identifies the plugin and an optional opaque payload. The payload is typed by the new json type expression, which renders as unknown in TypeScript. instructionNode gains an optional plugins field holding an array of pluginNode. All changes are additive and optional.

Patch Changes

  • Updated dependencies [add9be2]:
    • @codama/node-types@1.10.0
    • @codama/errors@1.10.0

@codama/dynamic-address-resolution@0.3.1

Patch Changes

  • Updated dependencies []:
    • @codama/errors@1.10.0
    • @codama/dynamic-codecs@1.2.4
    • codama@1.10.0

@codama/dynamic-client@0.1.4

Patch Changes

  • Updated dependencies []:
    • @codama/errors@1.10.0
    • @codama/dynamic-codecs@1.2.4
    • codama@1.10.0
    • @codama/dynamic-address-resolution@0.3.1
    • @codama/dynamic-instructions@0.3.1

@codama/dynamic-codecs@1.2.4

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/visitors-core@1.10.0

@codama/dynamic-instructions@0.3.1

Patch Changes

  • Updated dependencies []:
    • @codama/errors@1.10.0
    • @codama/dynamic-codecs@1.2.4
    • @codama/dynamic-parsers@1.3.1
    • codama@1.10.0
    • @codama/dynamic-address-resolution@0.3.1

@codama/dynamic-parsers@1.3.1

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/dynamic-codecs@1.2.4
    • @codama/visitors-core@1.10.0

@codama/errors@1.10.0

Patch Changes

  • Updated dependencies [add9be2]:
    • @codama/node-types@1.10.0

@codama/fragments@0.1.3

Patch Changes

  • Updated dependencies []:
    • @codama/errors@1.10.0

codama@1.10.0

Patch Changes

  • Updated dependencies [add9be2, 62af2ed, 61ac0a6, d3e7f01]:
    • @codama/nodes@1.10.0
    • @codama/validators@1.10.0
    • @codama/cli@1.6.0
    • @codama/errors@1.10.0
    • @codama/visitors@1.10.0

@codama/nodes-from-anchor@1.5.3

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/visitors@1.10.0

@codama/renderers-core@1.3.11

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/visitors-core@1.10.0
    • @codama/fragments@0.1.3

@codama/validators@1.10.0

Patch Changes

  • #1017 62af2ed Thanks @cds-amal! - Fix getValidationItemsVisitor throwing Expected node of kind [definedTypeLinkNode] on any nested definedTypeLinkNode (a struct field, argument, array element, or PDA seed), and recording ValidationItem paths that omitted the node itself. The visitor now composes recordNodeStackVisitor outermost, like every other visitor, so the current node is on the stack when validation runs.

  • Updated dependencies [add9be2, 61ac0a6]:

    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/visitors-core@1.10.0

@codama/visitors@1.10.0

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0
    • @codama/visitors-core@1.10.0

@codama/visitors-core@1.10.0

Patch Changes

  • Updated dependencies [add9be2, 61ac0a6]:
    • @codama/nodes@1.10.0
    • @codama/errors@1.10.0

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 0f1bfd6 to 554e210 Compare July 20, 2026 19:39
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 554e210 to 81622c2 Compare July 23, 2026 17:26
@lorisleiva
lorisleiva merged commit 21368bf into main Jul 26, 2026
4 checks passed
@lorisleiva
lorisleiva deleted the changeset-release/main branch July 26, 2026 11:06
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