Skip to content

v8 N-10d: Wake and Magento thin clients - #612

Closed
tlgimenes wants to merge 2 commits into
v8-10c-apps-blog-websitefrom
v8-10d-apps-wake-magento
Closed

tlgimenes wants to merge 2 commits into
v8-10c-apps-blog-websitefrom
v8-10d-apps-wake-magento

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

N-10d: thin v8 clients for apps-wake and apps-magento

Branch v8-10d-apps-wake-magento, based on v8-09-nextjs, with two commits: ff033ae7 (the clients) and bc050777 (fixes from review). Nothing has been pushed.

Summary

  • Wake: createWakeClient(config, { fetch? }) is exported from the @decocms/apps-wake root.
    • Config takes storefrontToken, plus optional storefrontEndpoint and checkoutUrl.
    • graphql<TData, TVariables>(document, variables?, { headers? }) uses the document's operation name as the label, or "graphql" if the document has no name.
    • getLogin(cookie) calls GET /api/Login/Get on the checkout, with operation getLogin. It returns null on 401, 403 or 404 and throws WakeError on any other failure, including 429.
    • It needs checkoutUrl. The account option, which built a hostname from config, is gone.
    • New subpaths: ./storefront has the 32 Storefront operations and ./storefront/types has their generated types. They have to be separate because five names exist both as an operation and as a schema type.
    • Per-call headers can never override tcs-access-token or content-type, whatever their case.
  • Magento: createMagentoClient({ baseUrl, apiKey?, originHeader? }, { fetch? }) is exported from the @decocms/apps-magento root.
    • request(path, { operation, authenticated? }) is async and returns the raw response. It only accepts paths on the store: any other origin, including //host, is rejected, so the token never leaves the store.
    • rest<T>(path, init) returns parsed JSON, or undefined on a 204.
    • graphql<TData>(query, variables, { operationName, headers?, authenticated? }) sends operationName in the body and uses it as the label. It is unauthenticated by default.
    • The apiKey is never sent over an Authorization header the caller sets, such as a customer token.
  • Errors: WakeError and MagentoError carry the operation, the status and a count of GraphQL errors. They never include the response body or tokens.
  • Import paths: the docs don't name one for Wake or Magento, so both factories are exported from the package root, the same as createVtexClient. They aren't on ./client, because both packages already use that path for the v7 module.
  • No duplicate copies: both clients reuse createInstrumentedFetch from @decocms/blocks/fetch. gql, buildQuery and QueryDefinition moved to apps-wake/src/utils/gql.ts, and the v7 utils/graphql.ts re-exports them, so there is still one copy.

How it maps to the docs

  • upstream-clients (thin, instrumented clients per platform; templates own loaders, converters, hooks, cart and session flows, and features): neither client has loaders, converters, hooks, cookies or caching, and configuration comes in as arguments. Retries and the circuit breaker are off; per the docs, only VTEX has them on by default.
  • caching ("depends on the platform"): neither client caches. The v7 SWR magentoCachedFetch is not part of the v8 surface.
  • telemetry (instrumented fetch labels): provider is "wake" or "magento", and operation is the API's own name for the call (GraphQL operation name, getLogin, or a required operation label on Magento REST), never a URL.
  • renames-and-migrations / built-in-blocks#secrets: the clients take plain values. The site reads env vars or a secret block where it creates the client. The v7 initMagentoFromBlocks and resolveSecret chain stays only on the v7 surface.
  • Partial match: the docs describe "typed request functions, one per API operation". Here the operations are the GraphQL and REST transports, and the caller supplies the response types:
    • Wake ships the documents and their generated types in ./storefront and ./storefront/types.
    • Magento ships no response types.
    • See follow-ups.

What moves to templates and site code

