Skip to content

🔖 Version packages - #10

Merged
badmike merged 1 commit into
mainfrom
changeset-release/main
Aug 24, 2026
Merged

🔖 Version packages#10
badmike merged 1 commit into
mainfrom
changeset-release/main

Conversation

@badmike

@badmike badmike commented Aug 11, 2026

Copy link
Copy Markdown
Member

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

@b10cks/cli@2.1.0

Minor Changes

  • #13 674abc2 Thanks @badmike! - Fix generate types -o path resolution and discriminate generated blocks

    • An explicit -o is now resolved against the working directory. Only the default output path is placed under a Nuxt 4 app/ rootDir, so -o ./app/b10cks/types no longer lands in app/app/….
    • Each generated block interface carries a literal block: 'slug', narrowing B10cksItem's block: string. A heterogeneous body array can be discriminated on block without a cast. A schema field named block is skipped, since it would redeclare the discriminant.

    The literal block is a type-level narrowing. Code that assigns a hand-built object with a widened block: string to a generated interface (test fixtures, mocks) needs as const or an explicit literal after regenerating.

Patch Changes

  • Updated dependencies [122bcd4]:
    • @b10cks/mgmt-client@2.1.1

@b10cks/client@1.10.0

Minor Changes

  • #9 161b103 Thanks @badmike! - Fix live preview losing the page on a scoped edit, and duplicate-instance injection failures

    • PreviewStore now merges CONTENT_UPDATE by block id (applyContentUpdate / mergeContentUpdate) instead of replacing the root. The editor sends updates scoped to the edited block, which previously collapsed the whole preview to that block. Unknown ids are ignored.
    • Vue injection keys use Symbol.for(...), so a duplicated @b10cks/vue copy (Vite dep pre-bundling) can no longer break useB10cksApi() during hydration.
    • @b10cks/nuxt registers @b10cks/vue, @b10cks/client and @b10cks/richtext in vite.resolve.dedupe and optimizeDeps.exclude, and transpiles them by bare specifier (the previous resolver.resolve('@b10cks/vue') produced a nonexistent path).
    • New toRootBlock(entry) helper (@b10cks/client, re-exported from @b10cks/vue, auto-imported in Nuxt) returns { ...entry.content, id, block } so the root block is selectable with v-editable and root-level editor updates match it. READMEs updated.
    • getConfig() now includes the config entry's id in its result, so v-editable="config" works for config-driven regions. Potentially breaking only for a config schema with its own id field, which the entry id now shadows.
  • #13 0a032af Thanks @badmike! - Close SDK gaps found auditing three production Nuxt sites

    • @b10cks/client: rv is now part of IBBaseQueryParams, so pinning a request to a revision (or passing Date.now() from a server route to sidestep a stale delivery cache) no longer needs an as object cast.
    • @b10cks/client: getDataEntries takes a typed IBDataEntryParams with dimension, the locale-style variant selector for data sources.
    • @b10cks/client: GetConfigOptions.language is deprecated in favour of language_iso, matching every other content param. Both still work.
    • @b10cks/nuxt: useB10cksConfig watches language_iso as well as language, so a config passed language_iso refetches on a locale change instead of going stale.
    • @b10cks/nuxt: new useB10cksServerApi(), auto-imported in the server bundle. Nitro routes and middleware get the full B10cksDataApigetRedirects, getSitemap, getNamedSitemap with pagination and caching — instead of hand-rolling paginated fetches and TTL caches.
    • @b10cks/nuxt: new useB10cksVersion() composable, normalizing ?b10cks_vid to a version string defaulting to published.
    • @b10cks/richtext: new isRichTextEmpty(document), re-exported from @b10cks/vue/rich-text and @b10cks/nuxt. Reports whether a document renders anything, so a field an editor cleared (an empty paragraph) can skip its wrapper markup.
    • @b10cks/client: renderSitemapXml and filterSitemapEntries take a localePrefix strategy (auto | always | never | except-default). It defaults to auto, which prefixes only when the entries span more than one language. A mono-lingual space previously emitted /en/about for a page served at /about, making every sitemap URL a 404 or a redirect.
    • Docs: the client README documents the response-envelope normalization every collection method already does, and points at filter for id / canonical_id / parent_id queries. The Nuxt README surfaces usePreviewContent from the top of the usage section.

@b10cks/nuxt@3.5.0

