Skip to content

[1.x] Publish packages - #1119

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

[1.x] Publish packages#1119
codama-releases[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@codama-releases

@codama-releases codama-releases Bot commented Aug 27, 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-address-resolution@1.0.0

Major Changes

  • #1100 b81b87d Thanks @lorisleiva! - Promote the package to its first stable major. No API changes are included; this aligns every published package in the monorepo with the 1.x line of the Codama standard ahead of the v2 work.

Patch Changes

  • #1029 b4c0206 Thanks @plutohan! - Accept bare empty-variant names and indices as enum codec inputs, resolving them to the { __kind } shape, and match display labels against the discriminated union decoding of scalar enums.
  • Updated dependencies [b4c0206, abefbeb, b418a9e]:
    • @codama/dynamic-codecs@1.3.0
    • codama@1.11.0
    • @codama/errors@1.11.0

@codama/dynamic-client@1.0.0

Major Changes

  • #1100 b81b87d Thanks @lorisleiva! - Promote the package to its first stable major. No API changes are included; this aligns every published package in the monorepo with the 1.x line of the Codama standard ahead of the v2 work.

Patch Changes

  • Updated dependencies [b4c0206, abefbeb, b4c0206, b418a9e, b81b87d]:
    • @codama/dynamic-codecs@1.3.0
    • codama@1.11.0
    • @codama/errors@1.11.0
    • @codama/dynamic-address-resolution@1.0.0
    • @codama/dynamic-instructions@1.0.0

@codama/dynamic-instructions@1.0.0

Major Changes

  • #1100 b81b87d Thanks @lorisleiva! - Promote the package to its first stable major. No API changes are included; this aligns every published package in the monorepo with the 1.x line of the Codama standard ahead of the v2 work.

Patch Changes

  • #1029 b4c0206 Thanks @plutohan! - Accept bare empty-variant names and indices as enum codec inputs, resolving them to the { __kind } shape, and match display labels against the discriminated union decoding of scalar enums.
  • Updated dependencies [b4c0206, abefbeb, b4c0206, b418a9e, b81b87d]:
    • @codama/dynamic-codecs@1.3.0
    • codama@1.11.0
    • @codama/errors@1.11.0
    • @codama/dynamic-address-resolution@1.0.0
    • @codama/dynamic-parsers@1.4.2

@codama/fragments@1.0.0

Major Changes

  • #1100 b81b87d Thanks @lorisleiva! - Promote the package to its first stable major. No API changes are included; this aligns every published package in the monorepo with the 1.x line of the Codama standard ahead of the v2 work.

Patch Changes

@codama/upgrade@1.0.0

Major Changes

  • #1095 b418a9e Thanks @lorisleiva! - Initial release of @codama/upgrade. It upgrades Codama IDLs of any supported major version to the latest major of the standard via upgrade(rootNode), upgradeFromJson(json), and the upgradeToLatestVisitor() preprocessing visitor (also the package's default export, so "@codama/upgrade" alone works as a CLI before visitor). The frozen v1 node types are exposed under the type-only v1 namespace. While the latest spec major is 1, upgrading a 1.x IDL is an identity transform plus a restamp to the latest spec version.

Patch Changes

@codama/dynamic-codecs@1.3.0

Minor Changes

  • #1029 b4c0206 Thanks @plutohan! - Breaking: Scalar enums (enums whose variants are all empty) are now encoded and decoded as discriminated unions, consistent with data enums.

    Case Before After
    Decoding a scalar variant 2 { __kind: 'Down' }
    Encoding a scalar variant 2 or 'down' { __kind: 'Down' }
    enumValueNode resolution 2 { __kind: 'Down' }

    Wire bytes are unchanged; only the JavaScript value shape changes.

Patch Changes

@codama/errors@1.11.0

Minor Changes

  • #1095 b418a9e Thanks @lorisleiva! - Add the CODAMA_ERROR__UNSUPPORTED_VERSION error code for Codama IDLs that predate the 1.0.0 specification. The CODAMA_ERROR__VERSION_MISMATCH message now points older versions at the @codama/upgrade package and newer versions at updating their Codama dependencies.

Patch Changes

  • #1094 abefbeb Thanks @lorisleiva! - Fix validateCodamaVersion to compare the document's version against the Codama spec version (CODAMA_VERSION) instead of the npm package version, which is an unrelated namespace and caused false mismatches whenever the two drifted apart. The function now accepts any string and narrows it to CodamaVersion on success, rejects unparsable versions, and no longer special-cases 0.x versions. The CODAMA_ERROR__VERSION_MISMATCH message is reworded accordingly.
  • Updated dependencies [fa4a453, 55b9ede, dabfe42]:
    • @codama/node-types@1.11.0

@codama/visitors@1.11.0

Minor Changes

  • #1096 362f618 Thanks @lorisleiva! - Add checkCodamaVersionVisitor. It checks the version of the visited Codama IDL against the Codama spec version supported by the installed packages, throwing a CODAMA_ERROR__VERSION_MISMATCH error when the majors differ. It is mainly useful at IDL-ingestion boundaries that bypass createFromRoot, such as a before visitor in a Codama CLI config.

Patch Changes

@codama/cli@1.6.3

Patch Changes

@codama/dynamic-parsers@1.4.2

Patch Changes

codama@1.11.0

Patch Changes

  • #1094 abefbeb Thanks @lorisleiva! - Fix validateCodamaVersion to compare the document's version against the Codama spec version (CODAMA_VERSION) instead of the npm package version, which is an unrelated namespace and caused false mismatches whenever the two drifted apart. The function now accepts any string and narrows it to CodamaVersion on success, rejects unparsable versions, and no longer special-cases 0.x versions. The CODAMA_ERROR__VERSION_MISMATCH message is reworded accordingly.
  • Updated dependencies [fa4a453, abefbeb, 362f618, 55b9ede, dabfe42, b418a9e]:
    • @codama/nodes@1.11.0
    • @codama/errors@1.11.0
    • @codama/visitors@1.11.0
    • @codama/cli@1.6.3
    • @codama/validators@1.11.0

@codama/node-types@1.11.0

Patch Changes

  • #1090 fa4a453 Thanks @lorisleiva! - Update the generated node types and constructors to @codama/spec@1.9.1. Generated docblocks now carry the enriched spec documentation (strategy walkthroughs with buffer diagrams for the offset type nodes, serialisation caveats, and worked examples), the CodamaVersion type moves from '1.8.0' to '1.9.1', and new documents created via rootNode() are stamped with version 1.9.1.

  • #1093 55b9ede Thanks @lorisleiva! - Widen the CodamaVersion type from the exact pinned literal ('1.9.1') to a major-pinned template literal (1.${number}.${number}), so any document of the current spec major type-checks as a RootNode rather than only documents carrying the exact pinned version. Add a getCodamaVersionMajor(version) helper to @codama/nodes that defensively extracts the major from an arbitrary version string, returning null when it cannot be parsed.

  • #1099 dabfe42 Thanks @lorisleiva! - Bump the generated CODAMA_VERSION to 1.9.2 and refresh the generated documentation from the latest spec.

@codama/nodes@1.11.0

Patch Changes

  • #1090 fa4a453 Thanks @lorisleiva! - Update the generated node types and constructors to @codama/spec@1.9.1. Generated docblocks now carry the enriched spec documentation (strategy walkthroughs with buffer diagrams for the offset type nodes, serialisation caveats, and worked examples), the CodamaVersion type moves from '1.8.0' to '1.9.1', and new documents created via rootNode() are stamped with version 1.9.1.

  • #1093 55b9ede Thanks @lorisleiva! - Widen the CodamaVersion type from the exact pinned literal ('1.9.1') to a major-pinned template literal (1.${number}.${number}), so any document of the current spec major type-checks as a RootNode rather than only documents carrying the exact pinned version. Add a getCodamaVersionMajor(version) helper to @codama/nodes that defensively extracts the major from an arbitrary version string, returning null when it cannot be parsed.

  • #1099 dabfe42 Thanks @lorisleiva! - Bump the generated CODAMA_VERSION to 1.9.2 and refresh the generated documentation from the latest spec.

  • Updated dependencies [fa4a453, abefbeb, 55b9ede, dabfe42, b418a9e]:

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

@codama/nodes-from-anchor@1.5.6

Patch Changes

  • #1126 9a19abf Thanks @lorisleiva! - Fix Vec<u8> instruction arguments used as PDA seeds to derive from their raw bytes instead of the Borsh size-prefixed encoding. Anchor derives byte-array seeds from the unprefixed bytes, so the generated seed type previously produced a different PDA than the on-chain program for any program using a Vec<u8> seed.

  • #1127 3e5388a Thanks @lorisleiva! - Fix variable string and bytes PDA seeds from legacy Anchor IDLs to derive from their raw bytes instead of their Borsh size-prefixed encoding, matching the existing behaviour of constant seeds.

  • Updated dependencies [fa4a453, abefbeb, 362f618, 55b9ede, dabfe42, b418a9e]:

    • @codama/nodes@1.11.0
    • @codama/errors@1.11.0
    • @codama/visitors@1.11.0

@codama/renderers-core@1.4.1

Patch Changes

@codama/validators@1.11.0

Patch Changes

@codama/visitors-core@1.11.0

Patch Changes

@codama-releases
codama-releases Bot force-pushed the changeset-release/main branch from 669f917 to 14585e3 Compare August 27, 2026 15:41
lorisleiva added a commit that referenced this pull request Aug 28, 2026
This PR adopts [codama-idl/release-tools](https://github.com/codama-idl/release-tools) `v1.0.0` per [RELEASING.md](https://github.com/codama-idl/spec/blob/HEAD/RELEASING.md): the `postversion` guard chains after `changeset version` (blocking illegal major crossings and same-major-invariant violations in release PRs), and the `cut`/`promote` dispatch wrappers call the reusable workflows at `@v1`. Note: the guard will pass on the regenerated release PR because `changeset version` takes all public packages to major 1 (#1100's promotions); the current unversioned tree intentionally fails it until #1119 merges.
lorisleiva added a commit that referenced this pull request Aug 28, 2026
This PR adopts [codama-idl/release-tools](https://github.com/codama-idl/release-tools) `v1.0.0` per [RELEASING.md](https://github.com/codama-idl/spec/blob/HEAD/RELEASING.md): the `postversion` guard chains after `changeset version` (blocking illegal major crossings and same-major-invariant violations in release PRs), and the `cut`/`promote` dispatch wrappers call the reusable workflows at `@v1`. Note: the guard will pass on the regenerated release PR because `changeset version` takes all public packages to major 1 (#1100's promotions); the current unversioned tree intentionally fails it until #1119 merges.
@codama-releases
codama-releases Bot force-pushed the changeset-release/main branch 3 times, most recently from d433a4a to 76b2c8e Compare August 29, 2026 09:57
@codama-releases
codama-releases Bot force-pushed the changeset-release/main branch from 76b2c8e to 46ef729 Compare August 29, 2026 10:34
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