v0.3.4 — server-function guard on the canonical lineage
Runtime protection now covers the TanStack server-function path
Unifies the connector on the vendored node-waf engine and adds the server-function guard (#43), superseding 0.3.3 (which shipped only the browser-tunnel guard).
protectwires the guard as both a request middleware (browser → Supabase tunnel) and a function middleware (TanStack server functions) — so both of a Lovable app's data paths are covered, however it was built.- The WAF engine is vendored into the package (
@patchstack/connect/protect); the installer scaffolds onlyguard.ts+rules.json. protectis per-piece idempotent (clean re-runs and upgrades); ships types for the./protectsubpath.
Validated live end-to-end on a fresh Lovable app: a UI task-add carrying a stored-XSS marked payload is refused by the server-function guard (receipt returned, task never saved), while benign tasks save. Requires Node >= 18.