Skip to content

[1.x] Publish packages - #32

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

[1.x] Publish packages#32
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

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

Copy link
Copy Markdown

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/dynamic-instructions@0.4.0

Minor Changes

  • #1028 a6a9135 Thanks @lorisleiva! - Add an offline display dictionary so a renderer (e.g. a hardware wallet) can resolve an instruction's clear-signing display with no network access. DisplayDictionary bundles a DisplayAccountMap (address to EncodedAccount, the offline counterpart of the display layer's fetchAccount; only existing accounts are stored, so a missing key means "no data") and a generic DisplayNamedMap (address to name — a .sol domain, token symbol, program label, alias…). getRequiredAccountsForDisplay statically computes which accounts a display would read, getDisplayAccountMap batch-fetches them via a FetchAccountsFn, and getDisplayDictionaryCodec (with per-map codecs, each split into …Encoder/…Decoder) serialises the bundle. A filler for the named map is not provided: its data comes from sources Codama has no opinion on.

    The offline planner and the whenInjected skip rule now resolve the provide/inject graph through a single shared walk (resolveInjectionTarget): both follow an injection's fallback when no provider supplies its key, so a display value reachable only through a fallback is fetched (and hides its member) as it would be at runtime. The walk is cycle-safe, so a self-referential provider resolves to "no value" instead of overflowing the stack. resolveInjectedValue (the display-rendering path) now performs injection selection through the same shared walk, so it too is cycle-safe rather than overflowing on a cyclic provider graph.

Patch Changes

  • #1064 c6a210c Thanks @lorisleiva! - Mark unresolved amount scales instead of degrading silently. When an amountNumberDisplayNode is present but its decimals cannot be resolved (e.g. no fetchAccount for an account-injected scale), the field list now renders the value explicitly marked — 1500000 (raw) — and any interpolated sentence referencing it returns null, falling back to the field list. Previously the bare integer rendered unmarked in both, reading exactly like a scaled amount. Amount displays authored without a decimals attribute are unaffected: they remain valid unscaled amounts.

  • #1066 8e89159 Thanks @lorisleiva! - Render array values properly in instruction displays. Address arrays expand into one field per element in the fallback list (New Addresses [#1](https://github.com/codama-idl/codama/issues/1), New Addresses [#2](https://github.com/codama-idl/codama/issues/2), …), matching how named and remaining accounts each get their own individually-verifiable line. All other arrays render as a single comma-joined field whose elements go through their item type's presentation (1.5 SOL, 0.5 SOL instead of a JSON blob), with degraded amount elements marked inline and flagging the whole array. The (raw) marker for unresolved amount scales now lives in the formatted text itself.

  • #1065 75eb574 Thanks @lorisleiva! - Render remaining accounts in the fallback display. Trailing account metas now appear in the field list under their group's display label (or a label derived from the group's value name), numbered when a group holds several accounts, and honouring the group's skip strategy. When an instruction declares several remaining-accounts groups, each non-final group consumes the run of metas matching its isSigner flag and the final group takes the rest.

  • #1063 fe893ca Thanks @lorisleiva! - Match enum variants from every decoded shape when displaying instructions. Scalar enums decoded as numeric discriminators (explicit or positional) now render their variant label instead of the bare index — e.g. Authority Type: Freeze Account instead of Authority Type: 1 — and { __kind } values match variants regardless of casing.

  • #1062 41282d5 Thanks @lorisleiva! - Unwrap Option values when displaying instructions. Display metadata now applies to the value inside optionTypeNode, zeroableOptionTypeNode and remainderOptionTypeNode wrappers — e.g. a COption<u64> lamports amount renders as 1.5 SOL instead of {"__option":"Some","value":"1500000000"} — and absent (None) values render as none. Flattened option-wrapped structs flatten their inner fields when present and render a single none field when absent.

  • Updated dependencies [75eb574, d9e7d03, df1792c]:

    • @codama/dynamic-parsers@1.4.0
    • @codama/dynamic-codecs@1.2.5
    • codama@1.10.1
    • @codama/dynamic-address-resolution@0.3.2
    • @codama/errors@1.10.1

