Skip to content

chore(release): version packages#52

Merged
ABB65 merged 1 commit into
mainfrom
changeset-release/main
Jun 4, 2026
Merged

chore(release): version packages#52
ABB65 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 4, 2026

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

@contentrain/query@6.0.0

Major Changes

  • 149fa6b: Fix generated client correctness and align with the platform.

    Breaking: the generated document body field is now body (was content), matching @contentrain/types DocumentEntry.body and the MCP document_save schema. Update consumers reading .content on document entries to .body, and regenerate the client.

    Also fixed in the generated runtime + types:

    • Dictionary interpolation was broken in generated output — the param regex lost its escaping during emit, so dictionary('ui').get('key', { name }) returned the raw {name} template. Now interpolates correctly.
    • DocumentQuery.sort() added — documents can now be ordered (e.g. by published_at); previously only collections could sort, and calling .sort() on a document query threw.
    • include() now resolves relations across i18n boundaries — an i18n:false relation target (e.g. author) is resolved whether or not .locale() was set, and i18n:true targets resolve when no explicit locale is passed. Previously one side silently stayed an unresolved id string.
    • Generated types corrected — no more duplicate slug member when a document model declares a slug field; relation fields are typed as id | ResolvedTarget (and include(...) arguments are constrained to model keys) so resolved relations are no longer plain string.
    • String frontmatter is no longer numerically coerced — a string-typed field like "007" keeps its value instead of becoming 7.
    • where(field, 'ne', x) on array fields is now the complement of eq (membership), matching eq semantics.
    • Removed dead/misleading CJS proxy code; documented the required await init() for CommonJS.

Patch Changes

  • Updated dependencies [149fa6b]
    • @contentrain/types@0.5.1

@contentrain/mcp@1.5.0

