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.

Sign up and sign in with Google and Apple

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. (1e8a7f6, 5c9d90b)
  • 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)
  • 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)
  • 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. (5c9d90b)
  • 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, c71367e)
  • 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)
  • 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, 2bc6da7)

Test-only code leaves production modules

Seven Promise facades, two counters and four fixture files that only tests used are gone from production modules, and a test keeps new ones out.

  • No facade for tests. The cron jobs and the RevenueCat verification each carried a Promise wrapper that no production code called (runPendingAudits, runPendingAuthCleanup, runPendingUploads, runWebhookJobs, runPendingPush, runPendingBilling, verifyRevenueCat). They are deleted, with the standalone webhook round that only served one of them. Tests run the job's Effect with runJob from packages/api/src/testing/run-job.ts. See Testing.
  • Fixtures and counters moved out. The provider sample payloads are now packages/api/src/testing/billing-fixture-{stripe,polar,pagarme,revenuecat}.ts. The request scope no longer exports a create counter: its tests count calls of the factory they bind.
  • A test holds the line. scripts/test-only-exports.test.mjs fails an export that only tests reference. The 46 that remain are listed with a reason, and the list may only shrink. scripts/effect-run-sites.test.mjs pins the three modules that may call Effect.run*, which turns "one run* per entry point" from a review rule into a test. See Enforcement.
  • ADR text corrected. ADR-0010 named two Effect.runPromiseExit sites; sendEmail in packages/email is the third, and ADR-0005 now says a facade exists only where production code outside Effect calls it.

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.

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.