Skip to content

Releases: adonisjs/bouncer

Target v7 core and Node.js 24

22 Sep 09:20
Compare
Choose a tag to compare
Pre-release

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

  • remove inbuilt types in favor of AdonisJS core shared types (8cab392)
  • use Node 24 (bef46f2)

Full Changelog: v3.1.5...v4.0.0-next.0

Fix types inference for policies wrapper `AuthorizerResponse` inside a `Promise`

09 Jun 05:59
Compare
Choose a tag to compare

3.1.6 (2025-06-09)

Bug Fixes

  • abilities builder to infer return type of the Authorizer (e8f6bcd)
  • typing issue with AuthorizerResponse wrapped inside a Promise (ced4674), closes #14 #18

Full Changelog: v3.1.5...v3.1.6

Update dependencies

29 Jan 08:03
Compare
Choose a tag to compare

3.1.5 (2025-01-29)

Full Changelog: v3.1.4...v3.1.5

Add missing dependencies

07 Nov 22:44
Compare
Choose a tag to compare

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

24 May 09:10
Compare
Choose a tag to compare
  • fix: allow async policy actions at types level fa3ef8c
  • chore: update dependencies 2a2a85c

Full Changelog: v3.1.2...v3.1.3

Do not cache policies when running in hot mode

26 Apr 04:33
Compare
Choose a tag to compare
  • 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

25 Jan 20:52
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v3.1.0...v3.1.1

Update i18n error identifier and JSONAPI error code

22 Jan 14:21
Compare
Choose a tag to compare

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

09 Jan 11:17
dd143e1
Compare
Choose a tag to compare

Please consult the following release to view list of breaking changes

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

New Contributors

Full Changelog: v2.3.0...v3.0.0

Auto register policy created via make:policy command to policies collection

25 Dec 13:34
Compare
Choose a tag to compare
  • 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