-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements 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
- Loading branch information
Showing
150 changed files
with
6,301 additions
and
29,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ jobs: | |
packages: write | ||
contents: read | ||
steps: | ||
- name: Get tag name | ||
uses: olegtarasov/[email protected] | ||
id: tagName | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -21,7 +24,8 @@ jobs: | |
with: | ||
version: 8 | ||
- run: pnpm install | ||
- run: pnpm build | ||
- run: pnpm publish --no-git-checks --access public | ||
- run: pnpm -r build | ||
- run: /bin/bash set-version.sh ${{ steps.tagName.outputs.tag }} | ||
- run: pnpm -r publish --no-git-checks --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.