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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 'latest'
version: '10'
run_install: true

# no need to check this separately, see below
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: pnpm/action-setup@v3
with:
version: 'latest'
version: '10'
run_install: true

- name: Set version number in package.json
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.8.2
=====

* (bug) Wrap `z.unknown()` with `z.optional()` in `errorSchema.data`, due changes in zod (unknown is now NonOptional).


2.8.1
=====

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "pnpm run build && cd dist && pnpm version '2.0.0-dummy' --no-git-tag-version && npm pack --dry-run && publint"
},
"dependencies": {
"zod": "^4.3.6"
"zod": "^4.4.3"
},
"optionalDependencies": {
"next": "^15.5.12 || ^16.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const errorSchema = z.object({
ok: z.literal(false),
error: z.optional(z.string()),
errorMessage: z.optional(z.string()),
data: z.unknown(),
data: z.optional(z.unknown()),
});

type Logger = Readonly<{
Expand Down
Loading