Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/calm-moons-carry.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/eighty-crabs-decode.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fancy-shrimps-exist.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/open-banks-wash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/plain-taxis-transform.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-doodles-carry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/social-bats-travel.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/sweet-pianos-glow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wacky-hairs-bathe.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/wise-areas-see.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/cli",
"version": "1.6.2",
"version": "1.6.3",
"description": "A CLI for setting up and managing Codama IDLs",
"keywords": [
"cli",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-address-resolution/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/dynamic-address-resolution",
"version": "0.3.3",
"version": "1.0.0",
"description": "Address resolution functionality for instruction accounts in Codama IDLs",
"keywords": [
"address-resolution",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/dynamic-client",
"version": "0.1.6",
"version": "1.0.0",
"description": "Client to dynamically interact with Solana programs using Codama IDLs",
"keywords": [
"dynamic client",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-codecs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/dynamic-codecs",
"version": "1.2.6",
"version": "1.3.0",
"description": "Get codecs on demand for Codama IDLs",
"keywords": [
"codecs",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-instructions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/dynamic-instructions",
"version": "0.4.1",
"version": "1.0.0",
"description": "Runtime instruction creation for Codama IDLs",
"keywords": [
"framework",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-parsers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/dynamic-parsers",
"version": "1.4.1",
"version": "1.4.2",
"description": "Helpers to dynamically identify and parse accounts and instructions",
"keywords": [
"framework",
Expand Down
12 changes: 12 additions & 0 deletions packages/errors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @codama/errors

## 1.11.0

### Minor Changes

- [#1095](https://github.com/codama-idl/codama/pull/1095) [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e) Thanks [@lorisleiva](https://github.com/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](https://github.com/codama-idl/codama/pull/1094) [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040) Thanks [@lorisleiva](https://github.com/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`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835)]:
- @codama/node-types@1.11.0

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/errors",
"version": "1.10.2",
"version": "1.11.0",
"description": "Error management for Codama",
"keywords": [
"framework",
Expand Down
2 changes: 1 addition & 1 deletion packages/fragments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/fragments",
"version": "0.1.5",
"version": "1.0.0",
"description": "Composable code-generation fragments and language-aware import maps for Codama renderers",
"keywords": [
"codama",
Expand Down
12 changes: 12 additions & 0 deletions packages/library/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# codama

## 1.11.0

### Patch Changes

- [#1094](https://github.com/codama-idl/codama/pull/1094) [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040) Thanks [@lorisleiva](https://github.com/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`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`362f618`](https://github.com/codama-idl/codama/commit/362f618127d6642b3ec09d3016cb801629b2aa53), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @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

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codama",
"version": "1.10.2",
"version": "1.11.0",
"description": "A Solana framework for building standardised programs",
"keywords": [
"code generation",
Expand Down
10 changes: 10 additions & 0 deletions packages/node-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @codama/node-types

## 1.11.0

### Patch Changes

- [#1090](https://github.com/codama-idl/codama/pull/1090) [`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6) Thanks [@lorisleiva](https://github.com/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](https://github.com/codama-idl/codama/pull/1093) [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28) Thanks [@lorisleiva](https://github.com/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](https://github.com/codama-idl/codama/pull/1099) [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bump the generated `CODAMA_VERSION` to 1.9.2 and refresh the generated documentation from the latest spec.

## 1.10.2

## 1.10.1
Expand Down
2 changes: 1 addition & 1 deletion packages/node-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/node-types",
"version": "1.10.2",
"version": "1.11.0",
"description": "Node specifications for the Codama standard",
"keywords": [
"framework",
Expand Down
9 changes: 9 additions & 0 deletions packages/nodes-from-anchor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @codama/nodes-from-anchor

## 1.5.6

### Patch Changes

- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`362f618`](https://github.com/codama-idl/codama/commit/362f618127d6642b3ec09d3016cb801629b2aa53), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @codama/nodes@1.11.0
- @codama/errors@1.11.0
- @codama/visitors@1.11.0

## 1.5.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-from-anchor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/nodes-from-anchor",
"version": "1.5.5",
"version": "1.5.6",
"description": "Node specifications and helpers for the Codama standard",
"keywords": [
"framework",
Expand Down
13 changes: 13 additions & 0 deletions packages/nodes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @codama/nodes

## 1.11.0

### Patch Changes

- [#1090](https://github.com/codama-idl/codama/pull/1090) [`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6) Thanks [@lorisleiva](https://github.com/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](https://github.com/codama-idl/codama/pull/1093) [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28) Thanks [@lorisleiva](https://github.com/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](https://github.com/codama-idl/codama/pull/1099) [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bump the generated `CODAMA_VERSION` to 1.9.2 and refresh the generated documentation from the latest spec.
- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @codama/node-types@1.11.0
- @codama/errors@1.11.0

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/nodes",
"version": "1.10.2",
"version": "1.11.0",
"description": "Node specifications and helpers for the Codama standard",
"keywords": [
"framework",
Expand Down
10 changes: 10 additions & 0 deletions packages/renderers-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @codama/renderers-core

## 1.4.1

### Patch Changes

- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e), [`b81b87d`](https://github.com/codama-idl/codama/commit/b81b87d32f021ed12f96b9866da119acbd77c10d)]:
- @codama/nodes@1.11.0
- @codama/errors@1.11.0
- @codama/fragments@1.0.0
- @codama/visitors-core@1.11.0

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/renderers-core",
"version": "1.4.0",
"version": "1.4.1",
"description": "Core types and helpers for Codama renderers to use",
"keywords": [
"framework",
Expand Down
2 changes: 1 addition & 1 deletion packages/upgrade/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/upgrade",
"version": "0.0.0",
"version": "1.0.0",
"description": "Upgrade Codama IDLs to the latest major version of the standard",
"keywords": [
"framework",
Expand Down
9 changes: 9 additions & 0 deletions packages/validators/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @codama/validators

## 1.11.0

### Patch Changes

- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @codama/nodes@1.11.0
- @codama/errors@1.11.0
- @codama/visitors-core@1.11.0

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/validators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/validators",
"version": "1.10.2",
"version": "1.11.0",
"description": "Validator visitors for the Codama framework",
"keywords": [
"framework",
Expand Down
8 changes: 8 additions & 0 deletions packages/visitors-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @codama/visitors-core

## 1.11.0

### Patch Changes

- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @codama/nodes@1.11.0
- @codama/errors@1.11.0

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/visitors-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/visitors-core",
"version": "1.10.2",
"version": "1.11.0",
"description": "Core visitors for the Codama framework",
"keywords": [
"framework",
Expand Down
13 changes: 13 additions & 0 deletions packages/visitors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @codama/visitors

## 1.11.0

### Minor Changes

- [#1096](https://github.com/codama-idl/codama/pull/1096) [`362f618`](https://github.com/codama-idl/codama/commit/362f618127d6642b3ec09d3016cb801629b2aa53) Thanks [@lorisleiva](https://github.com/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

- Updated dependencies [[`fa4a453`](https://github.com/codama-idl/codama/commit/fa4a45315028a9cb125ebaf31695df82a6ffc1c6), [`abefbeb`](https://github.com/codama-idl/codama/commit/abefbeb3ae369b01a46794ca3824a23391548040), [`55b9ede`](https://github.com/codama-idl/codama/commit/55b9edef01767a29d7ebeeeaed3bd75610150e28), [`dabfe42`](https://github.com/codama-idl/codama/commit/dabfe42211380aa16109058142dec6b21ced3835), [`b418a9e`](https://github.com/codama-idl/codama/commit/b418a9e19b0b15a3dc1c79edb246d78694d6310e)]:
- @codama/nodes@1.11.0
- @codama/errors@1.11.0
- @codama/visitors-core@1.11.0

## 1.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/visitors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codama/visitors",
"version": "1.10.2",
"version": "1.11.0",
"description": "All visitors for the Codama framework",
"keywords": [
"framework",
Expand Down