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
5 changes: 5 additions & 0 deletions .changeset/update-tb-deps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/trailbase-db-collection': patch
---

Update TrailBase's client to v0.10 and lock-down server version for e2e tests.
2 changes: 1 addition & 1 deletion examples/react/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react": "^19.2.4",
"react-dom": "^19.2.4",
"tailwindcss": "^4.1.18",
"trailbase": "^0.8.0",
"trailbase": "^0.10.0",
"vite-tsconfig-paths": "^5.1.4",
"zod": "^4.3.6"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"postgres": "^3.4.8",
"solid-js": "^1.9.11",
"tailwindcss": "^4.1.18",
"trailbase": "^0.8.0",
"trailbase": "^0.10.0",
"vite-tsconfig-paths": "^5.1.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/trailbase-db-collection/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM trailbase/trailbase:latest
FROM trailbase/trailbase:0.25.1

COPY traildepot /app/traildepot/
EXPOSE 4000
Expand Down
2 changes: 1 addition & 1 deletion packages/trailbase-db-collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@tanstack/db": "workspace:*",
"@tanstack/store": "^0.9.2",
"debug": "^4.4.3",
"trailbase": "^0.8.0"
"trailbase": "^0.10.0"
},
"peerDependencies": {
"typescript": ">=4.7"
Expand Down
6 changes: 3 additions & 3 deletions packages/trailbase-db-collection/src/trailbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ function buildFilters<
}

function serializeValue<T = any>(column: string, value: T): string {
const convert = (config.serialize as any)[column]
if (convert) {
return `${convert(value)}`
const conv = (config.serialize as any)[column]
if (conv) {
return `${conv(value)}`
}

if (typeof value === 'boolean') {
Expand Down
3 changes: 3 additions & 0 deletions packages/trailbase-db-collection/tests/trailbase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class MockRecordApi<T> implements RecordApi<T> {
listOp = vi.fn((_opts?: ListOpts): ListOperation<T> => {
throw `listOp`
})
listGeoOp = vi.fn((_geometryColumn: string, _opts?: ListOpts) => {
throw `listGeoOp`
})

read = vi.fn(
(
Expand Down
31 changes: 22 additions & 9 deletions pnpm-lock.yaml

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

Loading