@codama/dynamic-parsers@1.4.0

Minor Changes

  • #1065 75eb574 Thanks @lorisleiva! - Capture trailing account metas on parsed instructions. ParsedInstruction gains an optional remainingAccounts attribute carrying the concrete metas beyond the instruction's named accounts (e.g. multisig signers), which parseInstruction now always populates.

  • #1024 df1792c Thanks @plutohan! - Search additional programs when identifying and parsing data. parseInstruction now uses the instruction's programAddress to restrict the search to the matching program, and identifies nothing when no program of the root matches that address. All identify* and parse* functions accept an optional programAddress option.

Patch Changes

  • #1067 d9e7d03 Thanks @lorisleiva! - Return undefined instead of throwing when identified data cannot be decoded. A discriminator can match while the full data does not conform (e.g. truncated or corrupt bytes); the parse* functions now treat that as "not parsable", mirroring the undefined returned when nothing is identified.

  • Updated dependencies [f69845c]:

    • @codama/nodes@1.10.1
    • @codama/dynamic-codecs@1.2.5
    • @codama/visitors-core@1.10.1
    • @codama/errors@1.10.1

@codama/cli@1.6.1

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/visitors@1.10.1
    • @codama/visitors-core@1.10.1

@codama/dynamic-address-resolution@0.3.2

Patch Changes

  • Updated dependencies []:
    • @codama/dynamic-codecs@1.2.5
    • codama@1.10.1
    • @codama/errors@1.10.1

@codama/dynamic-client@0.1.5

Patch Changes

  • Updated dependencies [a6a9135, c6a210c, 8e89159, 75eb574, fe893ca, 41282d5]:
    • @codama/dynamic-instructions@0.4.0
    • @codama/dynamic-codecs@1.2.5
    • codama@1.10.1
    • @codama/dynamic-address-resolution@0.3.2
    • @codama/errors@1.10.1

@codama/dynamic-codecs@1.2.5

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/visitors-core@1.10.1
    • @codama/errors@1.10.1

@codama/errors@1.10.1

Patch Changes

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

@codama/fragments@0.1.4

Patch Changes

  • #1030 f69845c Thanks @ChiefWoods! - fix(nodes): uppercased snake case not correctly converted to snake case

  • Updated dependencies []:

    • @codama/errors@1.10.1

codama@1.10.1

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/cli@1.6.1
    • @codama/validators@1.10.1
    • @codama/visitors@1.10.1
    • @codama/errors@1.10.1

@codama/nodes@1.10.1

Patch Changes

  • #1030 f69845c Thanks @ChiefWoods! - fix(nodes): uppercased snake case not correctly converted to snake case

  • Updated dependencies []:

    • @codama/errors@1.10.1
    • @codama/node-types@1.10.1

@codama/nodes-from-anchor@1.5.4

Patch Changes

  • #1030 f69845c Thanks @ChiefWoods! - fix(nodes): uppercased snake case not correctly converted to snake case

  • Updated dependencies [f69845c]:

    • @codama/nodes@1.10.1
    • @codama/visitors@1.10.1
    • @codama/errors@1.10.1

@codama/renderers-core@1.3.12

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/fragments@0.1.4
    • @codama/nodes@1.10.1
    • @codama/visitors-core@1.10.1
    • @codama/errors@1.10.1

@codama/validators@1.10.1

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/visitors-core@1.10.1
    • @codama/errors@1.10.1

@codama/visitors@1.10.1

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/visitors-core@1.10.1
    • @codama/errors@1.10.1

@codama/visitors-core@1.10.1

Patch Changes

  • Updated dependencies [f69845c]:
    • @codama/nodes@1.10.1
    • @codama/errors@1.10.1

@codama/node-types@1.10.1

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 11e8bc5 to 5f358ba Compare August 7, 2026 09:36
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 5f358ba to 8d51065 Compare August 13, 2026 12:53
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.

0 participants