Minor Changes

  • #9 161b103 Thanks @badmike! - Fix live preview losing the page on a scoped edit, and duplicate-instance injection failures

    • PreviewStore now merges CONTENT_UPDATE by block id (applyContentUpdate / mergeContentUpdate) instead of replacing the root. The editor sends updates scoped to the edited block, which previously collapsed the whole preview to that block. Unknown ids are ignored.
    • Vue injection keys use Symbol.for(...), so a duplicated @b10cks/vue copy (Vite dep pre-bundling) can no longer break useB10cksApi() during hydration.
    • @b10cks/nuxt registers @b10cks/vue, @b10cks/client and @b10cks/richtext in vite.resolve.dedupe and optimizeDeps.exclude, and transpiles them by bare specifier (the previous resolver.resolve('@b10cks/vue') produced a nonexistent path).
    • New toRootBlock(entry) helper (@b10cks/client, re-exported from @b10cks/vue, auto-imported in Nuxt) returns { ...entry.content, id, block } so the root block is selectable with v-editable and root-level editor updates match it. READMEs updated.
    • getConfig() now includes the config entry's id in its result, so v-editable="config" works for config-driven regions. Potentially breaking only for a config schema with its own id field, which the entry id now shadows.
  • #13 0a032af Thanks @badmike! - Close SDK gaps found auditing three production Nuxt sites

    • @b10cks/client: rv is now part of IBBaseQueryParams, so pinning a request to a revision (or passing Date.now() from a server route to sidestep a stale delivery cache) no longer needs an as object cast.
    • @b10cks/client: getDataEntries takes a typed IBDataEntryParams with dimension, the locale-style variant selector for data sources.
    • @b10cks/client: GetConfigOptions.language is deprecated in favour of language_iso, matching every other content param. Both still work.
    • @b10cks/nuxt: useB10cksConfig watches language_iso as well as language, so a config passed language_iso refetches on a locale change instead of going stale.
    • @b10cks/nuxt: new useB10cksServerApi(), auto-imported in the server bundle. Nitro routes and middleware get the full B10cksDataApigetRedirects, getSitemap, getNamedSitemap with pagination and caching — instead of hand-rolling paginated fetches and TTL caches.
    • @b10cks/nuxt: new useB10cksVersion() composable, normalizing ?b10cks_vid to a version string defaulting to published.
    • @b10cks/richtext: new isRichTextEmpty(document), re-exported from @b10cks/vue/rich-text and @b10cks/nuxt. Reports whether a document renders anything, so a field an editor cleared (an empty paragraph) can skip its wrapper markup.
    • @b10cks/client: renderSitemapXml and filterSitemapEntries take a localePrefix strategy (auto | always | never | except-default). It defaults to auto, which prefixes only when the entries span more than one language. A mono-lingual space previously emitted /en/about for a page served at /about, making every sitemap URL a 404 or a redirect.
    • Docs: the client README documents the response-envelope normalization every collection method already does, and points at filter for id / canonical_id / parent_id queries. The Nuxt README surfaces usePreviewContent from the top of the usage section.

Patch Changes

  • Updated dependencies [161b103, 0a032af]:
    • @b10cks/client@1.10.0
    • @b10cks/vue@2.7.0
    • @b10cks/richtext@0.7.0

@b10cks/richtext@0.7.0

Minor Changes

  • #13 0a032af Thanks @badmike! - Close SDK gaps found auditing three production Nuxt sites

    • @b10cks/client: rv is now part of IBBaseQueryParams, so pinning a request to a revision (or passing Date.now() from a server route to sidestep a stale delivery cache) no longer needs an as object cast.
    • @b10cks/client: getDataEntries takes a typed IBDataEntryParams with dimension, the locale-style variant selector for data sources.
    • @b10cks/client: GetConfigOptions.language is deprecated in favour of language_iso, matching every other content param. Both still work.
    • @b10cks/nuxt: useB10cksConfig watches language_iso as well as language, so a config passed language_iso refetches on a locale change instead of going stale.
    • @b10cks/nuxt: new useB10cksServerApi(), auto-imported in the server bundle. Nitro routes and middleware get the full B10cksDataApigetRedirects, getSitemap, getNamedSitemap with pagination and caching — instead of hand-rolling paginated fetches and TTL caches.
    • @b10cks/nuxt: new useB10cksVersion() composable, normalizing ?b10cks_vid to a version string defaulting to published.
    • @b10cks/richtext: new isRichTextEmpty(document), re-exported from @b10cks/vue/rich-text and @b10cks/nuxt. Reports whether a document renders anything, so a field an editor cleared (an empty paragraph) can skip its wrapper markup.
    • @b10cks/client: renderSitemapXml and filterSitemapEntries take a localePrefix strategy (auto | always | never | except-default). It defaults to auto, which prefixes only when the entries span more than one language. A mono-lingual space previously emitted /en/about for a page served at /about, making every sitemap URL a 404 or a redirect.
    • Docs: the client README documents the response-envelope normalization every collection method already does, and points at filter for id / canonical_id / parent_id queries. The Nuxt README surfaces usePreviewContent from the top of the usage section.

