diff --git a/.changeset/small-pumas-scream.md b/.changeset/small-pumas-scream.md deleted file mode 100644 index 43f2517..0000000 --- a/.changeset/small-pumas-scream.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -"vue-clerk": patch ---- - -Support roles and permissions in Nuxt middleware - -Examples: - -Allow users that have the `org:invoices:create` permission - -```ts -definePageMeta({ - middleware: 'auth', - auth: { - permission: 'org:invoices:create' - } -}) -``` - -Allow users with the `org:billing` role - -```ts -definePageMeta({ - middleware: 'auth', - auth: { - role: 'org:billing' - } -}) -``` - diff --git a/packages/vue-clerk/CHANGELOG.md b/packages/vue-clerk/CHANGELOG.md index 236d315..bfc7e26 100644 --- a/packages/vue-clerk/CHANGELOG.md +++ b/packages/vue-clerk/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 0.6.8 + +### Patch Changes + +- 4ebc2cc: Support roles and permissions in Nuxt middleware + + Examples: + + Allow users that have the `org:invoices:create` permission + + ```ts + definePageMeta({ + middleware: "auth", + auth: { + permission: "org:invoices:create", + }, + }); + ``` + + Allow users with the `org:billing` role + + ```ts + definePageMeta({ + middleware: "auth", + auth: { + role: "org:billing", + }, + }); + ``` + ## 0.6.7 ### Patch Changes diff --git a/packages/vue-clerk/package.json b/packages/vue-clerk/package.json index 3976665..dfffa8f 100644 --- a/packages/vue-clerk/package.json +++ b/packages/vue-clerk/package.json @@ -1,7 +1,7 @@ { "name": "vue-clerk", "type": "module", - "version": "0.6.7", + "version": "0.6.8", "description": "Unofficial Vue + Clerk integration.", "author": "Robert Soriano ", "license": "MIT",