Wake

  • Converters: toProduct, toBreadcrumbList, toFilters, parseSlug and getVariations.
  • Loaders: product details page, product listing page, product list, suggestion, recommendations, shop, partners, cart, user, wishlist.
  • The proxy loader and the sitemap handler.
  • Cart actions: add item or items, update quantity, coupons, kits, partner associate and disassociate, and shippingSimulation.
  • Wishlist add and remove, newsletter register, review create, notifyme, submmitForm.
  • Cookie and session helpers: cart, user and partner cookies, authenticate (templates call getLogin(cookie) instead), authError, requestCtx, parseHeaders.
  • The hooks (./hooks and ./hooks/*).
  • Reading WAKE_TOKEN and WAKE_KEY, done where the site creates the client.

Magento

  • Converters in utils/transform.ts, the GraphQL filter and sort builders, and stringifySearchCriteria.
  • Loaders (cart, user, wishlist, features) and middleware.
  • Actions: wishlist add and remove, newsletter subscribe, product stock alert.
  • The hooks (./hooks/*).
  • Store config that isn't the client's job: features, cartConfigs, imagesConfig, pricingConfig, storeId/site/useSuffix, currencyCode, DEFAULT_GRAPHQL_FILTERS.
  • cacheTimeControl and the SWR fetch cache. Caching moves to the framework binding.
  • The apiKey/originHeader secret chain: the site passes the values in.

v7 code still exported, unchanged, for v7 consumers on this branch:

  • Wake: configureWake, initWakeFromBlocks, setWakeFetch, createWakeFetch, commerceLoaders, mod/registry, manifest.gen.
  • Magento: configureMagento, initMagentoFromBlocks, magentoFetch, setMagentoFetch, createMagentoFetch, magentoCachedFetch.

Tests

  • npx vitest run packages/apps-commerce packages/apps-wake packages/apps-magento passes: 20 files, 182 tests.
  • npx tsc --noEmit -p packages/{apps-wake,apps-magento,apps-commerce} is clean, and biome is clean on the touched files.
  • What the new tests cover:
    • provider and operation labels on both clients;
    • per-call headers in mixed case can't override the Wake token or content type, or the Magento content type;
    • a customer Authorization header survives on Magento graphql and rest;
    • GraphQL doesn't send the store token unless asked;
    • REST returns undefined on a 204;
    • requests to another origin, including //host, are rejected and never reach the fetch;
    • Wake getLogin returns null on 401 and throws WakeError on 429, and requires checkoutUrl;
    • errors never include bodies or tokens.
  • The guardrail test (packages/apps-commerce/src/instrumentation-guardrail.test.ts) has a new v8 section. For each client file it checks:
    • createInstrumentedFetch is imported from @decocms/blocks/fetch;
    • it is created with the client's own provider name;
    • the code has no direct fetch( call at all, comments ignored, so options.fetch(...) is also caught.
    • The v7 checks are unchanged.

Follow-ups

  1. N-12, removing v7: drop the v7 re-exports from both root barrels and the @decocms/tanstack dependency from both packages. Until then, importing a v8 client from the root also loads the v7 loaders, actions and SWR cache.
  2. Merging the N-10 branches: instrumentation-guardrail.test.ts will conflict with v8-10a, v8-10b and v8-10e. Combine their entries into one V8_CLIENTS map and keep the /\bfetch\s*\(/ check.
  3. Duplicate helper: extractGraphqlOperationName exists in both apps-wake and apps-shopify. After the merge, keep one copy (in @decocms/apps-commerce or a small shared util) and import it from both clients.
  4. Optional: give each Wake storefront document a phantom type (for example TypedQuery<TData, TVars>) so graphql(GetProduct, vars) infers its types, which would match the docs' "typed request functions" more closely. Magento response types stay in templates.

Files (all under (local worktree)):

  • apps-wake/src/wakeClient.ts
  • apps-wake/src/index.ts
  • apps-wake/src/__tests__/wakeClient.test.ts
  • apps-magento/src/magentoClient.ts
  • apps-magento/src/__tests__/magentoClient.test.ts
  • apps-commerce/src/instrumentation-guardrail.test.ts

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig


Part of the v8 stack (spec: docs PR deco-sites/docs-tanstack#4), based on v8-09-nextjs. Draft until the docs-conformance review.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig


Summary by cubic

Adds thin v8 upstream clients for Wake, Magento, Shopify, and VTEX, and marks @decocms/apps-blog and @decocms/apps-website as v7-only. Each client takes configuration as arguments and routes every request through createInstrumentedFetch from @decocms/blocks/fetch; errors carry the operation and status but never bodies or tokens. Retries and the circuit breaker default on only for VTEX; caching stays off for all clients.

New Features

  • createWakeClient exports graphql, labeled by the document's operation name, and getLogin, which returns null on 401/403/404 and throws WakeError on other failures like 429.
  • createMagentoClient exports request, rest, and graphql; only paths on the store's origin are accepted, and GraphQL is unauthenticated by default so the apiKey never overwrites a customer token.
  • createShopifyClient exposes storefront and admin GraphQL; unnamed documents fall back to storefront.graphql/admin.graphql, non-JSON bodies map to INVALID_JSON, and GraphQL errors carry their codes, never their messages.
  • createVtexClient provides typed calls for Intelligent Search, catalog, checkout, sessions, IO GraphQL, and Master Data; shopper cookies are forwarded sanitized, cart calls hand back Set-Cookie values, and app credentials are dropped on shopper-scoped calls.
  • The guardrail test asserts every v8 client sends requests through the instrumented fetch and never calls fetch directly; v7 modules stay exported unchanged for v7 consumers.
  • Wake's Storefront operations and generated types ship in ./storefront and ./storefront/types; the blog and website features move to platform templates and built-ins in the next major.

Written for commit 40993e2. Summary will update on new commits.

Review in cubic

Stack: … ← 09 ← 10a ← 10b ← 10c ← 10d ← 10e ← 11

tlgimenes and others added 2 commits October 3, 2026 12:35
…etch

Adds the v8 upstream-client surface for Wake and Magento, per the
next-major "Calling APIs" docs: a factory that takes its configuration as
arguments, typed request functions, every request through
createInstrumentedFetch from @decocms/blocks/fetch (provider "wake" /
"magento", one operation label per call), no retries or circuit breaker,
no caching, and errors that carry the operation and status but never
bodies or tokens.

- @decocms/apps-wake: createWakeClient (graphql, labeled by the document's
  operation name; getLogin for the checkout's /api/Login/Get), WakeError.
  Storefront operations at ./storefront, their generated types at
  ./storefront/types. gql/buildQuery move to utils/gql.ts, shared with
  the v7 GraphQL client.
- @decocms/apps-magento: createMagentoClient (request, rest, graphql with
  operationName), MagentoError. Paths only, so the store's token never
  goes to another origin.
- The instrumentation guardrail gains a v8 section asserting each client
  module builds its requests with createInstrumentedFetch under its
  provider and never calls fetch directly.

The v7 modules (configure*/init*FromBlocks, loaders, actions, hooks,
transforms, set*Fetch, the SWR cache) stay exported for v7 consumers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
- magento: never replace a caller's Authorization header (customer token)
  with the store apiKey; storefront GraphQL is unauthenticated by default
- wake/magento graphql: build headers with Headers so mixed-case per-call
  keys cannot corrupt the token or content type
- magento: request is async (origin guard rejects); rest returns undefined
  on 204
- wake: drop the `account` option (hostname interpolation), keep only
  checkoutUrl; stop exporting the storefront endpoint constant; getLogin
  returns null only on 401/403/404 and throws on other failures (e.g. 429)
- guardrail: flag any `fetch(` call in a v8 client, including `options.fetch(`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
@tlgimenes
tlgimenes force-pushed the v8-10d-apps-wake-magento branch from bc05077 to 40993e2 Compare October 3, 2026 15:35
@tlgimenes
tlgimenes changed the base branch from v8-09-nextjs to v8-10c-apps-blog-website October 3, 2026 15:37
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]>
@tlgimenes

Copy link
Copy Markdown
Contributor Author

Released in 8.1.0 via #671 (one squash of the v8 stack).

@tlgimenes tlgimenes closed this Oct 12, 2026
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