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 examples/electron/offline-first/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"better-sqlite3": "^12.6.2",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"zod": "^3.25.76"
"zod": "^4.6.7"
},
"devDependencies": {
"@electron/rebuild": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-native/offline-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-native-safe-area-context": "5.4.0",
"react-native-screens": "~4.11.1",
"use-latest-callback": "^0.3.3",
"zod": "^3.25.76"
"zod": "^4.6.7"
},
"devDependencies": {
"@babel/core": "^7.29.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/offline-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@tanstack/react-start": "^1.168.60",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"zod": "^3.25.76"
"zod": "^4.6.7"
},
"devDependencies": {
"@tailwindcss/vite": "^4.1.18",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/projects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tailwindcss": "^4.1.18",
"vite": "^7.3.7",
"vite-tsconfig-paths": "^5.1.4",
"zod": "^4.3.6"
"zod": "^4.6.7"
},
"devDependencies": {
"@eslint/compat": "^1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tailwindcss": "^4.1.18",
"trailbase": "^0.10.0",
"vite-tsconfig-paths": "^5.1.4",
"zod": "^4.3.6"
"zod": "^4.6.7"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"typescript": "^5.9.2",
"vite": "^7.3.7",
"vitest": "^3.2.4",
"zod": "^3.25.76"
"zod": "^4.6.7"
}
}
6 changes: 3 additions & 3 deletions packages/db/tests/collection-schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ describe(`Collection with schema validation`, () => {
.array(z.string())
.transform((val) => val.map((tag) => tag.toLowerCase())),
metadata: z
.record(z.string())
.record(z.string(), z.string())
.transform((val) => ({ ...val, processed: true })),
})

Expand Down Expand Up @@ -655,9 +655,9 @@ describe(`Collection with schema validation`, () => {
.transform((val) => val.map((tag) => tag.toLowerCase())),
metadata: z
.union([
z.record(z.string()),
z.record(z.string(), z.string()),
z
.record(z.string())
.record(z.string(), z.string())
.transform((val) => ({ ...val, processed: true })),
])
.transform((val) => ({ ...val, processed: true })),
Expand Down
2 changes: 1 addition & 1 deletion packages/db/tests/indexed-db/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ it('preserves exported transformed rows when invalid restore input is rejected',
const backup = await c.utils.exportData()
// @ts-expect-error Schema output is not the string input expected by import.
await expect(c.utils.importData(backup)).rejects.toThrow(
/Expected string/,
/Invalid input: expected string, received Date/,
)
expect(await c.utils.exportData()).toEqual(backup)
await c.utils.importData(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ describePowerSyncSchema(`PowerSync Schema Integration`, () => {
expect(collection.size).eq(0)
expectInsertValidation(
() => collection.insert({} as any),
`Required - path: id`,
{ message: `Required`, path: [`id`] },
`Invalid input: expected string, received undefined - path: id`,
{
message: `Invalid input: expected string, received undefined`,
path: [`id`],
},
)
expect(collection.size).eq(0)
} finally {
Expand Down
113 changes: 54 additions & 59 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion scripts/doc-snippets-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
"9a89b362c8137d5f",
"a36a525b02c6d42e",
"b3e1d768a9f479ca",
"c8016cdf6c039ac1",
"fd31d501616eab04"
],
"docs/guides/sqlite-persistence.md": [
Expand Down
Loading