Skip to content

Commit a6eb289

Browse files
Update TrailBase client and lock e2e-test server to a specific version. (#1398)
* Update TrailBase client and lock e2e-test server to a specific version. The latter is in preparation to changing the message format to add sequence numbers and eventually implement TanStack/db truncating for the TrailBase integration. * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 85f5435 commit a6eb289

8 files changed

Lines changed: 37 additions & 16 deletions

File tree

.changeset/update-tb-deps.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/trailbase-db-collection': patch
3+
---
4+
5+
Update TrailBase's client to v0.10 and lock-down server version for e2e tests.

examples/react/todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react": "^19.2.4",
1919
"react-dom": "^19.2.4",
2020
"tailwindcss": "^4.1.18",
21-
"trailbase": "^0.8.0",
21+
"trailbase": "^0.10.0",
2222
"vite-tsconfig-paths": "^5.1.4",
2323
"zod": "^4.3.6"
2424
},

examples/solid/todo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"postgres": "^3.4.8",
1818
"solid-js": "^1.9.11",
1919
"tailwindcss": "^4.1.18",
20-
"trailbase": "^0.8.0",
20+
"trailbase": "^0.10.0",
2121
"vite-tsconfig-paths": "^5.1.4"
2222
},
2323
"devDependencies": {

packages/trailbase-db-collection/e2e/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM trailbase/trailbase:latest
1+
FROM trailbase/trailbase:0.25.1
22

33
COPY traildepot /app/traildepot/
44
EXPOSE 4000

packages/trailbase-db-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@tanstack/db": "workspace:*",
5151
"@tanstack/store": "^0.9.2",
5252
"debug": "^4.4.3",
53-
"trailbase": "^0.8.0"
53+
"trailbase": "^0.10.0"
5454
},
5555
"peerDependencies": {
5656
"typescript": ">=4.7"

packages/trailbase-db-collection/src/trailbase.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ function buildFilters<
486486
}
487487

488488
function serializeValue<T = any>(column: string, value: T): string {
489-
const convert = (config.serialize as any)[column]
490-
if (convert) {
491-
return `${convert(value)}`
489+
const conv = (config.serialize as any)[column]
490+
if (conv) {
491+
return `${conv(value)}`
492492
}
493493

494494
if (typeof value === 'boolean') {

packages/trailbase-db-collection/tests/trailbase.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class MockRecordApi<T> implements RecordApi<T> {
4848
listOp = vi.fn((_opts?: ListOpts): ListOperation<T> => {
4949
throw `listOp`
5050
})
51+
listGeoOp = vi.fn((_geometryColumn: string, _opts?: ListOpts) => {
52+
throw `listGeoOp`
53+
})
5154

5255
read = vi.fn(
5356
(

pnpm-lock.yaml

Lines changed: 22 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)