@b10cks/vue@2.7.0

Minor Changes

  • #9 161b103 Thanks @badmike! - Fix live preview losing the page on a scoped edit, and duplicate-instance injection failures

    • PreviewStore now merges CONTENT_UPDATE by block id (applyContentUpdate / mergeContentUpdate) instead of replacing the root. The editor sends updates scoped to the edited block, which previously collapsed the whole preview to that block. Unknown ids are ignored.
    • Vue injection keys use Symbol.for(...), so a duplicated @b10cks/vue copy (Vite dep pre-bundling) can no longer break useB10cksApi() during hydration.
    • @b10cks/nuxt registers @b10cks/vue, @b10cks/client and @b10cks/richtext in vite.resolve.dedupe and optimizeDeps.exclude, and transpiles them by bare specifier (the previous resolver.resolve('@b10cks/vue') produced a nonexistent path).
    • New toRootBlock(entry) helper (@b10cks/client, re-exported from @b10cks/vue, auto-imported in Nuxt) returns { ...entry.content, id, block } so the root block is selectable with v-editable and root-level editor updates match it. READMEs updated.
    • getConfig() now includes the config entry's id in its result, so v-editable="config" works for config-driven regions. Potentially breaking only for a config schema with its own id field, which the entry id now shadows.
  • #13 0a032af Thanks @badmike! - Close SDK gaps found auditing three production Nuxt sites

    • @b10cks/client: rv is now part of IBBaseQueryParams, so pinning a request to a revision (or passing Date.now() from a server route to sidestep a stale delivery cache) no longer needs an as object cast.
    • @b10cks/client: getDataEntries takes a typed IBDataEntryParams with dimension, the locale-style variant selector for data sources.
    • @b10cks/client: GetConfigOptions.language is deprecated in favour of language_iso, matching every other content param. Both still work.
    • @b10cks/nuxt: useB10cksConfig watches language_iso as well as language, so a config passed language_iso refetches on a locale change instead of going stale.
    • @b10cks/nuxt: new useB10cksServerApi(), auto-imported in the server bundle. Nitro routes and middleware get the full B10cksDataApigetRedirects, getSitemap, getNamedSitemap with pagination and caching — instead of hand-rolling paginated fetches and TTL caches.
    • @b10cks/nuxt: new useB10cksVersion() composable, normalizing ?b10cks_vid to a version string defaulting to published.
    • @b10cks/richtext: new isRichTextEmpty(document), re-exported from @b10cks/vue/rich-text and @b10cks/nuxt. Reports whether a document renders anything, so a field an editor cleared (an empty paragraph) can skip its wrapper markup.
    • @b10cks/client: renderSitemapXml and filterSitemapEntries take a localePrefix strategy (auto | always | never | except-default). It defaults to auto, which prefixes only when the entries span more than one language. A mono-lingual space previously emitted /en/about for a page served at /about, making every sitemap URL a 404 or a redirect.
    • Docs: the client README documents the response-envelope normalization every collection method already does, and points at filter for id / canonical_id / parent_id queries. The Nuxt README surfaces usePreviewContent from the top of the usage section.

Patch Changes

  • Updated dependencies [161b103, 0a032af]:
    • @b10cks/client@1.10.0
    • @b10cks/richtext@0.7.0

@b10cks/mcp-server@0.14.4

Patch Changes

  • Updated dependencies [122bcd4]:
    • @b10cks/mgmt-client@2.1.1

@b10cks/mgmt-client@2.1.1

Patch Changes

  • #13 122bcd4 Thanks @badmike! - Unwrap the { data } envelope on single-content endpoints

    contents.get, create, update, move, publish, unpublish and schedule declared a bare Content but resolved to { data: Content }, so callers had to branch on the shape themselves. They now unwrap, making the declared type true. An already-bare response is passed through untouched.

@b10cks/next@0.4.6

Patch Changes

  • Updated dependencies [161b103, 0a032af]:
    • @b10cks/client@1.10.0
    • @b10cks/richtext@0.7.0
    • @b10cks/react@0.7.1

@b10cks/react@0.7.1

Patch Changes

  • Updated dependencies [161b103, 0a032af]:
    • @b10cks/client@1.10.0
    • @b10cks/richtext@0.7.0

@b10cks/svelte@0.7.1

Patch Changes

  • Updated dependencies [161b103, 0a032af]:
    • @b10cks/client@1.10.0
    • @b10cks/richtext@0.7.0

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 00c3fe7 to 1e1886b Compare August 24, 2026 20:59
@badmike
badmike merged commit 38235f1 into main Aug 24, 2026
6 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