Skip to content

2.0.0

Compare
Choose a tag to compare
@amorey amorey released this 21 Apr 05:02
· 23 commits to main since this release
0d7007b

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())
  • 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