Minor Changes

  • 149fa6b: Harden the git/branch lifecycle, redesign context.json handling, and fix validator false positives.

    Git & branches

    • Machine-generated [contentrain] commits now pass --no-verify, so repos with commitlint / husky / lefthook commit-msg hooks no longer reject Contentrain writes.
    • Feature branches are pruned automatically: a failed save no longer leaks a dangling cr/* branch, and merged branches (auto-merge or contentrain_merge) are deleted after landing.
    • Branch-health thresholds are now configurable via config.jsonbranchWarnLimit (default 50) and branchBlockLimit (default 80) — instead of being hardcoded.
    • New tools: contentrain_branch_list (pending cr/* branches + merge status) and contentrain_branch_delete (remove a stale/failed branch; the contentrain branch is protected).
    • contentrain_merge can now target a branch by model (+ optional locale/latest), not just the exact timestamped branch name.
    • contentrain_submit with no git remote now guides you to contentrain_merge (local landing) instead of failing with a bare "configure a remote".
    • Git/hook failures are returned as structured, ANSI-stripped errors ({ error, stage, hook?, code?, agent_hint? }) instead of a raw escaped color blob.

    context.json

    • context.json is no longer committed on feature branches; it is regenerated deterministically on the contentrain branch after merge (single-threaded). This removes the merge-conflict class that hit parallel content saves on different branches.
    • contentrain_status now derives stats.models/stats.entries live instead of echoing a possibly-stale context.json.

    Validation

    • Non-i18n models are validated against a single locale, eliminating phantom per-locale "orphan content" warnings (and the wrong-locale meta files --fix used to write) in multi-locale projects.
    • Polymorphic multi-relations (relations targeting multiple models) accept { model, ref } items, matching the generated SDK type instead of being rejected as "must be a string".
    • Relation-integrity resolves targets at the target model's own storage locale (with a default-locale fallback for i18n:true targets), removing false "broken relation" errors.
    • contentrain_content_save's inline validation now evaluates the committed/overlaid state, so freshly created locale files are no longer reported as "missing".
    • contentrain_validate --fix lands cosmetic structural fixes via auto-merge instead of spawning a pending review branch.

Patch Changes

  • Updated dependencies [149fa6b]
    • @contentrain/types@0.5.1

@contentrain/rules@0.5.0

Minor Changes

  • 149fa6b: Document the new contentrain_branch_list / contentrain_branch_delete MCP tools and fix SDK wiring guidance.

    • MCP_TOOLS / the essential guardrails / the MCP tool reference now include the two new branch tools (19 tools total) and the model/locale/latest selector for contentrain_merge.
    • Bundler-config snippets for Vite and Nuxt use import.meta.url + fileURLToPath instead of __dirname (which is undefined in ESM vite.config.ts / nuxt.config.ts), and now cover Nuxt 4's app/ + server/ layout.
    • The generate skill documents wiring contentrain generate into a prebuild/predev step, since .contentrain/client/ is git-ignored and must be regenerated on fresh clones / CI.
    • Clarified the two generator invocations: contentrain generate (CLI) vs npx contentrain-query generate (the @contentrain/query bin).

@contentrain/skills@0.5.0

Minor Changes

  • 149fa6b: Document the new contentrain_branch_list / contentrain_branch_delete MCP tools and fix SDK wiring guidance.

    • MCP_TOOLS / the essential guardrails / the MCP tool reference now include the two new branch tools (19 tools total) and the model/locale/latest selector for contentrain_merge.
    • Bundler-config snippets for Vite and Nuxt use import.meta.url + fileURLToPath instead of __dirname (which is undefined in ESM vite.config.ts / nuxt.config.ts), and now cover Nuxt 4's app/ + server/ layout.
    • The generate skill documents wiring contentrain generate into a prebuild/predev step, since .contentrain/client/ is git-ignored and must be regenerated on fresh clones / CI.
    • Clarified the two generator invocations: contentrain generate (CLI) vs npx contentrain-query generate (the @contentrain/query bin).

contentrain@0.5.2

Patch Changes

  • 149fa6b: contentrain init now prints stack-aware SDK wiring guidance after setup: for bundler stacks (Nuxt/Next/Vite/etc.) it shows the #contentrain subpath import, points to the contentrain-sdk bundler-alias skill, and recommends a prebuild/predev generate step (because .contentrain/client/ is git-ignored and must be regenerated on fresh clones / CI). Nuxt projects also get a server-only reminder.
  • Updated dependencies [149fa6b]
  • Updated dependencies [149fa6b]
  • Updated dependencies [149fa6b]
    • @contentrain/mcp@1.5.0
    • @contentrain/types@0.5.1
    • @contentrain/query@6.0.0
    • @contentrain/rules@0.5.0
    • @contentrain/skills@0.5.0

@contentrain/types@0.5.1

Patch Changes

  • 149fa6b: Harden the git/branch lifecycle, redesign context.json handling, and fix validator false positives.

    Git & branches

    • Machine-generated [contentrain] commits now pass --no-verify, so repos with commitlint / husky / lefthook commit-msg hooks no longer reject Contentrain writes.
    • Feature branches are pruned automatically: a failed save no longer leaks a dangling cr/* branch, and merged branches (auto-merge or contentrain_merge) are deleted after landing.
    • Branch-health thresholds are now configurable via config.jsonbranchWarnLimit (default 50) and branchBlockLimit (default 80) — instead of being hardcoded.
    • New tools: contentrain_branch_list (pending cr/* branches + merge status) and contentrain_branch_delete (remove a stale/failed branch; the contentrain branch is protected).
    • contentrain_merge can now target a branch by model (+ optional locale/latest), not just the exact timestamped branch name.
    • contentrain_submit with no git remote now guides you to contentrain_merge (local landing) instead of failing with a bare "configure a remote".
    • Git/hook failures are returned as structured, ANSI-stripped errors ({ error, stage, hook?, code?, agent_hint? }) instead of a raw escaped color blob.

    context.json

    • context.json is no longer committed on feature branches; it is regenerated deterministically on the contentrain branch after merge (single-threaded). This removes the merge-conflict class that hit parallel content saves on different branches.
    • contentrain_status now derives stats.models/stats.entries live instead of echoing a possibly-stale context.json.

    Validation

    • Non-i18n models are validated against a single locale, eliminating phantom per-locale "orphan content" warnings (and the wrong-locale meta files --fix used to write) in multi-locale projects.
    • Polymorphic multi-relations (relations targeting multiple models) accept { model, ref } items, matching the generated SDK type instead of being rejected as "must be a string".
    • Relation-integrity resolves targets at the target model's own storage locale (with a default-locale fallback for i18n:true targets), removing false "broken relation" errors.
    • contentrain_content_save's inline validation now evaluates the committed/overlaid state, so freshly created locale files are no longer reported as "missing".
    • contentrain_validate --fix lands cosmetic structural fixes via auto-merge instead of spawning a pending review branch.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 4, 2026

Deploy Preview for contentrain-ai ready!

Name Link
🔨 Latest commit dd923be
🔍 Latest deploy log https://app.netlify.com/projects/contentrain-ai/deploys/6a216b62c1b82800081bdefb
😎 Deploy Preview https://deploy-preview-52--contentrain-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@ABB65 ABB65 merged commit be85259 into main Jun 4, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant