Skip to content
Docs
Changelog

Changelog

New features, architectural changes and improvements to the template.

MarkdownRSS

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.

First-party analytics in the admin, counted without cookies

Page, screen and event counts kept by our own server without cookies or identifiers, rolled up by the cron, and shown on /admin/analytics with a Bklit chart, annotations and optional Cloudflare numbers.

  • Counting without cookies. POST /api/events, the analytics relay, counts page views from the site and the web app and screen views from the mobile app: the path without its query (except utm_*), or the route pattern on signed-in screens and in the app, the referrer's host, the country from the edge and device and browser codes. No cookie, storage, IP address, user agent or id is kept; bots and automated browsers count nothing. The web client is about 0.8 KB gzip and starts after hydration. A database rate limit keyed by an HMAC of the address works on Node as on Workers. Mixpanel or PostHog can be added later as providers that only receive batches sent with consent; none ships (18a7aff6, 4555bb3d, 149735df). Confirm the cookieless counting with your data protection owner before launch. Analytics explains what is kept and why.
  • Totals in Postgres, folded by the cron. Raw events live for 30 days; the one-minute tick folds them into daily tables exactly once under a lease and a watermark, writes one release annotation per new Worker version, and, with CLOUDFLARE_ANALYTICS_TOKEN and CLOUDFLARE_ANALYTICS_ZONE_ID, syncs Cloudflare's zone totals every 30 minutes. Every analytics table denies the tenant role, proved in the RLS matrix (d404855c).
  • Days in your time zone. ANALYTICS_TIME_ZONE (an IANA name such as America/Sao_Paulo, UTC when unset) cuts the days of the rollup, the raw retention, the admin page and the Cloudflare sync's window, daylight saving time included. Changing it is safe at any time: the new zone starts at its next midnight, days already counted keep their hours, nothing is counted twice, and the admin page notes the switch. Cloudflare's own numbers stay on Cloudflare's UTC dates, and the CF card says so (3ec1df1a, bb4e786e, 08816323). Days and the time zone.
  • /admin/analytics. Platform admins see the period's views, events, countries, active sources, the share with consent and Cloudflare's unique visitors (both dimmed, the latter marked "CF"), views per day stacked by source with imported days hatched, release markers and campaign bands, annotations they can add or delete, and the top pages, countries, referrers and events (4555bb3d, 97c35587).
  • Bklit charts in packages/ui. The first Bklit components in the template: the composed chart, markers, reference area and sparkline, with motion 14.14.0 and d3-array, d3-scale and d3-shape; the chart roles are theme tokens (47163f57). Bundle cost: docs/measurements/2026-11-27-admin-analytics.md.

Billing proven on Workers and Node; RevenueCat account deletion and promotional grants

The same signed webhooks, checkouts and scheduled ticks now run against the built Worker and the Node server in CI, account deletion deletes the RevenueCat customer, and promotional entitlements grant Paid Access.

  • Billing on Workers and on a Node server, tested together. pnpm test:billing:runtimes builds both targets and sends each the same signed Stripe, Polar, Pagar.me and RevenueCat deliveries, checkout, portal and Pix calls, an account deletion and a scheduled tick (the Worker's cron; jobs:run --once --production on Node), with local stubs for every provider API. Both must answer, call providers and store billing rows the same; they do. The e2e workflow runs it. See Payments.
  • Deleting an account deletes the RevenueCat customer. The deletion queues it in its own transaction; the cron calls RevenueCat's DELETE /v1/subscribers/{id}, retries with a backoff up to once a day, never blocks the deletion and records billing.customer_erased in the audit log. Store subscriptions are not cancelled by it. See RevenueCat.
  • Promotional entitlements grant Paid Access. A RevenueCat promotional grant (store promotional) counts in sandbox and production, never renews, and ends when revoked; its webhook is accepted on a sandbox server too.
  • Restore behavior. The template keeps RevenueCat's default, "Transfer to new App User ID", now documented as its choice.
  • Clearer store states in the app. A restore that finds nothing says so, and a failed plan load says the store could not be reached and loads the plans again on "Check subscription" instead of claiming nothing is for sale. Development builds turn on RevenueCat's debug logs. Copy in English, German, French and Brazilian Portuguese.
  • Go-live checklist per provider on Payments: keys, webhook URL on Workers or a Node server, plan ids and test mode.

PR #224

Brazilian Portuguese as the fourth language

pt-BR joins English, German and French in every catalog: web, mobile, error messages and account emails, with public pages under /br, share cards, push texts and the language pickers. A phone set to Brazilian Portuguese now opens the app in Portuguese instead of English.

  • Every catalog. apps/web/src/locales/pt-BR.ts, apps/mobile/src/locales/pt-BR.ts, packages/errors/src/locales/pt-BR.ts and packages/email/src/locales/pt-BR.ts hold the same keys and placeholders as English, written with "você" and Brazilian vocabulary. The parity, placeholder and bundle-marker tests cover the fourth catalog. The text was machine-assisted and still needs a native review before a client ships it. See Internationalization.
  • Public pages under /br. locale.config.ts adds "pt-BR" with the slug br: /br/privacy is the Portuguese page, ?lang=pt-BR, ?lang=pt_br and ?lang=pt answer a 301 to it, /pt-BR/privacy redirects to /br/privacy, and Accept-Language: pt-BR sends a first visit from / to /br. Hreflang, the sitemap, og:locale (pt_BR), the share cards, /br/index.md and the language switcher include it. URL segments stay untranslated and English stays the default. See SEO and discovery.
  • The phone's language. The app read only the device's language code, so a phone in pt-BR reported pt, matched no language and opened in English. languageForDevice now matches the device's preferred locales by full tag first, through matchLanguage from @template-cloudflare/intl. Push reminders register in the app's full language (pt-BR) instead of its first two letters, and the settings picker lists Português (Brasil).
  • Emails and notifications. Account emails write dates as 11 de julho de 2026, 12:34 UTC; PUSH_LOCALES and the reminder text include pt-BR (the column is plain text, so no migration).
  • Landing. The language list and the i18n illustration name Portuguese. The four product captures have no Portuguese version yet, so /br shows the English ones with Portuguese alternative text.

Earlier releases

Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.