Repository navigation
Conversation
…, resolution and matchers Runs the docs' examples (blocks, saved-blocks, built-in-blocks, lazy-blocks, how-resolution-works, matchers-and-variants) against the v8 core and the deco CLI. Two tests fail on purpose until the fixes land: decrypted secrets are not tainted for Client Components, and a block error quoting a decrypted secret reaches the telemetry error log. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…ng and rendering docs Runs each documented claim against the code: the root surface, createCMS options and singletons, drafts, resolve/list, matchRoute, fetch, analytics, secrets, and the deco CLI on temp fixture projects. Doc snippets are type-checked in memory. Failing tests mark gaps to fix. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…ted pages Covers content-delivery, draft-synchronization, releases-and-deployment, hosted, hosted-publishing, hosted-drafts, hosted-releases-internals and hosted-site-editor. Five tests fail on purpose until the code matches the docs: snapshot size bound (CD-16), remoteLoader's types and unset-site return (HP-16), the content module's root (HRI-12) and Workers waitUntil scheduling in the documented TanStack Start setup (H-10). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
… against the next-major docs Runnable conformance tests for telemetry.mdx, analytics.mdx, hosted-telemetry.mdx, telemetry-internals.mdx, upstream-clients.mdx and caching.mdx. The docs' snippets are kept verbatim under packages/blocks/conformance/observability and typechecked by the suite. Tests for claims the code doesn't meet yet fail on purpose. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…nStack, migrating, troubleshooting, internals, design decisions) Runnable conformance tests for the guide pages' claims: runtime behaviour through the public @decocms/blocks surface, the real deco bin on temp projects (quickstart end to end under tsx, schema/content/check/serve), example snippets through tsc, and the migration tool's analytics row. Failing on purpose until fixed: ts-04 (waitUntil without a binding), in-10 (runtime imports protocol/ciphertext), rsc-03/04 (no RSC example), dd-09 (deco publish signpost), mig-11 (tag IDs dropped by the migration). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…content protocol Runnable claims from cli, schema, checking, site-editor, content-protocol, studio-compatibility and studio-implementation. Seven tests fail on purpose where the code doesn't match the docs yet: --app-url's Vite port default, content-module regeneration on updates, the undocumented ./protocol/storage/memory export, runtime imports of the protocol, extra manifest groups, the alias table and the generation-change update signal. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…Case The docs give matchRoute(url, items) with literal segments and :params, about a hundred lines, no regex and no sorting (AR-50, RI-06). Cut the undocumented third options parameter, splat syntax (`*`, `:rest*`) and the second trie cache. The site editor's nested legacy redirect shape is still accepted at runtime, as studio-compatibility documents, but the parameter is typed as the documented Redirect[]. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
remoteLoader, the secret built-in and encryptSecret imported protocol/canonical and protocol/ciphertext. Both are dependency-free leaf modules the SDK owns (content revisions, the secret format), so they move to src/v8 and the protocol re-exports them. The conformance checks now strip comments before scanning imports and allow those two leaves (cp-48, in-10). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…mented createCMS keys a content module on the .deco folder it was generated from, but deco content never wrote it, so a hot-reloaded module got a new instance (AR-28, HRI-12). The generated module now carries root (the folder's path from the repository root, or .deco). The field leaves the public Snapshot type (AR-57); createCMS's internal config type accepts it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
- root: drop HOSTED_ANALYTICS_COLLECTOR, CMSConfig, CMSErrorCode, LegacyRedirect, MatchRouteOptions, RedirectStatus, RequestLike and ResolveOptions (AR-01); /fetch exports no types (AR-02) - remove the ./protocol/storage/memory subpath (cp-47); /protocol no longer re-exports the ciphertext primitives or the secret-guard helpers; /protocol/server no longer exports the asset handler; /protocol/conformance keeps the suite, its cases and the hashing fixtures, not its internals - /cli keeps the four commands, their options and what blocks-migrate reads - deco serve: drop the undocumented DECO_STUDIO_ORIGIN override - the package no longer ships __fixtures__, __conformance__ or testFixtures Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
- deco schema stops writing the empty apps/actions manifest groups and the empty actions/handlers/flags/functions/apps root unions (sc-01) - the alias table is exactly the eight names studio-compatibility lists (sc-13); the per-kind multivariate files, the $live names and the date matcher leave it - blocks-migrate rewrites those seven names in the saved content to names the next major resolves (same props, same behaviour), so v7 content keeps working Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…ze, signals generations
- remoteLoader(fallback, { site?, token?, interval? }) returns a Loader:
with site or token unset, a loader over the fallback alone, so the
hosted-publishing troubleshooting snippet compiles and runs (HP-16)
- releases and drafts larger than 64 MB are refused while they download,
before they're buffered whole (CD-16)
- a new generation of the revision already served reports
{ updated: true }, so caches keyed on the release are invalidated (si-09)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
The documented TanStack setup runs Start's own server entry, so nothing installed the background hook and release checks and telemetry batches fell back to a timer Workers never run after the response (H-10, HRI-4, ts-04). On Workers the core now loads waitUntil from cloudflare:workers (a computed specifier, so other bundlers never resolve it) and installs the hook itself. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
… to React's taint hook
- every value a secret block decrypts is registered with the CMS's
telemetry pipeline, which replaces it with [redacted] in log bodies, span
and metric attributes before sending: an upstream error that quotes the
key no longer ships it (builtin-22)
- the secret block hands each decrypted value to
globalThis[Symbol.for("decocms.blocks.taint")], where a React-server
binding installs experimental_taintUniqueValue; the core still imports no
React (builtin-18)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…urces carry version and environment; fetch reports cache hits - a client decides whether to trace on its first block, after its release is loaded, so the first client of a release already uses its Telemetry block's traceSampleRate (tel-12) - every batch carries service.version (the deployed commit from the host's variable, else "unknown") and deployment.environment.name (VERCEL_ENV, else production/development); OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES still override (tin-05) - createInstrumentedFetch sends GETs through the upstream cache a binding installs (a Symbol.for hook) and labels a hit cached=true (tel-15, cache-05) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…or next-major sites The worker entry now, for a site whose CMS has telemetry: - installs the upstream cache the core's createInstrumentedFetch consults: GETs are served from caches.default, honouring the upstream's cache-control; requests with a user's credentials are never cached, and nothing is read or written while a draft is rendered (cache-03, cache-06) - reports http.server.request.duration labelled by route pattern (ids and slugs collapsed, never the raw URL), method and status_class, and deco.cache.requests by layer (edge, upstream) and outcome (tel-09, tel-27, tel-10) - never stores a next-major draft render in the page cache Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…lish is a signpost
- without --app-url, deco serve reads server.port from the app's
vite.config.{ts,mts,js,mjs} as text (never executing it), else
http://localhost:5173, as cli.mdx says (cli-16)
- `deco publish` prints that publishing is committing and exits 1; it stays
out of the usage, so the documented commands are still four (dd-09)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…g IDs The tag-manager block belongs to the site's platform template, so the migration can't move GTM/GA4 IDs into it; its report now lists them next to the hint, so nothing is lost when the v7 section goes (mig-11). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
… a runnable app The rendering page and the TanStack Start + RSC guide had no example: this one applies the guide's four changes to tanstack-smoke (the JSX block map, page.functions.tsx with renderServerComponent, the route, and the Vite config with @vitejs/plugin-rsc 0.5.30 and react-server-dom-webpack 19.2.7). It builds, typechecks, and serves /shirt/p with CartButton hydrating as a Client Component (rsc-03, rsc-04, RN-03). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…y of intersections
storefront-tanstack's commerce types now spell SiteNavigationElement's
nesting as Array<Leaf & { children?: … }>. v7's generator wrote those items
as strings, which isn't what the type says; deco schema writes the object.
The golden test lists it as intentional difference 6 instead of asking
deco schema to reproduce the v7 bug (hiw-02).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
- deco check and deco content use isBlock/own/isPlainObject from v8/json - packageVersion lives once, in cli/root (deco schema and deco serve) - blocks-migrate keeps one isPlainObject (walk), one firstFile and one relativeSpecifier (vendor) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
… conformance probes
saved-blocks.mdx › Names: a saved block can't take the name of a block
type, a built-in or an alias, and "at runtime the function wins and you
get a warning". For an alias the resolver did the opposite: the saved
block was expanded and the alias never consulted. An alias is a second
key for a type, so it is now looked up before saved blocks, in both
resolve and { run: false }, and the collision warning fires.
Adds packages/blocks/src/v8/__conformance__/extra.test.ts: 31 probes of
claims the other conformance files test weakly (router backtracking and
normalization, redirect query handling, memoization, CYCLE paths, lazy
and multivariate semantics, date bounds, list order, forRevision,
loaders, draft helpers, the instrumented fetch, protocol wire rules and
file names, telemetry caps).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…s and the taint hook Per the product-owner decisions on the docs conformance round: - matchRoute: a path may end with "/*" to match one or more remaining segments (params["*"]). Exact beats a parameter beats a splat, per segment; the earlier entry wins a tie and findRouteConflicts reports it. A splat redirect copies the segments into `to` re-encoded one by one, so a crafted URL can't redirect off-site. - @decocms/tanstack: remove the inbound (http.server.request.duration) and edge/upstream cache (deco.cache.requests) metrics. The bindings add no measurements of their own; the Cache API upstream cache stays (still documented in caching.mdx), with hits labelled cached=true. - secret block: no taint hook; a decrypted value stays server-side by resolution. - Conformance tests assert the corrected docs: AR-34 (?token=abc123, bad parts throw), AR-36 (HttpOnly; Secure; SameSite=None; Partitioned; Path=/), AR-63 (revision() rejects with LOADER_FAILED), RT-06 (narrow with `in`), ana-04 (resolve<Analytics>), se-03 (regenerate after every save), tin-09 (most recently created CMS), tel-09 (bindings add no metrics), builtin-18 (no taint hook), and the splat claims. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
The local entry point is Studio's top-level /site-editor route (account-less, talks the content protocol to localhost). The /connect URL is gone. RunningServer.connectUrl is renamed siteEditorUrl. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
….preview = { url }
The local app the site editor previews is given by deco serve: --preview
takes host:port or a full loopback http(s) URL (default: the Vite config's
server.port read as text, else http://localhost:5173). describe reports it
as preview: { url } (was { origin }), the conformance case checks it, and
the startup line reads "Preview".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Re-applies 84e20c65 (v8-01-protocol), which the later stack lost, to the protocol and to v8/ciphertext.ts, which the protocol now re-exports; Studio vendors the protocol under that flag. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
… template code v8 sites depend on @decocms/blocks alone. @decocms/tanstack and @decocms/nextjs stay on the 7.x line with their v7 surface unchanged. - tanstack: drop kvLoader, the Cache API upstream cache, the background hook and the v8 draft-pointer edge bypass; workerEntry, index and package.json are back to their v7 shape. Their tests/conformance go. - nextjs: drop the v8 observability conformance test. - blocks: createInstrumentedFetch no longer reads a binding's global upstream-cache hook; an upstream cache is the site's own `fetch` option and a response it marks `x-cache: HIT` is measured cached=true. - apps-magento/shopify/wake: drop the unused @decocms/tanstack dependency; apps-vtex keeps it only as an optional peer for the v7 invoke.ts template. - blocks-migrate: no binding import is "documented API" any more; every @decocms/tanstack / @decocms/nextjs import is reported with "drop the dependency", and the package.json note lists both bindings. - Conformance: no v8 package may depend on a binding. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
tlgimenes
added a commit
that referenced
this pull request
Oct 12, 2026
The whole v8 stack as **one squash commit** onto main. Merging it publishes **8.1.0 on npm `latest`** for the 8 v8 packages, so `npm install @decocms/blocks` gives v8. v7 keeps releasing from the `7.x` branch. **Draft until release day.** Don't mark it ready or merge it outside the runbook below; the product owner names this PR when approving the merge. Nothing has been merged, tagged or published yet. ## What's in it The tree of this branch is exactly the top of the v8 stack, #669 (`v8-19-port-main-fixes` at `bbb4e36e`): `git diff bbb4e36 v8-release-squash` is empty. The branch is two commits on main's head `0d125f10` (`blocks-v7.78.0`): the squash of the stack (`e151895d`), and `ab3d3864`, which brings its tree up to #669's latest head without rewriting history. Squash and merge folds both into one commit. - **@decocms/blocks is one package:** the content protocol, the core SDK (`createCMS`, resolver, lazy, built-ins, `matchRoute`, drafts), the `deco` CLI (schema, content, check, serve), OTLP telemetry, analytics, instrumented fetch and hosted mode (CDN releases, CDN drafts, site token telemetry). Published as per-file tsc output, with no bundler. - **The commerce apps are thin clients:** apps-shopify, apps-vtex (with retry and a circuit breaker), apps-wake, apps-magento, apps-algolia, apps-resend and apps-sfmc-personalization. - **What v7's framework packages did is now site code.** TanStack Start and Next.js sites follow the guides, and the `deco-v7-to-v8-migration` skill moves a v7 site over. - **The v7-only packages leave main:** tanstack, nextjs, blocks-admin, blocks-cli, eitri, apps-commerce, apps-blog, apps-website, apps-salesforce and apps-nuvemshop. They keep releasing from `7.x` on `latest`, since they have no 8.x. - **Fixes main gained after the branch point are ported** (#669): apps-vtex sends `sc` on every orderForm call; the schema keeps `_`-prefixed props, gives a string `const` a `default`, keeps a hidden prop with a default in `required`, and turns recursive types into `$ref`s; `matchRoute` drops a redirect to the path it matches and matches query-scoped redirect sources (`/calcados?map=c,ft`) as #647 does on v7: the request's query string must equal the source's exactly, and a scoped source wins over a path-only one (docs: deco-sites/docs-tanstack#9). apps-nuvemshop stays v7-only. - **Release config:** the `7.x` entry in `.releaserc.json` now has `"channel": "latest-7"`. Without it the channel defaults to the branch name `7.x`, which npm refuses as a dist-tag. `release.yml` triggers on main again (#670 pauses it for the cut). - **Skills:** the skills check from #621 is ported (`skills:check`, `skills:readme`, `skills-check.yml`, `.agents/skill-template`, the `.claude/skills` symlink), and it passes: one skill, `deco-v7-to-v8-migration`, now an index of 9.9 KB with its gotchas split into subject files. **Leaves main with it:** main's v7 skills (`apps-vtex`, `apps-nuvemshop`, `deco-caching`, `deco-cms-route-config`, `deco-server-functions-invoke`, `deco-storefront-egress-guardrails`, `deco-migrate-script`, `run-migration`) and v7 docs. They describe packages that leave main, so they stay on `7.x`. ### Folded PRs Each one gets closed with a pointer here after the merge. | PR | What | |---|---| | #602 | N-01: content protocol | | #603 | N-02: core SDK (createCMS, resolver, lazy, built-ins, matchRoute, drafts) | | #605 | N-03: secret built-in and the legacy v7 alias bridge | | #604 | N-04: the deco CLI (schema, content, check, serve) | | #606 | N-05: telemetry (OTLP), analytics, instrumented fetch, hosted and KV loaders | | #607 | N-08: TanStack binding and the descriptor-guide example | | #608 | N-09: Next.js example rebuilt from the guide | | #609 | N-10a: Shopify thin client | | #610 | N-10b: VTEX thin client with retry and circuit breaker | | #611 | N-10c: apps-blog and apps-website are v7-only | | #612 | N-10d: Wake and Magento thin clients | | #613 | N-10e: Algolia, Resend and Marketing Cloud Personalization clients | | #614 | N-11: v7 to v8 migration tool | | #615 | N-12: docs-conformance gate | | #616 | N-13: v7 leaves the v8 line (one package, thin clients, migration is a skill) | | #617 | N-14: per-file tsc output (TypeScript 7, no bundler) | | #618 | N-15: preview a forced variant through the draft pointer | | #619 | N-16: drafts are the fast-preview pointer | | #634 | N-17: hosted mode (CDN releases, CDN drafts, site token telemetry) | | #668 | colour `deco check` output | | #669 | N-19: port the v7-line fixes from main (including #647's query-scoped redirects), the skills check from #621, the `latest-7` channel and main's CHANGELOG entries | ## Release mechanics The version comes from semantic-release (`.releaserc.json`, angular preset, one shared tag `blocks-v${version}` for every package). Three facts decide it, and each was reproduced with semantic-release 25.0.5 dry runs in a local sandbox (no tokens, nothing pushed): - **A seed tag is required.** Without one, this `feat:` squash computes **7.79.0** on `latest`. A major marker would compute 8.0.0, which npm refuses (E403) because a deprecated 8.0.0 already exists. - **The seed goes on #670's merge commit**, not on today's head. With the lightweight tag `blocks-v8.0.0` there, this squash computes **8.1.0**, channel `latest`, and publishes `blocks apps-algolia apps-magento apps-resend apps-sfmc-personalization apps-shopify apps-vtex apps-wake` with `--tag latest`. On today's head the tag would also sit in `7.x`'s history, and every 7.x release would fail with `EINVALIDMAINTENANCEMERGE`. - **#670 pauses main's release trigger** between the seed and this merge. Otherwise any v7 `fix:` merged to main in that window would ship as **8.0.1** on `latest`. **v7 after the cut:** `7.x` is cut from today's main, plus four commits: the release config; the migrator fix that keeps newly migrated sites on 7.x (it also refuses an 8.x answer from npm); and v7 install docs that ask for `@decocms/blocks@latest-7`, since a plain `@decocms/blocks` next to `@decocms/tanstack` would install two copies of it. @decocms/blocks and the six apps that also ship in v8 publish on the dist-tag **`latest-7`**. npm refuses `v7` and `7.x` as dist-tags, because they read as version ranges. The ten v7-only packages keep `latest`. The first 7.x release is **7.78.1**. **The squash commit message is this PR's title and body** (repo setting: PR title + PR body). This body therefore contains no major-version marker and no CI-skip token; keep it that way when editing. **Publishing** goes through npm Trusted Publishing (OIDC) from `release.yml`, with no stored token. **apps-sfmc-personalization has never been published by the workflow**, only by hand, so check its trusted publisher on npmjs.com before merging. If that check is skipped and its publish fails, the tag already exists and a re-run releases nothing; see "If it goes wrong". ## Merge-day runbook Run it in one sitting, with merges to main frozen. Each step has a check; stop at the first one that fails. | # | Step | Command | Check | Rollback | |---|---|---|---|---| | 0 | Before the day: trusted publishers for all 18 packages (`decocms/blocks`, `release.yml`, no environment); the PO names #670 and this PR | npmjs.com → package → Settings → Trusted publishing | every package lists `release.yml` | — | | 1 | Freeze merges to main | announce | `git describe --exact-match --tags origin/main` prints the latest `blocks-v7.*` (today `blocks-v7.78.0`) | unfreeze | | 2 | Cut `7.x` at main's head (fast-forward from `762d99c7`) | `M0=$(git rev-parse origin/main); git merge-base --is-ancestor origin/7.x $M0 && git push origin $M0:refs/heads/7.x` | no Release run starts (that commit's workflow triggers only on main) | nothing to undo | | 3 | Merge #670 (pause) as a squash, title unchanged | GitHub | no Release run; `M1=$(git rev-parse origin/main)` | revert as `chore:`, after step 5's rollback | | 4 | M1 is main-only | `! git merge-base --is-ancestor $M1 origin/7.x` | exits 0 | — | | 5 | Push the seed | `git tag blocks-v8.0.0 $M1 && git push origin refs/tags/blocks-v8.0.0` | `git ls-remote --tags origin blocks-v8.0.0` shows `$M1`. Optional: Actions → Release → Run on main, dry run, logs `Found git tag blocks-v8.0.0` | `git push origin :refs/tags/blocks-v8.0.0` | | 6 | Turn on 7.x: push the four prepared commits | `git push origin <prepared 7.x head>:refs/heads/7.x` | Release run on 7.x publishes **7.78.1**: `npm view @decocms/blocks dist-tags` shows `latest-7: 7.78.1`, `latest: 7.78.0`; `npm view @decocms/blocks-cli dist-tags` shows `latest: 7.78.1`. Expected side effect: the run first adds 7.78.0 to the `latest-7` channel (a git note and a bot comment on #655), publishing nothing | a failed run publishes nothing; fix on 7.x | | 7 | Retarget the open v7 PRs to `7.x`; protect `7.x` like main (a ruleset with the deletion, force-push and pull-request rules) | `gh pr edit <n> --base 7.x` | none of them targets main | — | | 8 | Bring this branch onto main without changing its tree | `git merge -s ours --no-edit origin/main && git diff --quiet bbb4e36 HEAD && git push` | the PR diff restores `release.yml`'s `main` trigger; without `-s ours`, git silently keeps #670's pause | — | | 9 | Final dry run on this exact tree | semantic-release `--dry-run` in a local sandbox (a `file://` copy of the repo with #670's merge, the seed and this tree squashed on top; no tokens) | `next=8.1.0 channel=null`, `--tag latest`, the 8 packages, and the real `blocks-v8.0.0` on GitHub equals #670's merge commit (the sandbox adds its own seed, so it checks the real one separately) | stop | | 10 | Mark ready; an engineering-deco member who did not push step 8 approves (the ruleset dismisses earlier approvals on push and requires approval of the last push); resolve every review thread; **Squash and merge** (not merge or rebase) with the title `feat: Deco CMS v8 — one squash of the v8 stack` | `gh pr ready <this PR>` | Release run: tag `blocks-v8.1.0`, 8 × `npm publish --tag latest`, GitHub release Latest | see below | | 11 | Verify npm | `for p in blocks apps-{algolia,magento,resend,sfmc-personalization,shopify,vtex,wake}; do npm view @decocms/$p dist-tags; done` | `latest: 8.1.0` for all 8; v7-only packages still have `latest: 7.78.1` | see below | | 12 | Unfreeze; close the folded PRs | `gh pr close <n> --comment "Folded into #<this PR>, released as 8.1.0"` | — | — | | 13 | Bump Studio's pins to `8.1.0` exactly; docs and the serve command go back to plain `@decocms/blocks`; move `next` to 8.1.0; reword 8.0.0's deprecation | see the runbook | — | — | | 14 | Communicate | — | — | — | **If it goes wrong:** - **Wrong version in step 9:** don't merge. Re-check the seed (`git ls-remote --tags origin blocks-v8.0.0` must equal #670's merge commit) and this body (no marker). - **Wrong version published in step 10** (7.79.0, 8.0.1, 9.0.0…): 1. Stop all merges. 2. Point `latest` back for each of the 8 packages: `npm dist-tag add @decocms/<pkg>@7.78.1 latest`. 3. Deprecate the bad version: `npm deprecate @decocms/<pkg>@<bad> "Published by mistake; use 7.78.1 or 8.1.0+"`. 4. Don't unpublish, and don't `git revert` on main: a revert is itself a `revert:` commit and would release. 5. Pause main again (#670's change as a new `chore:` PR) before fixing forward. - **One package failed to publish** (for example apps-sfmc-personalization without a trusted publisher): the tag exists, so a re-run releases nothing. Fix the trust, then publish that one package by hand from the tag: `git checkout blocks-v8.1.0 && VERSION=8.1.0 node scripts/sync-versions.mjs && bun install && bun run build && cd packages/<pkg> && npm publish --access public --tag latest`. That copy has no provenance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Ships Deco CMS v8 as one squash commit onto main. Merging publishes 8.1.0 on npm `latest` for the eight v8 packages, and v7 keeps releasing from the `7.x` branch. The PR stays a draft until release day and merges only through the runbook in the body. **What changes** - `@decocms/blocks` becomes one package: content protocol, core SDK (`createCMS`, resolver, lazy, built-ins, `matchRoute`, drafts), `deco` CLI, telemetry, analytics, instrumented fetch and hosted mode — published as per-file tsc output with no bundler. - The commerce apps become thin clients: apps-shopify, apps-vtex (retry, circuit breaker), apps-wake, apps-magento, apps-algolia, apps-resend and apps-sfmc-personalization. - v7's framework packages become site code; sites follow the TanStack/Next.js guides, and the `deco-v7-to-v8-migration` skill moves a v7 site over. - The v7-only packages (tanstack, nextjs, blocks-admin, blocks-cli, eitri, apps-commerce, apps-blog, apps-website, apps-salesforce, apps-nuvemshop) leave main and keep releasing from `7.x`; their agent skills are dropped from the tree, and the skills-check gate stays on main. - Ports the v7-line fixes from main: apps-vtex sends `sc` on every orderForm call, the schema keeps `_`-prefixed props and turns recursive types into `$ref`s, and `matchRoute` drops a redirect to the path it matches, including the query-scoped redirect sources. **Migration and release** - Releases 8.1.0 on `latest`: the `blocks-v8.0.0` seed tag sits on the merge commit that pauses main's release trigger, and the squashed commit message carries no version marker — anything else publishes a wrong version. - The `7.x` branch is cut from main with the config for the `latest-7` dist-tag on `@decocms/blocks` and the six shared apps; the v7-only packages keep `latest`. - Sites move with `deco-v7-to-v8-migration`: a one-time script rewrites content (block map with legacy aliases, vendored app loaders, secret re-encryption, import report) and then lists the manual steps it can't do. <sup>Written for commit ab3d386. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/decocms/blocks/pull/671?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/decocms/blocks/671?returnTo=https%3A%2F%2Fgithub.com%2Fdecocms%2Fblocks%2Fpull%2F671&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Released in 8.1.0 via #671 (one squash of the v8 stack). |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
A docs-conformance gate for the next major: every runnable claim in the next-major docs now has a test, the code was fixed where it disagreed with the docs, and undocumented surface was cut.
Conformance tests (one group per doc page set)
Under
packages/*/src/**/__conformance__:syntax*.test.ts)createCMS, drafts,resolve/list,matchRoute,fetch, analytics, secrets (sdk.test.ts)deco schema/content/check/serve, site editor, content protocol, studio compatibility and implementation (cli.test.ts)delivery*.test.ts, plus tanstack)extra.test.ts)Doc snippets are typechecked, and the real
decobin runs against temp projects.Fixed to match the docs
deco contentwrites the.decofolder into the generated module, so a hot-reloaded module keeps its CMS instancedeco schemawrites six manifest groups and exactly the documented alias table; blocks-migrate rewrites the dropped alias names in saved contentremoteLoaderalways returns a loader, refuses snapshots over 64 MB, and signals a new generation of the same revisionwaitUntilwithout a bindingcached=true) and never caches a draft renderdeco servedefaults--app-urlto the Vite port;deco publishis a signpostexamples/tanstack-rsc-smoke: the TanStack Start + RSC guide as a runnable appCut (lean)
/fetchtypes, the./protocol/storage/memorysubpath, protocol internals re-exportsmatchRoute's options parameter and the old splat/regex syntaxDECO_STUDIO_ORIGINoverrideDecisions applied
matchRoutesupports the documented trailing splat (/*,params["*"]): exact beats a parameter beats a splat; splat redirects re-encode segments so a crafted URL can't redirect off-sitedeco servelinks to the site editor athttps://studio.decocms.com/site-editor#endpoint=…&token=…(the/connectURL is gone;RunningServer.connectUrlis nowsiteEditorUrl)Test status
npx vitest run packages/blocks: all passnpx tsc --noEmit -p packages/blocks: cleanpackages/tanstack/src/sdk/workerEntry.test.ts, 2 inpackages/nextjs/src/draftShell.test.ts)The docs side is in deco-sites/docs-tanstack#4.
Stack: v8 ← 01 ← 02 ← 03 ← 04 ← 05 ← 08 ← 09 ← 10a ← 10b ← 10c ← 10d ← 10e ← 11 ← 12
🤖 Generated with Claude Code
https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Summary by cubic
Adds a docs-conformance gate for the next major: every runnable claim in the docs now has a test under
packages/*/src/**/__conformance__, doc snippets are typechecked, and the realdecobin runs against temp projects. The code was fixed where it disagreed with the docs, and undocumented surface was cut.Behavior changes
deco contentwrites the.decofolder into the generated module, so a hot-reloaded module keeps its CMS instance.deco schemawrites six manifest groups and exactly the documented alias table; the migration rewrites the dropped legacy names in saved content.deco servedefaults--previewto the Vite port, reports it aspreview: { url }in the protocol, and links to the site editor at/site-editor;deco publishis a signpost.matchRoutesupports the documented trailing splat, with splat redirects re-encoding segments so a crafted URL can't redirect off-site.remoteLoaderalways returns a loader and refuses snapshots over 64 MB.waitUntilwithout a binding; an upstream cache is the site's ownfetchoption, and anx-cache: HITresponse counts as a cache hit.Surface and packaging
@decocms/blocksalone;@decocms/tanstackand@decocms/nextjsare v7-only./fetchtypes, the./protocol/storage/memorysubpath, and theDECO_STUDIO_ORIGINoverride are removed.examples/tanstack-rsc-smoke, the TanStack Start + RSC guide as a runnable app.Written for commit e6fa31c. Summary will update on new commits.