This repository was archived by the owner on May 1, 2026. It is now read-only.
2.0.0
What's Changed
This is a new major version of Edge-CSRF (2.0.0) with several breaking changes:
- Splits functionality into three separate public packages:
@edge-csrf/nextjs- Next.js integration library@edge-csrf/sveltekit- SvelteKit integration library@edge-csrf/core- Core API
- The integration libraries each offer high-level and low-level integration methods:
- A method for creating drop-in middleware (e.g.
createCsrfMiddleware(),createCsrfHandle()) - A method for creating functions that can be used inside middleware (e.g.
createCsrfProtect())
- A method for creating drop-in middleware (e.g.
- Internally the code was re-organized into a monorepo structure with three public packages and a private package for shared code using pnpm workspaces for management
- It should be easy to add new framework integrations with the new repo structure
Full Changelog: 1.0.11...2.0.0