Releases: adonisjs/shield
Releases · adonisjs/shield
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
Use session.flashErrors method to flash CSRF error
- docs: update readme 8725c25
- refactor: use session.flashErrors method to flash error into error bag 7c600d7
- chore: update dependencies fe5bd72
- refactor: use usingEdgeJS flag to detect is edge is installed 0e9e8e0
Full Changelog: v8.0.0-9...v8.0.0-10
Generate bundled types using TSC
Add ApiClient plugin to set CSRF tokens during testing
- chore: add @japa/api-client as a peer dependency 1fa4199
- feat: add plugin to work with csrfTokens 671ac72
- fix: augemented types to surface from the middleware e742c22
Full Changelog: v8.0.0-7...v8.0.0-8
Fix for the last broken release
- fix: published files list 4739a9f
Full Changelog: v8.0.0-6...v8.0.0-7
Use tsup for bundling
- chore: use tsup for bundling 3c24527
- test: add tests for the configure command bcc9e34
- refactor: internals 7582bf3
- chore: update dependencies 8b7a593
Full Changelog: v8.0.0-5...v8.0.0-6