Releases: Barbapapazes/nuxt-authorization
Releases · Barbapapazes/nuxt-authorization
v0.3.3
🚀 Enhancements
- Support multiple slots in
Bouncer
component (#38)
💅 Refactors
- Bouncer (3cdc571)
✅ Tests
- Add missing bouncer tests (c7f3881)
❤️ Contributors
- Barbapapazes [email protected]
- Daniele Nicosia [email protected]
v0.3.2
🚀 Enhancements
- Support multiple abilities for components (#35)
📖 Documentation
- Update usage (11bf5f4)
✅ Tests
- Update to handle more cases (9b8e6f9)
❤️ Contributors
- Barbapapazes [email protected]
- Maarten Van Hunsel (@maartenvanhunsel)
v0.3.1
🚀 Enhancements
- Support
as
to change the rendered component (#33)
🏡 Chore
✅ Tests
- Fix (2cd1a71)
❤️ Contributors
- Barbapapazes [email protected]
- Maarten Van Hunsel (@maartenvanhunsel)
v0.3.0
The prop bouncer-ability
has been renamed to ability
in order to reduce verbosity. You only have to do a Find&Replace
to be good to go for this update.
💅 Refactors
⚠️ Less verbose components arguments (#25)
⚠️ Breaking Changes
⚠️ Less verbose components arguments (#25)
❤️ Contributors
- Daniele Nicosia [email protected]
v0.2.0
🚀 Enhancements
💅 Refactors
🏡 Chore
⚠️ Breaking Changes
⚠️ Types (#23)
❤️ Contributors
- Daniele Nicosia (@zAlweNy26)
- Matthias Esterl (@madc)
- Barbapapazes [email protected]
v0.1.0
The server resolver must now be bind to the event.context
using the request
hook.
Before
export default defineNitroPlugin((nitroApp) => {
nitroApp.$authorization = {
resolveServerUser: () => {
return { id: 2, name: 'User 1' } satisfies User
},
}
})
After
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('request', async (event) => {
event.context.$authorization = {
resolveServerUser: () => {
return { id: 1, name: 'User 1' }
},
}
})
})
Using the event.context
is recommended to attach custom properties (instead of the nitroApp
).
🚀 Enhancements
- Export types (8472ede)
🩹 Fixes
- Make component prop args optional (27d51b2)
💅 Refactors
⚠️ Prefer event.context instead of nitro-app (57345df)
📖 Documentation
🏡 Chore
- Remove exclude in tsconfig (0980005)
- Update deps (515ed7a)
- Remove a log (9572561)
- Update playground (57ea855)
- Update lockfile (df72014)
✅ Tests
🤖 CI
- Install playwright (a6b08f9)
⚠️ Breaking Changes
⚠️ Prefer event.context instead of nitro-app (57345df)
❤️ Contributors
- Barbapapazes [email protected]
v0.0.4
📖 Documentation
- Write readme (da83bfd)
🏡 Chore
- Add renovate (84dab73)
- Remove unnecessary eslint rule at the top of the file (0562038)
- Credit adonis (36b331f)
- Rename bouncer to authorization-resolver in playground (ca6b6be)
- Add nuxt compatibility (722ce8a)
- Remove log (2b5bc78)
✅ Tests
- Add tests to core functions (35d4470)
🤖 CI
❤️ Contributors
- Barbapapazes [email protected]
v0.0.3
v0.0.2
🩹 Fixes
- Correct import (32006ee)
📖 Documentation
- Add info to readme (3077657)
❤️ Contributors
- Barbapapazes [email protected]