Skip to content

Integrate @codama/spec@1.7.0#1013

Draft
lorisleiva wants to merge 1 commit into
mainfrom
loris/integrate-spec-1.7.0
Draft

Integrate @codama/spec@1.7.0#1013
lorisleiva wants to merge 1 commit into
mainfrom
loris/integrate-spec-1.7.0

Conversation

@lorisleiva

Copy link
Copy Markdown
Member

Integrates @codama/spec@1.7.0-rc.0 into the TS codegen pipeline and regenerates @codama/node-types, @codama/nodes, and @codama/visitors-core with the new presentation layer (display nodes, provide/inject, account-field selector).

Held against main for CI and review but not merged until the spec stabilises at 1.7.0 — letting us bump to later RCs here as the spec evolves. No changeset is included for the same reason.

Key changes:

  • anyNode TypeExpr: both typeExpr.ts fragments render it as the top-level Node type; the visitor generator visits-and-asserts it against REGISTERED_NODE_KINDS.
  • Config maps (CATEGORY_DIRECTORIES, GENERIC_PARAM_ORDER, walk-order maps, NODE_CONFIGS) absorb the new display/provides attributes; a paramName-only AttributeOverride variant renames providedNode.node so it doesn't shadow the visitor's node parameter.
  • Input-type generator now widens every stringIdentifier() attribute to string (not just name).
  • Visitor fixes: getByteSizeVisitor/getMaxByteSizeVisitor add visitStringType => null now that stringTypeNode is no longer a leaf; getDebugStringVisitor drops the trailing () for childless nodes; dynamic-codecs adds visitInjectedValue that throws (injected values must be resolved before codec time).
  • Tests: 11 new per-node fixtures for the new spec kinds, plus anyNode unit tests.

Lint, build, and test pass across all 17 packages.

Integrates `@codama/spec@1.7.0-rc.0` into the TS codegen pipeline and regenerates `@codama/node-types`, `@codama/nodes`, and `@codama/visitors-core` with the new presentation layer (display nodes, provide/inject, account-field selector).

Held against `main` for CI and review but not merged until the spec stabilises at `1.7.0` — letting us bump to later RCs here as the spec evolves. No changeset is included for the same reason.

Key changes:
- `anyNode` TypeExpr: both `typeExpr.ts` fragments render it as the top-level `Node` type; the visitor generator visits-and-asserts it against `REGISTERED_NODE_KINDS`.
- Config maps (`CATEGORY_DIRECTORIES`, `GENERIC_PARAM_ORDER`, walk-order maps, `NODE_CONFIGS`) absorb the new `display`/`provides` attributes; a `paramName`-only `AttributeOverride` variant renames `providedNode.node` so it doesn't shadow the visitor's `node` parameter.
- Input-type generator now widens every `stringIdentifier()` attribute to `string` (not just `name`).
- Visitor fixes: `getByteSizeVisitor`/`getMaxByteSizeVisitor` add `visitStringType => null` now that `stringTypeNode` is no longer a leaf; `getDebugStringVisitor` drops the trailing `()` for childless nodes; `dynamic-codecs` adds `visitInjectedValue` that throws (injected values must be resolved before codec time).
- Tests: 11 new per-node fixtures for the new spec kinds, plus `anyNode` unit tests.

Lint, build, and test pass across all 17 packages.
@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a8b9dc9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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