Repository navigation
feat: Deco CMS v8 — one squash of the v8 stack - #671
Merged
Merged
Conversation
The whole v8 stack as one commit. Its tree is the stack's top (#669, v8-19-port-main-fixes at 03efde7), which already carries the v7-line fixes main gained after the branch point. What v8 is: - @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), telemetry (OTLP), analytics, instrumented fetch, and hosted mode (CDN releases, CDN drafts, site token telemetry). Published as per-file tsc output, no bundler. - The commerce apps are thin clients: apps-shopify, apps-vtex (retry, circuit breaker), apps-wake, apps-magento, apps-algolia, apps-resend and apps-sfmc-personalization. - What v7's framework packages did is site code now; 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 (tanstack, nextjs, blocks-admin, blocks-cli, eitri, apps-commerce, apps-blog, apps-website, apps-salesforce, apps-nuvemshop) leave main. They keep releasing from the 7.x branch, where @decocms/blocks and the v8 apps publish on the latest-7 dist-tag. Folded PRs: - #602 N-01 content protocol - #603 N-02 core SDK - #605 N-03 secret built-in and the legacy v7 alias bridge - #604 N-04 the deco CLI - #606 N-05 telemetry, 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 - #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 drop v7 from the v8 line - #617 N-14 per-file tsc output - #618 N-15 forced-variant preview through the draft pointer - #619 N-16 drafts as the fast-preview pointer - #634 N-17 hosted mode - #668 colour deco check output - #669 N-19 port v7-line fixes from main (apps-vtex sc on every orderForm call; schema: _-prefixed props, const defaults, hidden defaults stay required, recursive types as refs; matchRoute drops self-redirects), plus the 7.x dist-tag (latest-7) and main's CHANGELOG entries Release: the lightweight tag blocks-v8.0.0 sits on main's parent commit, so this feat computes 8.1.0 and publishes the 8 v8 packages on latest. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
This was referenced Oct 12, 2026
Same tree as v8-19-port-main-fixes at bbb4e36, which adds two ports from main on top of 03efde7: query-scoped redirect sources in matchRoute (#647's second half, 5c1f8ce) and the skills-check gate with the v7-only skills removed (#621, bbb4e36). 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
Part of the v8 release: the squash PR is #671, which has the full merge-day runbook. **Draft: merge only on release day, at step 3 of the runbook, after 7.x has been cut from main.** ## What it does `release.yml` stops triggering on push to `main` (it triggers on a branch named `release-paused`, which doesn't exist). The manual dry run (`workflow_dispatch`) stays. The PR title is `chore:`, so its own merge computes no release either. ## Why it's needed Two things the v8 cut needs, which only a commit that is on main and **not** on 7.x can give: - **The seed tag.** `blocks-v8.0.0` goes on this PR's merge commit. Without a seed, the v8 squash (a `feat:`) computes **7.79.0** on `latest`. With the seed on main's current head instead, 7.x inherits it and every 7.x release fails with `EINVALIDMAINTENANCEMERGE`. Both were reproduced in a local semantic-release 25.0.5 sandbox. - **No accidental 8.0.x.** Between the seed and the squash, any `fix:` merged to main would release v7 code as **8.0.1 on `latest`** (also reproduced). With the trigger off, nothing can. The v8 squash PR brings back v8's own `release.yml` (trigger: `main`), so releases resume with the 8.1.0 release itself. Before that PR merges, its branch takes this commit with `git merge -s ours origin/main`: otherwise git merges this change into it cleanly and main would stay paused. ## Rollback If the v8 cut is called off after this merges: 1. If the seed was pushed, delete it first: `git push origin :refs/tags/blocks-v8.0.0`. 2. Then open a PR that restores `branches: [main]`, titled `chore: resume main releases`. Don't use a `revert:` title, because that type releases a patch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig Co-authored-by: Claude Opus 5.5 <[email protected]>
tlgimenes
marked this pull request as ready for review
October 12, 2026 18:50
|
🎉 This PR is included in version 8.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This was referenced Oct 12, 2026
This was referenced Oct 12, 2026
Open
tlgimenes
added a commit
that referenced
this pull request
Oct 14, 2026
Follow-up to the 8.1.0 release (#671). The `deco-v7-to-v8-migration` skill said "`8.1.0-next.7` ships `dist/`" in two places (Next.js `transpilePackages` note). 8.1.0 is the GA and also ships `dist/` (`exports` default to `./dist/*.js`), so the notes now name `8.1.0`. Nothing else in main's docs/skills points at the `next` dist-tag: the skill already installs `@decocms/blocks@^8.1`, which resolves to 8.1.0, and the root README says `bun add @decocms/blocks`. `bun run skills:check` and `skills:readme:check` pass. `docs:` only, so no release. 🤖 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 Updates the v7-to-v8 migration skill's `transpilePackages` notes to name the 8.1.0 GA release instead of `8.1.0-next.7`; both ship `dist/`, so the guidance is unchanged. Docs-only change, no release. <sup>Written for commit a9ff9cc. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/decocms/blocks/pull/674?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/674?returnTo=https%3A%2F%2Fgithub.com%2Fdecocms%2Fblocks%2Fpull%2F674&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]>
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.
The whole v8 stack as one squash commit onto main. Merging it publishes 8.1.0 on npm
latestfor the 8 v8 packages, sonpm install @decocms/blocksgives v8. v7 keeps releasing from the7.xbranch.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-fixesatbbb4e36e):git diff bbb4e36e v8-release-squashis empty. The branch is two commits on main's head0d125f10(blocks-v7.78.0): the squash of the stack (e151895d), andab3d3864, 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), thedecoCLI (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-migrationskill 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.xonlatest, since they have no 8.x.Fixes main gained after the branch point are ported (v8 N-19: port v7-line fixes from main #669): apps-vtex sends
scon every orderForm call; the schema keeps_-prefixed props, gives a stringconstadefault, keeps a hidden prop with a default inrequired, and turns recursive types into$refs;matchRoutedrops a redirect to the path it matches and matches query-scoped redirect sources (/calcados?map=c,ft) as fix(redirects): match sources byte for byte and answer like the Fresh handlers (307, query kept, no double-encode) #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.xentry in.releaserc.jsonnow has"channel": "latest-7". Without it the channel defaults to the branch name7.x, which npm refuses as a dist-tag.release.ymltriggers on main again (chore(release): pause main releases for the v8 cut #670 pauses it for the cut).Skills: the skills check from chore(skills): one skills folder, one skill per package, tuned so the model loads them #621 is ported (
skills:check,skills:readme,skills-check.yml,.agents/skill-template, the.claude/skillssymlink), 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 on7.x.Folded PRs
Each one gets closed with a pointer here after the merge.
deco checkoutputlatest-7channel and main's CHANGELOG entriesRelease mechanics
The version comes from semantic-release (
.releaserc.json, angular preset, one shared tagblocks-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):feat:squash computes 7.79.0 onlatest. A major marker would compute 8.0.0, which npm refuses (E403) because a deprecated 8.0.0 already exists.blocks-v8.0.0there, this squash computes 8.1.0, channellatest, and publishesblocks apps-algolia apps-magento apps-resend apps-sfmc-personalization apps-shopify apps-vtex apps-wakewith--tag latest. On today's head the tag would also sit in7.x's history, and every 7.x release would fail withEINVALIDMAINTENANCEMERGE.fix:merged to main in that window would ship as 8.0.1 onlatest.v7 after the cut:
7.xis 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/blocksnext to@decocms/tanstackwould install two copies of it. @decocms/blocks and the six apps that also ship in v8 publish on the dist-taglatest-7. npm refusesv7and7.xas dist-tags, because they read as version ranges. The ten v7-only packages keeplatest. 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.
decocms/blocks,release.yml, no environment); the PO names #670 and this PRrelease.ymlgit describe --exact-match --tags origin/mainprints the latestblocks-v7.*(todayblocks-v7.78.0)7.xat main's head (fast-forward from762d99c7)M0=$(git rev-parse origin/main); git merge-base --is-ancestor origin/7.x $M0 && git push origin $M0:refs/heads/7.xM1=$(git rev-parse origin/main)chore:, after step 5's rollback! git merge-base --is-ancestor $M1 origin/7.xgit tag blocks-v8.0.0 $M1 && git push origin refs/tags/blocks-v8.0.0git ls-remote --tags origin blocks-v8.0.0shows$M1. Optional: Actions → Release → Run on main, dry run, logsFound git tag blocks-v8.0.0git push origin :refs/tags/blocks-v8.0.0git push origin <prepared 7.x head>:refs/heads/7.xnpm view @decocms/blocks dist-tagsshowslatest-7: 7.78.1,latest: 7.78.0;npm view @decocms/blocks-cli dist-tagsshowslatest: 7.78.1. Expected side effect: the run first adds 7.78.0 to thelatest-7channel (a git note and a bot comment on #655), publishing nothing7.x; protect7.xlike main (a ruleset with the deletion, force-push and pull-request rules)gh pr edit <n> --base 7.xgit merge -s ours --no-edit origin/main && git diff --quiet bbb4e36e HEAD && git pushrelease.yml'smaintrigger; without-s ours, git silently keeps #670's pause--dry-runin a local sandbox (afile://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 realblocks-v8.0.0on GitHub equals #670's merge commit (the sandbox adds its own seed, so it checks the real one separately)feat: Deco CMS v8 — one squash of the v8 stackgh pr ready <this PR>blocks-v8.1.0, 8 ×npm publish --tag latest, GitHub release Latestfor p in blocks apps-{algolia,magento,resend,sfmc-personalization,shopify,vtex,wake}; do npm view @decocms/$p dist-tags; donelatest: 8.1.0for all 8; v7-only packages still havelatest: 7.78.1gh pr close <n> --comment "Folded into #<this PR>, released as 8.1.0"8.1.0exactly; docs and the serve command go back to plain@decocms/blocks; movenextto 8.1.0; reword 8.0.0's deprecationIf it goes wrong:
git ls-remote --tags origin blocks-v8.0.0must equal chore(release): pause main releases for the v8 cut #670's merge commit) and this body (no marker).latestback for each of the 8 packages:npm dist-tag add @decocms/<pkg>@7.78.1 latest.npm deprecate @decocms/<pkg>@<bad> "Published by mistake; use 7.78.1 or 8.1.0+".git reverton main: a revert is itself arevert:commit and would release.chore:PR) before fixing forward.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.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Summary by cubic
Ships Deco CMS v8 as one squash commit onto main. Merging publishes 8.1.0 on npm
latestfor the eight v8 packages, and v7 keeps releasing from the7.xbranch. The PR stays a draft until release day and merges only through the runbook in the body.What changes
@decocms/blocksbecomes one package: content protocol, core SDK (createCMS, resolver, lazy, built-ins,matchRoute, drafts),decoCLI, telemetry, analytics, instrumented fetch and hosted mode — published as per-file tsc output with no bundler.deco-v7-to-v8-migrationskill moves a v7 site over.7.x; their agent skills are dropped from the tree, and the skills-check gate stays on main.scon every orderForm call, the schema keeps_-prefixed props and turns recursive types into$refs, andmatchRoutedrops a redirect to the path it matches, including query-scoped redirect sources.Migration and release
latest: theblocks-v8.0.0seed 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.7.xbranch is cut from main with the config for thelatest-7dist-tag on@decocms/blocksand the six shared apps; the v7-only packages keeplatest.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.Written for commit 07685ef. Summary will update on new commits.