Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@
"usehooks-ts": "^3.1.0",
"viem": "^2.16.1",
"world-countries": "^5.0.0",
"zod": "^3.25.76"
"zod": "^4.3.5"
}
}
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/scalars/graphql/Date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const type = 'string'

export const typedef = 'scalar Date'

export const schema = z.string().datetime()
export const schema = z.iso.datetime()

export const stringSchema = 'z.string().datetime()'
export const stringSchema = 'z.iso.datetime()'

const datetimeValidation = (value: unknown): string => {
if (typeof value !== 'string') {
Expand Down
4 changes: 2 additions & 2 deletions src/scalars/graphql/DateTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const type = 'string'

export const typedef = 'scalar DateTime'

export const schema = z.string().datetime()
export const schema = z.iso.datetime()

export const stringSchema = 'z.string().datetime()'
export const stringSchema = 'z.iso.datetime()'

const datetimeValidation = (value: unknown): string => {
if (typeof value !== 'string') {
Expand Down
4 changes: 2 additions & 2 deletions src/scalars/graphql/EmailAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const type = 'string' // TS type in string form

export const typedef = 'scalar EmailAddress'

export const schema = z.string().email()
export const schema = z.email()

export const stringSchema = 'z.string().email()'
export const stringSchema = 'z.email()'

const emailValidation = (value: unknown): string => {
if (typeof value !== 'string') {
Expand Down
4 changes: 2 additions & 2 deletions src/scalars/graphql/URL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const type = 'string'

export const typedef = 'scalar URL'

export const schema = z.string().url()
export const schema = z.url()

export const stringSchema = 'z.string().url()'
export const stringSchema = 'z.url()'

const urlValidation = (value: unknown): string => {
if (typeof value !== 'string') {
Expand Down
Loading