Skip to content

Releases: Barbapapazes/nuxt-authorization

v0.3.3

26 Jan 12:42
8a1b546
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Support multiple slots in Bouncer component (#38)

💅 Refactors

✅ Tests

  • Add missing bouncer tests (c7f3881)

❤️ Contributors

v0.3.2

25 Nov 12:00
f8e73cb
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Support multiple abilities for components (#35)

📖 Documentation

✅ Tests

  • Update to handle more cases (9b8e6f9)

❤️ Contributors

v0.3.1

20 Nov 14:31
83279ac
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Support as to change the rendered component (#33)

🏡 Chore

✅ Tests

❤️ Contributors

v0.3.0

03 Oct 15:05
Compare
Choose a tag to compare

compare changes

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

v0.2.0

03 Oct 13:53
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Bouncer component (#19)
  • Add reactivity to components (#18)

💅 Refactors

  • Use compatibility v4 in playground (27a5610)
  • ⚠️ Types (#23)

🏡 Chore

⚠️ Breaking Changes

  • ⚠️ Types (#23)

❤️ Contributors

v0.1.0

29 Aug 20:24
Compare
Choose a tag to compare

⚠️ Breaking Changes

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).

compare changes

🚀 Enhancements

🩹 Fixes

  • Make component prop args optional (27d51b2)

💅 Refactors

  • ⚠️ Prefer event.context instead of nitro-app (57345df)

📖 Documentation

  • Explain usage with v4 and fix component props (ffc1c4e)
  • Update usage with nitro (e1a48c6)

🏡 Chore

✅ Tests

🤖 CI

⚠️ Breaking Changes

  • ⚠️ Prefer event.context instead of nitro-app (57345df)

❤️ Contributors

v0.0.4

13 Jun 08:40
Compare
Choose a tag to compare

compare changes

📖 Documentation

🏡 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

v0.0.3

12 Jun 13:54
Compare
Choose a tag to compare

compare changes

🩹 Fixes

❤️ Contributors

v0.0.2

12 Jun 13:40
Compare
Choose a tag to compare

compare changes

🩹 Fixes

📖 Documentation

❤️ Contributors

v0.0.1

12 Jun 13:30
Compare
Choose a tag to compare