Skip to content

Commit 532e779

Browse files
kevin-dpclaude
andcommitted
chore: use preview @electric-sql/client with move-in support
Switch to the preview package from electric-sql/electric#4043 so that move-in event types are available without unsafe casts in tests. NOTE: replace the preview URL with the released version before merging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6464f47 commit 532e779

File tree

3 files changed

+2478
-1538
lines changed

3 files changed

+2478
-1538
lines changed

packages/electric-db-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"src"
4747
],
4848
"dependencies": {
49-
"@electric-sql/client": "^1.5.13",
49+
"@electric-sql/client": "https://pkg.pr.new/@electric-sql/client@4043",
5050
"@standard-schema/spec": "^1.1.0",
5151
"@tanstack/db": "workspace:*",
5252
"@tanstack/store": "^0.9.2",

packages/electric-db-collection/tests/tags.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ describe(`Electric Tag Tracking and GC`, () => {
16091609
event: `move-in`,
16101610
patterns: [{ pos: 1, value: `hash_b` }],
16111611
},
1612-
} as unknown as Message<Row>,
1612+
},
16131613
{
16141614
headers: { control: `up-to-date` },
16151615
},
@@ -1679,7 +1679,7 @@ describe(`Electric Tag Tracking and GC`, () => {
16791679
event: `move-in`,
16801680
patterns: [{ pos: 0, value: `hash_a` }],
16811681
},
1682-
} as unknown as Message<Row>,
1682+
},
16831683
{
16841684
headers: { control: `up-to-date` },
16851685
},
@@ -1747,7 +1747,7 @@ describe(`Electric Tag Tracking and GC`, () => {
17471747
event: `move-in`,
17481748
patterns: [{ pos: 0, value: `hash_a` }],
17491749
},
1750-
} as unknown as Message<Row>,
1750+
},
17511751
{
17521752
headers: { control: `up-to-date` },
17531753
},

0 commit comments

Comments
 (0)