Changelog
What’s new.
Recent updates and improvements. New features, fixes, and security patches — kept in plain English.
Unreleased
In progressAdded
- Language switcher (EN/ES) — client-side locale store built on `useSyncExternalStore` (no hydration flash, cross-tab sync via storage events), translated navbar + hero + footer, and an accessible segmented switcher in the navbar. Route-level i18n via `next-intl` is the documented upgrade path.
Changed
- The EN/ES switcher now covers the entire visitor journey — the full landing page (Features, Stack, Testimonials, FAQ, CTA, stats band), the pricing page body, and all four auth flows (sign in incl. magic-link + Google modes, sign up, forgot password, reset password). The switcher itself now also appears in the auth shell header. Landing sections dropped a stale "RLS" mention (this edition uses application-layer authorization).
- The switcher is present on every public page — added to the blog navbar, the docs layout header, the playground header, and the legal pages (privacy policy, terms of service). Blog post bodies, docs guides, and legal text remain English; route-level i18n via `next-intl` is the documented upgrade path.
v1.1.0
Added
- 24 themed color presets with live switching and dark mode
- 55+ playground components catalog at `/playground`
- In-app documentation at `/docs` (auth, database, email, payments, seo, styling, observability)
- Idempotency on Stripe and LemonSqueezy webhooks (early-return on duplicate `event_id` plus `onConflictDoNothing` on every create)
- Real LemonSqueezy invoice and subscription ids in webhook handler
- Row-level security policies wrapped in `(SELECT auth.uid())` / `(SELECT auth.jwt()->>'role')` for planner hoisting
- Lazy-initialised server clients (Stripe, Drizzle, Supabase admin) so the production build no longer requires `STRIPE_SECRET_KEY`, `DATABASE_URL`, or `SUPABASE_SERVICE_ROLE_KEY`
- Health probe at `/api/health` with database ping, marked `force-dynamic` so it never runs at build time
- In-memory rate limiter at `src/lib/rate-limit.ts` applied to `/api/checkout`, `/api/stripe/portal`, `/api/account/delete`
- PII redaction in `src/lib/logger.ts` (`PII_KEYS` set + `redactValue()` walker)
- Middleware (`proxy.ts`) short-circuits webhook paths so Supabase middleware never sees Stripe / LemonSqueezy / Mailgun traffic
- CI workflow (`.github/workflows/ci.yml`): lint, typecheck, and build on every PR with a Postgres service
- Docker compose for development and production with PostgreSQL and MongoDB variants
- Supabase auth sync webhook handler with `timingSafeEqual` signature verification and a required `SUPABASE_WEBHOOK_SECRET` in production
- Dashboard at `/dashboard` with persistent sidebar, mobile drawer, and framer-motion active-link indicator
- API endpoints: `POST /api/stripe/portal` (Stripe billing portal), `POST /api/account/delete` (cancel subs + cascade delete)
- Observability shim at `src/lib/observability.ts` — opt-in PostHog analytics and Sentry error tracking. No-op until you install the package and set the env var
- RSS 2.0 feed at `/rss.xml` with 1-hour cache, linked from `<head>` via `alternates.types`
- Branded 404 page at `app/not-found.tsx`
- AGENTS.md operational notes for AI coding agents
- Husky + lint-staged pre-commit hook (ESLint + Prettier on staged files)
- Issue and PR templates under `.github/ISSUE_TEMPLATE/` and `.github/PULL_REQUEST_TEMPLATE.md`
- `.editorconfig` for cross-editor consistency
- `CONTRIBUTING.md` with workflow, conventions, and conventional commits
- Hallmark modern-minimal design system — quiet palette, hairline borders, no glow / glassmorphism / gradient orbs
- Production-hardening pass for sell-readiness
- Email templates redesigned to match the Hallmark modern-minimal design system — quiet palette, hairline borders, no emoji marketing. Brand colors and copy live in `src/config/email.ts` (overridable via env vars). Templates: `welcome`, `passwordReset`, `paymentSuccess`, `paymentFailed`, `subscriptionCancelled`, `emailVerification`, `notification`
- Receipt email is now sent automatically by the Stripe webhook on `invoice.payment_succeeded` (was: never sent). Includes plan name, formatted amount, hosted-invoice link
- Payment-failed email is now sent automatically by the Stripe webhook on `invoice.payment_failed` (was: missing). Includes reason and a link to update the payment method
- Cancellation email is now sent automatically by the Stripe webhook on `customer.subscription.deleted` (was: never sent)
- Password reset flow at `/auth/forgot-password` and `/auth/reset-password`. The forgot-password form calls Supabase's `resetPasswordForEmail`; the reset-password page (wrapped in `<Suspense>` because of `useSearchParams`) lets the user set a new password once Supabase's email link has opened a session
- "Forgot your password?" link added to the LoginForm (both password and magic-link modes)
- `.cursorrules` and `CLAUDE.md` at the repo root so AI-agent-native buyers (Cursor, Claude Code) get the same operational notes that `AGENTS.md` documents — short, high-signal, no duplication
- `/waitlist` pre-launch page (env-gated, off by default) with editable copy in `src/config/waitlist.ts`. Set `NEXT_PUBLIC_WAITLIST_ENABLED=true` and run `supabase/migrations/004_waitlist.sql` to enable
- `POST /api/waitlist` endpoint with rate limiting (5/min/IP), idempotent on email conflict, and a graceful 404 when the feature is disabled. GET returns 405
Changed
- README rewritten to match the actual shipped code (npm, real theme/component counts, in-app docs links, production checklist)
- Brand cleanup: removed all ShipFree / idee8 / gopump references across Docker, env files, and blog
- Privacy and Terms pages are generic English boilerplate clearly marked as placeholder
- `useAuth()` now lazy-creates the Supabase client inside `queryFn` so the dashboard layout can pre-render without env vars
- Bumped `next` to `^16.2.7` and `drizzle-orm` to `^0.45.2` for security advisories
- Removed unused `next-auth` dependency, `packageManager: pnpm`, and `pnpm.overrides` block
- Old landing `Enhanced*` / `WhyShip*` components removed in favor of the new sections
Security
- All webhook handlers verify provider signatures before parsing the body
- Auth webhook requires `SUPABASE_WEBHOOK_SECRET` outside development
- Rate-limited `/api/checkout` (10/min), `/api/stripe/portal` (10/min), `/api/account/delete` (3/hour) per IP
- Production logs redact PII keys (`email`, `password`, `token`, `apiKey`, `secret`, `authorization`, `cookie`)
- Observability shim never throws — analytics and error reporting cannot break a request
- npm audit reduced from 9 to 6 vulnerabilities (all dev-only moderate; no high or critical)
Better
- Supabase Auth replaced with Better Auth 1.7 on any plain Postgres (Neon, Railway, Supabase, self-hosted). One `user` table carries auth + app fields; sessions, accounts, and verification are Better Auth-managed.
- Flows: email/password with required email verification (stateless signed tokens), magic links (new template), Google OAuth, password reset with session revocation, account deletion with immediate cookie clearing.
- Security: signed 5-minute cookie cache, 1-hour fresh-session window, AES-256-GCM encrypted OAuth tokens at rest, per-endpoint rate limits (sign-in 5/min, sign-up and reset 3/min), session audit hook, JSON 401s from the proxy for API routes.
- Proxy moved to `src/` — Next.js silently ignores it at the repo root; `/playground` and `/waitlist` are public; API calls get JSON 401s.
- Fail-fast env validation via `src/instrumentation.ts` (`SKIP_ENV_VALIDATION=1` for CI).
- `migrations/` replaces `supabase/` — no RLS by design (app-layer authorization, documented); timestamps aligned to `timestamptz`.
- `SKIP_EMAILS` now logs action links, so the whole auth flow is testable without Mailgun.
- Docs rewritten for this edition: README, `/docs/auth`, `/docs/database`, AGENTS.md, CLAUDE.md, `.env.example`, CI, docker notes.
Email
- Email log table (`email_log`) — one row per send, updated by the Mailgun inbound webhook on delivery events. Soft FK to `user.id` so the log survives user hard-delete. See `migrations/003_email_log.sql` and `src/db/queries.ts`.
- Three new transactional templates matching the modern-minimal design system:
- New triggers wired into Stripe (`src/lib/webhooks/stripe-handler.ts`):
- New triggers wired into LemonSqueezy (`src/lib/webhooks/lemonsqueezy-handler.ts`):
- Mailgun inbound webhook (`/api/mailgun/webhook`) now dispatches between two flows:
- One-click unsubscribe (RFC 8058) at `/api/unsubscribe` — POST for one-click (Gmail/Outlook), GET for link-click. Tags notifications as `marketing` so `sendEmail()` adds the `List-Unsubscribe` headers automatically. Transactional emails never carry an unsubscribe link.
- Dev preview route at `/dev/emails` — every template rendered with sample data, side-by-side HTML iframe + plain-text. 404 in production.
- Test send script at `scripts/test-email.ts` — `npm run email:test -- <template> <email>` to send a real email through Mailgun (or log-only with `SKIP_EMAILS=true`).
- All send functions now accept an optional `userId` and write to `email_log` with the Mailgun provider message id, enabling delivery tracking end-to-end.
Documentation
- `LICENSE` — professional commercial template license
- `SUGGESTIONS.md` — production hardening ideas the template intentionally doesn't include (Redis, observability providers, background jobs, file storage, etc.) with reasoning and links
- `README.md` — full rewrite as a professional sell-page
v1.0.0
Added
- Initial release
- Next.js 16 with App Router and Turbopack
- Supabase auth (email, magic link, Google OAuth)
- Stripe and LemonSqueezy payment integration
- Mailgun transactional email
- Drizzle ORM with PostgreSQL and row-level security
- Markdown blog with Open Graph, sitemap, and JSON-LD
- Theme system with light/dark CSS variables
- Docker compose for local development and production