Skip to content

Commit 0d94d47

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 dea0d8a commit 0d94d47

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

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.3",
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.8.0",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ describe(`Electric Tag Tracking and GC`, () => {
15871587
event: `move-in`,
15881588
patterns: [{ pos: 1, value: `hash_b` }],
15891589
},
1590-
} as unknown as Message<Row>,
1590+
},
15911591
{
15921592
headers: { control: `up-to-date` },
15931593
},
@@ -1657,7 +1657,7 @@ describe(`Electric Tag Tracking and GC`, () => {
16571657
event: `move-in`,
16581658
patterns: [{ pos: 0, value: `hash_a` }],
16591659
},
1660-
} as unknown as Message<Row>,
1660+
},
16611661
{
16621662
headers: { control: `up-to-date` },
16631663
},
@@ -1725,7 +1725,7 @@ describe(`Electric Tag Tracking and GC`, () => {
17251725
event: `move-in`,
17261726
patterns: [{ pos: 0, value: `hash_a` }],
17271727
},
1728-
} as unknown as Message<Row>,
1728+
},
17291729
{
17301730
headers: { control: `up-to-date` },
17311731
},

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)