Releases: adonisjs/shield
Releases · adonisjs/shield
Remove helmet-csp and do not flash input data for Inertia requests
Update dependencies
9.0.0-next.2 (2025-12-19)
Full Changelog: v9.0.0-next.1...v9.0.0-next.2
Remove helmet-csp package in favor of inline implementation
9.0.0-next.1 (2025-09-22)
Features
- remove helmet-csp in favor of inline implementation (c71cdef)
Full Changelog: v9.0.0-next.0...v9.0.0-next.1
Target v7 and do not flash input data during Inertia requests
9.0.0-next.0 (2025-09-10)
Features
- do not flash input data for Inertia requests (f7daa82)
- generate and share csrf token on error as well (c1531f6)
Full Changelog: v8.1.2...v9.0.0-next.0
Generate CSRF token even when the validation has failed
8.2.0 (2025-03-25)
Features
- generate and share csrf token on error as well (c1531f6)
Full Changelog: v8.1.2...v8.2.0
Work with @japa/api-client 3.0
8.1.2 (2025-01-30)
What's Changed
- Add @japa/api-client 2.x and 3.x as peerDependency by @marcuspoehls in #43
New Contributors
- @marcuspoehls made their first contribution in #43
Full Changelog: v8.1.1...v8.1.2
Fix shieldApiClient plugin export function
- fix: japa plugin export function 7e7f6c7
- chore: update dependencies 7c64030
- docs: update readme e4bc2b8
- chore: update dependencies 6073a54
Full Changelog: v8.1.0...v8.1.1
Optionally read CSRF exception error message via i18n
This release adds support for reading CSRF error message from i18n integration. You can define the translation message for CSRF errors inside the errors.json file as follows.
{
"E_BAD_CSRF_TOKEN": "Session expired"
}Also, fixed the bug to include input data when sending CSRF error via flash messages
Commits
- feat: add csrf error message using i18n 49537e7
- refactor: move tests_helpers file to test directory as helpers.ts 9d462f6
- test: update failing tests d5141ae
- chore: update dependencies 68e2da9
- fix: flash input data on CSRF error 0273f51
- chore: update dependencies bbb1d94
Full Changelog: v8.0.1...v8.1.0
Fix peer dependencies range
- fix: peer dependencies range f3c7818
Full Changelog: v8.0.0...v8.0.1
Stable major release
Please consult the following releases to learn more about the breaking changes and new additions.
- https://github.com/adonisjs/shield/releases/tag/v8.0.0-0
- https://github.com/adonisjs/shield/releases/tag/v8.0.0-1
- https://github.com/adonisjs/shield/releases/tag/v8.0.0-3
- https://github.com/adonisjs/shield/releases/tag/v8.0.0-4
- https://github.com/adonisjs/shield/releases/tag/v8.0.0-8
Commits
- chore: publish under latest tag f9c6235
- Merge pull request #40 from adonisjs/next bf81729
- refactor: export stubsRoot and bundle types using tsup as well 910b768
- chore: update dependencies 681cafd
What's Changed
- Merge to develop for final release by @thetutlage in #40
Full Changelog: v7.1.1...v8.0.0