Skip to content

docs: align documentation, examples and snippets with Concerto v4#134

Merged
mttrbrts merged 4 commits into
mainfrom
claude/heuristic-napier-55c4e0
May 18, 2026
Merged

docs: align documentation, examples and snippets with Concerto v4#134
mttrbrts merged 4 commits into
mainfrom
claude/heuristic-napier-55c4e0

Conversation

@mttrbrts
Copy link
Copy Markdown
Member

Summary

Aligns all documentation content, code examples, and configuration with the Concerto v4 breaking changes documented in the 3.0 → 4.0 migration guide.

  • Remove Concerto class — replaced with ModelManager.getSerializer() + mm.getType() in the validation example; removed from unused imports in all other API examples
  • addModel()addCTOModel() — vocabulary and decorator-command-set examples now use the canonical API name
  • Maps enabled by defaultmodel-maps.md no longer instructs readers to set ENABLE_MAP_TYPE=true
  • Import aliasing enabled by defaultmodel-imports.md note updated accordingly
  • Strict mode is now the defaultmodel-imports.md section rewritten; --strict flag shown as [default: true] in CLI reference for compile and generate
  • Node.js 22+ — quick-start requirement updated from 16.14; .nvmrc and engines.node bumped
  • @accordproject/concerto-cto — bumped from 3.26.0 to ^4.0.0; @types/node updated to 22.x

Test plan

  • npm run build passes (Docusaurus build)
  • Verify all JS snippets run correctly against @accordproject/concerto-core@^4.0.0
  • Spot-check quick-start tutorial end-to-end

🤖 Generated with Claude Code

- Replace removed Concerto class with ModelManager.getSerializer()/getType() in validation example
- Remove unused Concerto import from all JS API examples
- Change addModel() to addCTOModel() for consistency with the canonical API
- Update model-maps.md: Maps are enabled by default in v4 (no ENABLE_MAP_TYPE env var needed)
- Update model-imports.md: import aliasing enabled by default; strict=true is now the v4 default
- Update CLI reference: --strict now defaults to true for compile and generate commands
- Update quick-start.md: Node.js requirement is 22+
- Bump @accordproject/concerto-cto to ^4.0.0, @types/node to 22.x, engines.node to >=22.0.0
- Update .nvmrc to Node.js 22

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for concerto-docs ready!

Name Link
🔨 Latest commit e37d568
🔍 Latest deploy log https://app.netlify.com/projects/concerto-docs/deploys/6a0b2275ff0ff40008556fa6
😎 Deploy Preview https://deploy-preview-134--concerto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

mttrbrts and others added 3 commits May 18, 2026 15:20
The strict option was fully removed from ModelManager in v4 (not just
defaulted to true). Strict mode is now mandatory and cannot be disabled.

- model-imports.md: replace the "you can pass strict:false" paragraph with
  a clear note that unversioned namespaces and wildcard imports are no longer
  supported at all in v4, with a migration callout for users coming from v3
- ref-concerto-cli.md: remove --strict flag from compile and generate command
  docs — the flag was dropped from the v4 CLI alongside the ModelManager option

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>
Two issues were causing the build to fail:
- syncpack enforces exact pinned versions; ^4.0.0 was rejected
  (SemverRangeMismatch). Pin @accordproject/concerto-cto to 4.1.0
  and @types/node to 22.19.19.
- CI workflow was still running Node 20; bump matrix and setup-node
  to Node 22 to match the updated engines.node requirement.

Also regenerates package-lock.json against the new dependency versions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>
On Node 22 this step crashes with MODULE_NOT_FOUND: promise-retry because
npm tries to replace itself mid-execution. Node 22 ships with npm 10 which
is already recent enough; the global reinstall is unnecessary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matt Roberts <code@rbrts.uk>
@mttrbrts mttrbrts merged commit b0d6d4c into main May 18, 2026
8 checks passed
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