Skip to content

@codama/nodes@2.0.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@codama-releases codama-releases released this 03 Dec 10:06
· 53 commits to 1.x since this release
597476f

Patch Changes

  • #1273 141998e Thanks @lorisleiva! - Emit node attributes in the declaration order of the spec, followed by base attributes, instead of regrouping them into data and child attributes. Encoded IDLs change order only, e.g. the docs of a pdaNode now come before its programId, and readers must not depend on attribute order. Following @codama/spec@2.0.0-rc.4, link nodes now put their identifier before their parent link, and the type parameters of ValueLabelDisplayNode follow its new attribute order (TLabel before TValue).

    // Before
    { "kind": "pdaNode", "identifier": "vault", "programId": "…", "docs": "The vault.", "seeds": […] }
    
    // After
    { "kind": "pdaNode", "identifier": "vault", "docs": "The vault.", "programId": "…", "seeds": […] }
  • Updated dependencies [141998e]:

    • @codama/node-types@2.0.0-rc.1
    • @codama/errors@2.0.0-rc.1