# Changelog

New features, architectural changes and improvements to the template.

Release notes are curated from repository history. Dates reflect integration into the main branch; grouped entries are not semantic-version tags. Each entry links to its implementation and current developer guide.

## Host in Europe: an opt-in the deploy verifies

2026-11-28

A project that must store its data in the EU opts in once with pnpm setup; every production deploy then refuses a placement hint, R2 bucket or Neon database outside the Union.

- **New: `pnpm run setup --data-residency eu`.** The wizard asks once where data at rest must be stored. The opt-in writes `"DATA_RESIDENCY": "eu"` into the `vars` of `apps/web/wrangler.jsonc`, sets the placement to `aws:eu-central-1` unless you name another EU region, and refuses a region outside the Union, London and Zurich included. `--data-residency none` removes it. The template ships without it. See [Host in Europe](/docs/production#host-in-europe). ([d61b56a](https://github.com/CarlosZiegler/template-cloudflare/commit/d61b56a15eb5dc80b61bebeb570baf057026554d))
- **The production deploy checks it.** With the opt-in, `scripts/check-production-config.mjs` refuses to publish when the placement hint is not an EU region, a bound R2 bucket or `STORAGE_ENDPOINT` lacks the EU jurisdiction, or `DATABASE_URL` is a Neon host outside the EU; the Hyperdrive check reads the origin's region too. A database on another provider gets a warning to confirm by hand. No value is printed. `pnpm doctor` checks the tracked config. ([d61b56a](https://github.com/CarlosZiegler/template-cloudflare/commit/d61b56a15eb5dc80b61bebeb570baf057026554d))
- **What it promises, in one record.** [ADR-0021](/docs/adr/0021-host-in-europe) replaces the decision four projects each wrote on their own: data is stored in the EU; where a Worker executes, where the cron runs and where Workers Logs are kept cannot be pinned on this plan. ([0ca814f](https://github.com/CarlosZiegler/template-cloudflare/commit/0ca814fa0ddfad7033e1cf55f7535bf3b34b9ac8))

## One Worker on Workers Paid, a docs budget and reserved ADR numbers

2026-11-28

Four decision records: production runs on Workers Paid, docs keep compiling into the Worker within a budget, /api stays on the app's host, and the app stays one Worker with four seams that keep a split cheap.

- **Production runs on Workers Paid.** [ADR-0017](/docs/adr/0017-production-runs-on-workers-paid) states the plan the template assumes. The limits, the cost per daily user and the reason the database is the first bottleneck are on a new page, [Limits, cost and when to split](/docs/architecture/limits-and-scale). ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f))
- **Docs stay in the Worker, with a budget.** [ADR-0018](/docs/adr/0018-docs-compile-into-the-worker) answers the question ADR-0010 left open. `pnpm --filter web build` now prints the size of the docs chunk and fails above 5,500,000 B raw; `scripts/measure-worker-build.mjs` reports the chunk for the baseline and the working tree. Raise `DOCS_CHUNK_BUDGET_BYTES` in `scripts/docs-chunk.mjs` in the change that needs it. ([aba3277](https://github.com/CarlosZiegler/template-cloudflare/commit/aba32771f393bc74765f2b0bb486195e4ffba30d))
- **The API stays on the app's host.** [ADR-0019](/docs/adr/0019-api-stays-on-the-app-host): `/api/*` is never moved to another origin, so `EXPO_PUBLIC_SERVER_URL` in a shipped app never changes. ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f))
- **One Worker, four seams.** [ADR-0020](/docs/adr/0020-one-worker-and-four-seams) keeps web, API and cron in one Worker, lists the triggers that would justify a second one, and names four seams that make a later split a move. `AGENTS.md` states them as rules ("Keep the split cheap"). ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f), [1ee4502](https://github.com/CarlosZiegler/template-cloudflare/commit/1ee450283c4fce58d7488441f834d6eb93e1a482))
- **ADR numbers.** `0001` to `0099` belong to the template; a project created from it numbers its own decisions from `0100` ([decisions](/docs/adr), [setup](/docs/development/setup)). ([1ee4502](https://github.com/CarlosZiegler/template-cloudflare/commit/1ee450283c4fce58d7488441f834d6eb93e1a482))

## Sign up and sign in with Google and Apple

2026-11-28

Google and Apple ship off and switch on per project with their environment variables. Apple's client secret signs itself, social sign-ups get the same Organization and records as email sign-ups, and the app signs in natively with Apple on iOS.

- **New: social sign-in, off by default.** Better Auth registers Google when `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET` are set, and Apple when all five `APPLE_*` variables are set; half a provider stays off and is logged once. Nothing is project-specific, and a fresh project shows no buttons. See [Social sign-in](/docs/features/auth#social-sign-in-google-and-apple). ([1e8a7f6](https://github.com/CarlosZiegler/template-cloudflare/commit/1e8a7f68dcbb3c589b55e62a2e787dcb2e3ee72a), [5c9d90b](https://github.com/CarlosZiegler/template-cloudflare/commit/5c9d90b8122496c07ac6ba521ab74186dcf59218))
- **Apple's client secret signs itself.** The server signs the ES256 JWT Apple requires from the `.p8` key with Web Crypto, valid 30 days, cached per isolate and renewed a day before it expires, so nobody rotates it. Checked on the built Worker in local workerd and in Node tests. `https://appleid.apple.com` is a trusted origin while Apple is on, for its form post callback. ([5c9d90b](https://github.com/CarlosZiegler/template-cloudflare/commit/5c9d90b8122496c07ac6ba521ab74186dcf59218))
- **The same account either way.** A Google or Apple sign-up goes through the same hooks as an email sign-up: personal Organization, owner membership, `user.created`, `org.created` and `auth.sign_in` audits, the Active Organization on the Session, and one welcome email. An integration test compares the three paths on a local Postgres. ([5c9d90b](https://github.com/CarlosZiegler/template-cloudflare/commit/5c9d90b8122496c07ac6ba521ab74186dcf59218))
- **Linking only by a verified address.** Google or Apple joins an existing User only when the provider vouches for the address and the User has verified it too. An unverified password account gets `account_not_linked` instead of being taken over, and a User with two-factor on gets no social Session (`TWO_FACTOR_REQUIRED`) because Better Auth's challenge covers credential sign-ins only. Apple's name, sent only on the first authorization, is kept; without one the address's local part stands in. See [Accounts and linking](/docs/features/auth#accounts-and-linking). ([5c9d90b](https://github.com/CarlosZiegler/template-cloudflare/commit/5c9d90b8122496c07ac6ba521ab74186dcf59218))
- **Clients show only what is on.** `appConfig.get` lists `auth.socialProviders` (names only, also in its fallback), and the web sign-in and sign-up pages render "Continue with Google / Apple" from it on the first paint, with each brand's mark, a spinner while the browser leaves and a message when the provider sends the person back with an error. ([cf2459e](https://github.com/CarlosZiegler/template-cloudflare/commit/cf2459e02089af9ffe8e0af0bde06ef6e9febeb7), [c71367e](https://github.com/CarlosZiegler/template-cloudflare/commit/c71367ea75a1ed965c527b7f60d234f263d47f89))
- **Mobile.** On iOS the app uses the native Sign in with Apple sheet and sends its identity token with a nonce: the server refuses an Apple token without one. Google goes through the Expo plugin's browser flow. App Store guideline 4.8 is in the button logic: on iOS Google shows only next to Apple. `expo-apple-authentication` and `expo-crypto` are native modules, so rebuild the development client. ([e8d4919](https://github.com/CarlosZiegler/template-cloudflare/commit/e8d4919eeb056be20b386f58bd5b366a77fd2299))
- **Setup.** `pnpm setup` offers both providers, reads the Apple key from its `.p8` file, refuses half a provider, and `--worker-secrets` publishes them as Worker secrets; `pnpm doctor` names missing variables. The auth guide has the Google Cloud and Apple Developer console steps. ([b1e05de](https://github.com/CarlosZiegler/template-cloudflare/commit/b1e05dec3577b4bd6a6c25e613ec1291c29bda2f), [2bc6da7](https://github.com/CarlosZiegler/template-cloudflare/commit/2bc6da7b2bb4935a76225a21c2cf7cb3c0c773b1))

## Earlier updates

- 2026-11-27: [First-party analytics in the admin, counted without cookies](/docs/changelog/2026-11-27-admin-analytics)
- 2026-11-27: [Billing proven on Workers and Node; RevenueCat account deletion and promotional grants](/docs/changelog/2026-11-27-billing-ready-everywhere)
- 2026-11-27: [Brazilian Portuguese as the fourth language](/docs/changelog/2026-11-27-brazilian-portuguese)
- 2026-11-27: [Error reports reach a locked-down tracker only through the Worker](/docs/changelog/2026-11-27-error-reporting-ingest-key)
- 2026-11-27: [Native crash reports from the Expo app reach a locked-down tracker](/docs/changelog/2026-11-27-error-reporting-native-relay)
- 2026-11-27: [Error reporting to a self-hosted tracker, off until a DSN is set](/docs/changelog/2026-11-27-error-reporting)
- 2026-11-27: [Report a problem or a suggestion from the web and the app, triaged in an admin Feedback inbox](/docs/changelog/2026-11-27-feedback-reports)
- 2026-11-27: [Pix, card and boleto with Pagar.me; Stripe and Polar review](/docs/changelog/2026-11-27-pagarme-billing)
- 2026-11-27: [Production guide and restore drill](/docs/changelog/2026-11-27-production-guide)
- 2026-11-27: [RevenueCat ready to use: webhooks RevenueCat counts as delivered, session-long store identity, Paywall and Customer Center](/docs/changelog/2026-11-27-revenuecat-ready)
- 2026-11-27: [Roles, permissions and consent for sensitive data](/docs/changelog/2026-11-27-roles-and-consent)
- 2026-11-27: [Upstream shadcn and ReUI fixes, ui-sdk beta.17, and OpenUI in a lab page](/docs/changelog/2026-11-27-ui-registries-openui)
- 2026-11-27: [Email, push and outbound webhooks leave the deployed Worker again](/docs/changelog/2026-11-27-workerd-fetch-redirect)
- 2026-11-24: [Worst-case data, frame budgets and a slop audit in the UI recipe](/docs/changelog/2026-11-24-design-skills-vendored)
- 2026-11-24: [oRPC 2.0.0-beta.53 and ui-sdk 0.1.0-beta.16](/docs/changelog/2026-11-24-orpc-and-ui-sdk)
- 2026-11-24: [Previews skip email verification](/docs/changelog/2026-11-24-preview-email-verification)
- 2026-11-24: [A recipe for polished web views, and fifteen more design sources](/docs/changelog/2026-11-24-ui-polish-skill)
- 2026-11-24: [Repo notes that survive a skills update, and every vendored skill on its latest upstream](/docs/changelog/2026-11-24-vendored-skill-notes)
- 2026-11-22: [e2e 0.24, RevenueCat 11 and every dependency at its newest release](/docs/changelog/2026-11-22-dependency-round)
- 2026-11-22: [Job deadlines work through transaction poolers](/docs/changelog/2026-11-22-job-transaction-timeouts)
- 2026-11-21: [End-to-end tests on one local stack that a killed run never leaves behind](/docs/changelog/2026-11-21-e2e-pilot)
- 2026-11-20: [Dependencies at their latest releases, and docs Markdown on the new Fumadocs](/docs/changelog/2026-11-20-dependency-round)
- 2026-11-20: [An agent on the live page asks the person first](/docs/changelog/2026-11-20-live-page-agent)
- 2026-11-20: [Agents can see the textarea, fields, OTP, command, calendar, carousel, resizable, tree and rating](/docs/changelog/2026-11-20-ui-sdk-wrappers)
- 2026-11-19: [ui-sdk under the UI kit, and a dependency round](/docs/changelog/2026-11-19-ui-sdk-and-dependency-round)
- 2026-11-19: [Web screens follow ui-sdk's own skill](/docs/changelog/2026-11-19-ui-sdk-skill)
- 2026-11-13: [Security and backend quick wins](/docs/changelog/2026-11-13-security-quick-wins)
- 2026-11-09: [Authentication rate limits](/docs/changelog/2026-11-09-auth-rate-limit)
- 2026-11-09: [Server session cache](/docs/changelog/2026-11-09-server-session-cache)
- 2026-11-07: [Bklit is the only chart library, Stageshow the only way to draw product UI](/docs/changelog/2026-11-07-bklit-and-stageshow-only)
- 2026-11-07: [Signed-in navigation no longer waits on the session read](/docs/changelog/2026-11-07-session-reads)
- 2026-11-07: [Skullet is the only way to draw a loading skeleton](/docs/changelog/2026-11-07-skullet-only-skeletons)
- 2026-11-06: [Agent skills from upstream, Expo's renamed skills, and three updates held back](/docs/changelog/2026-11-06-agent-skills-update)
- 2026-11-06: [Code is written in English](/docs/changelog/2026-11-06-code-in-english)
- 2026-11-06: [The consent banner paints from the HTML, repeat visits skip revalidation, and real Web Vitals](/docs/changelog/2026-11-06-web-quick-wins)
- 2026-11-05: [Dates in your time zone, without a hydration error](/docs/changelog/2026-11-05-dates-in-your-time-zone)
- 2026-11-05: [Public pages paint before any JavaScript arrives](/docs/changelog/2026-11-05-first-paint)
- 2026-11-04: [Better Auth 1.7.16 security fix and dependency round](/docs/changelog/2026-11-04-better-auth-security-dependency-round)
- 2026-11-04: [Animated assistant approval on the landing, and a design patterns page](/docs/changelog/2026-11-04-landing-assistant-demo)
- 2026-11-04: [Loading skeletons drawn from the real components](/docs/changelog/2026-11-04-skullet-skeletons)
- 2026-10-29: [Invitations are not a mail relay](/docs/changelog/2026-10-29-invitation-relay)
- 2026-10-29: [MCP Apps widget, approval status and plugin marketplaces](/docs/changelog/2026-10-29-mcp-apps-widget-approval-status)
- 2026-10-29: [One URL per language](/docs/changelog/2026-10-29-path-locales)
- 2026-10-29: [Account emails in React Email, in English, German and French](/docs/changelog/2026-10-29-react-email)
- 2026-10-29: [Share cards, Markdown negotiation and one site identity](/docs/changelog/2026-10-29-seo-agent-readiness)
- 2026-10-27: [TanStack AI 1.0, password forms and iPhone Duo](/docs/changelog/2026-10-27-deps-password-forms-iphone-duo)
- 2026-10-19: [Agent skills from upstream and the /pr template](/docs/changelog/2026-10-19-agent-skills-update)
- 2026-10-19: [Ponytail from the official plugin](/docs/changelog/2026-10-19-ponytail-plugin)
- 2026-10-17: [One folder per backend feature, tagged errors and written rules](/docs/changelog/2026-10-17-backend-structure)
- 2026-10-17: [One folder per mobile feature, and the API aliases are gone](/docs/changelog/2026-10-17-mobile-structure)
- 2026-10-17: [The web app is organized by feature, like the backend](/docs/changelog/2026-10-17-web-structure)
- 2026-10-16: [Auth and tenant security fixes](/docs/changelog/2026-10-16-auth-and-security-fixes)
- 2026-10-16: [Database, Worker and web performance](/docs/changelog/2026-10-16-performance-and-placement)
- 2026-10-16: [Row-level security per Organization](/docs/changelog/2026-10-16-row-level-security)
- 2026-10-15: [AI assistant and one tool catalog](/docs/changelog/2026-10-15-assistant-and-agent-tools)
- 2026-10-15: [Dependency round, i18next fix and ReUI controls](/docs/changelog/2026-10-15-dependency-round-and-reui)
- 2026-10-15: [Developer documentation and changelog](/docs/changelog/2026-10-15-developer-docs-and-changelog)
- 2026-10-15: [Documents and large uploads](/docs/changelog/2026-10-15-documents-and-large-uploads)
- 2026-10-15: [Landing page redesign](/docs/changelog/2026-10-15-landing-redesign)
- 2026-10-15: [Landing sections and project skills](/docs/changelog/2026-10-15-landing-sections-and-project-skills)
- 2026-10-14: [Trace and code block primitives](/docs/changelog/2026-10-14-trace-and-code-blocks)
- 2026-10-13: [TanStack Start 1.0, OG images and durable imports](/docs/changelog/2026-10-13-start-og-and-imports)
- 2026-10-12: [Payments, native screens and a new landing page](/docs/changelog/2026-10-12-payments-and-native-experience)
- 2026-10-03: [Runtime and recovery hardening](/docs/changelog/2026-10-03-runtime-and-recovery)
- 2026-09-25: [Authentication foundations and performance](/docs/changelog/2026-09-25-auth-and-performance)
- 2026-09-24: [Platform dependency alignment](/docs/changelog/2026-09-24-platform-dependencies)
- 2026-09-03: [oRPC and Drizzle upgrades](/docs/changelog/2026-09-03-typed-api-upgrade)
- 2026-08-25: [Typed domain operations and a real dashboard](/docs/changelog/2026-08-25-typed-domain-and-dashboard)
- 2026-08-24: [Agent connections and native account security](/docs/changelog/2026-08-24-agent-connections-and-account-security)
- 2026-08-13: [Cloudflare email and shared UI](/docs/changelog/2026-08-13-email-and-ui)
- 2026-07-30: [An enforced client/server boundary](/docs/changelog/2026-07-30-client-boundary)
- 2026-07-24: [Native interface foundations](/docs/changelog/2026-07-24-native-foundation)
- 2026-07-13: [Administration and data workflows](/docs/changelog/2026-07-13-admin-and-data-workflows)
- 2026-06-10: [Setup, storage and localization](/docs/changelog/2026-06-10-setup-storage-and-i18n)
