chore(release): version packages#52
Merged
Merged
Conversation
✅ Deploy Preview for contentrain-ai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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(wascontent), matching@contentrain/typesDocumentEntry.bodyand the MCPdocument_saveschema. Update consumers reading.contenton document entries to.body, and regenerate the client.Also fixed in the generated runtime + types:
dictionary('ui').get('key', { name })returned the raw{name}template. Now interpolates correctly.DocumentQuery.sort()added — documents can now be ordered (e.g. bypublished_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.slugmember when a document model declares aslugfield; relation fields are typed asid | ResolvedTarget(andinclude(...)arguments are constrained to model keys) so resolved relations are no longer plainstring."007"keeps its value instead of becoming7.where(field, 'ne', x)on array fields is now the complement ofeq(membership), matchingeqsemantics.await init()for CommonJS.Patch Changes
@contentrain/mcp@1.5.0
Minor Changes
149fa6b: Harden the git/branch lifecycle, redesign context.json handling, and fix validator false positives.
Git & branches
[contentrain]commits now pass--no-verify, so repos with commitlint / husky / lefthookcommit-msghooks no longer reject Contentrain writes.cr/*branch, and merged branches (auto-merge orcontentrain_merge) are deleted after landing.config.json—branchWarnLimit(default 50) andbranchBlockLimit(default 80) — instead of being hardcoded.contentrain_branch_list(pendingcr/*branches + merge status) andcontentrain_branch_delete(remove a stale/failed branch; thecontentrainbranch is protected).contentrain_mergecan now target a branch bymodel(+ optionallocale/latest), not just the exact timestamped branch name.contentrain_submitwith no git remote now guides you tocontentrain_merge(local landing) instead of failing with a bare "configure a remote".{ error, stage, hook?, code?, agent_hint? }) instead of a raw escaped color blob.context.json
context.jsonis no longer committed on feature branches; it is regenerated deterministically on thecontentrainbranch after merge (single-threaded). This removes the merge-conflict class that hit parallel content saves on different branches.contentrain_statusnow derivesstats.models/stats.entrieslive instead of echoing a possibly-stalecontext.json.Validation
--fixused to write) in multi-locale projects.relationstargeting multiple models) accept{ model, ref }items, matching the generated SDK type instead of being rejected as "must be a string".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 --fixlands cosmetic structural fixes via auto-merge instead of spawning a pending review branch.Patch Changes
@contentrain/rules@0.5.0
Minor Changes
149fa6b: Document the new
contentrain_branch_list/contentrain_branch_deleteMCP 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 forcontentrain_merge.import.meta.url+fileURLToPathinstead of__dirname(which is undefined in ESMvite.config.ts/nuxt.config.ts), and now cover Nuxt 4'sapp/+server/layout.contentrain generateinto aprebuild/predevstep, since.contentrain/client/is git-ignored and must be regenerated on fresh clones / CI.contentrain generate(CLI) vsnpx contentrain-query generate(the@contentrain/querybin).@contentrain/skills@0.5.0
Minor Changes
149fa6b: Document the new
contentrain_branch_list/contentrain_branch_deleteMCP 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 forcontentrain_merge.import.meta.url+fileURLToPathinstead of__dirname(which is undefined in ESMvite.config.ts/nuxt.config.ts), and now cover Nuxt 4'sapp/+server/layout.contentrain generateinto aprebuild/predevstep, since.contentrain/client/is git-ignored and must be regenerated on fresh clones / CI.contentrain generate(CLI) vsnpx contentrain-query generate(the@contentrain/querybin).contentrain@0.5.2
Patch Changes
contentrain initnow prints stack-aware SDK wiring guidance after setup: for bundler stacks (Nuxt/Next/Vite/etc.) it shows the#contentrainsubpath import, points to thecontentrain-sdkbundler-alias skill, and recommends aprebuild/predevgenerate step (because.contentrain/client/is git-ignored and must be regenerated on fresh clones / CI). Nuxt projects also get a server-only reminder.@contentrain/types@0.5.1
Patch Changes
149fa6b: Harden the git/branch lifecycle, redesign context.json handling, and fix validator false positives.
Git & branches
[contentrain]commits now pass--no-verify, so repos with commitlint / husky / lefthookcommit-msghooks no longer reject Contentrain writes.cr/*branch, and merged branches (auto-merge orcontentrain_merge) are deleted after landing.config.json—branchWarnLimit(default 50) andbranchBlockLimit(default 80) — instead of being hardcoded.contentrain_branch_list(pendingcr/*branches + merge status) andcontentrain_branch_delete(remove a stale/failed branch; thecontentrainbranch is protected).contentrain_mergecan now target a branch bymodel(+ optionallocale/latest), not just the exact timestamped branch name.contentrain_submitwith no git remote now guides you tocontentrain_merge(local landing) instead of failing with a bare "configure a remote".{ error, stage, hook?, code?, agent_hint? }) instead of a raw escaped color blob.context.json
context.jsonis no longer committed on feature branches; it is regenerated deterministically on thecontentrainbranch after merge (single-threaded). This removes the merge-conflict class that hit parallel content saves on different branches.contentrain_statusnow derivesstats.models/stats.entrieslive instead of echoing a possibly-stalecontext.json.Validation
--fixused to write) in multi-locale projects.relationstargeting multiple models) accept{ model, ref }items, matching the generated SDK type instead of being rejected as "must be a string".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 --fixlands cosmetic structural fixes via auto-merge instead of spawning a pending review branch.