@nuxt-customer-portal/clients 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @nuxt-customer-portal/clients
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Keep private-client invitation validation compatible with the Zod runtime resolved by Nuxt production bundles.
8
+ - Updated dependencies [eb2a85c]
9
+ - @nuxt-customer-portal/core@0.4.3
10
+ - @nuxt-customer-portal/ui@0.4.3
11
+
12
+ ## 0.4.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [0f05ccf]
17
+ - @nuxt-customer-portal/ui@0.4.2
18
+ - @nuxt-customer-portal/core@0.4.2
19
+
3
20
  ## 0.4.1
4
21
 
5
22
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-customer-portal/clients",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "license": "MIT",
5
5
  "homepage": "https://nuxt-customer-portal.com",
6
6
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "nanoid": "^5.1.6",
42
42
  "pg": "^8.22.0",
43
43
  "zod": "^4.4.3",
44
- "@nuxt-customer-portal/core": "^0.4.1",
45
- "@nuxt-customer-portal/ui": "^0.4.1"
44
+ "@nuxt-customer-portal/core": "^0.4.3",
45
+ "@nuxt-customer-portal/ui": "^0.4.3"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "nuxt": "^4.5.1",
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  id: 'clients',
3
- version: '0.4.1',
3
+ version: '0.4.3',
4
4
  source: '@nuxt-customer-portal/clients',
5
5
  dependsOn: ['core', 'ui'],
6
6
  schema: './server/db/schema/clients.ts',
@@ -72,7 +72,7 @@ export type ClientCreateInput = z.infer<typeof genericClientCreateSchema>
72
72
  export type ClientUpdateInput = z.infer<typeof clientUpdateSchema>
73
73
 
74
74
  export const genericClientInvitationSchema = z.object({
75
- email: z.email(),
75
+ email: z.string().email(),
76
76
  role: z.enum(['owner', 'admin', 'member']).default('member')
77
77
  })
78
78
 
@@ -2,7 +2,7 @@ import { z } from 'zod'
2
2
 
3
3
  export const privateClientInvitationSchema = z
4
4
  .object({
5
- requestId: z.uuid(),
5
+ requestId: z.string().uuid(),
6
6
  clientId: z.string().min(1).optional(),
7
7
  name: z.string().trim().min(2).max(160).optional(),
8
8
  email: z.string().trim().toLowerCase().email(),