Releases: adonisjs/bouncer
Target v7 core and Node.js 24
4.0.0-next.0 (2025-09-22)
Bug Fixes
- abilities builder to infer return type of the Authorizer (e8f6bcd)
- typing issue with AuthorizerResponse wrapped inside a Promise (ced4674), closes #14 #18
Features
Full Changelog: v3.1.5...v4.0.0-next.0
Fix types inference for policies wrapper `AuthorizerResponse` inside a `Promise`
Update dependencies
3.1.5 (2025-01-29)
Full Changelog: v3.1.4...v3.1.5
Add missing dependencies
This release addresses missing dependencies needed for strict package managers like Yarn
and pnpm
.
We've also updated several development dependencies and automated the release process using GitHub Actions.
3.1.4 (2024-11-07)
- chore: add missing dependency (a2c9b8b)
- chore(package): correct author & contributors field (66a16a7)
- ci: add release workflow (bc3cd9e)
- ci: move to release-it (e60b1e9)
- ci: update release script (99184cc)
- refactor: migrate to ts-node-maintained (c2fc059)
- fix: add missing peer dependency (0d29bbf)
Full Changelog: v3.1.3...v3.1.4
Fix types to support async policy methods
Full Changelog: v3.1.2...v3.1.3
Do not cache policies when running in hot mode
- refactor: do not store policies in global cache in hot mode 123d662
- refactor: bypass policies cache when running in hot mode 82d7f4b
- chore: update dependencies 993ab43
Full Changelog: v3.1.1...v3.1.2
Fix configure command
Fix node ace configure @adonisjs/bouncer
which didnt @adonisjs/bouncer/commands
in Adonis RC file
Commits
- test: assertion for checking bouncer commands has been registered via configure deebe24
- Add commands to rcFile 658b71d
What's Changed
- Add commands to rcFile by @brunolipe-a in #12
New Contributors
- @brunolipe-a made their first contribution in #12
Full Changelog: v3.1.0...v3.1.1
Update i18n error identifier and JSONAPI error code
The error code for the JSONAPI response has been updated to E_AUTHORIZATION_FAILURE
. And the identifier for reading i18n messages has been updated to errors.E_AUTHORIZATION_FAILURE
Commits
- refactor: update error handler i18n message identifier and JSONAPI error code 4d3ec8b
- chore: update dependencies 676338d
Full Changelog: v3.0.0...v3.1.0
Stable major release
Please consult the following release to view list of breaking changes
- Breaking changes - https://github.com/adonisjs/bouncer/releases/tag/v3.0.0-0
Commits
- chore: publish under latest tag 03c0b70
- Merge pull request #11 from adonisjs/next dd143e1
- chore: bundle types.ts file via tsup as well b74f570
- refactor: export stubsRoot 5cca17f
- chore: update dependencies 42c90e3
What's Changed
- Merge to develop for final release by @thetutlage in #11
New Contributors
- @thetutlage made their first contribution in #11
Full Changelog: v2.3.0...v3.0.0
Auto register policy created via make:policy command to policies collection
- fix: convert import path to use unix slash 429435d
- refactor: upgrade configure hook to use latest APIs 528fbb0
- feat: auto register policy to policies list 44fbb51
- chore: update dependencies and use EmitterLike 5636804
Full Changelog: v3.0.0-1...v3.0.0-2