chore(electric-db-collection): update dependencies#1381
Merged
KyleAMathews merged 2 commits intomainfrom Mar 17, 2026
Merged
Conversation
Update @electric-sql/client, @tanstack/store, and pg to latest versions. Adapt subscription cleanup to @tanstack/store 0.9.x Subscription API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-browser-wa-sqlite-persisted-collection
@tanstack/db-ivm
@tanstack/db-react-native-sqlite-persisted-collection
@tanstack/db-sqlite-persisted-collection-core
@tanstack/electric-db-collection
@tanstack/offline-transactions
@tanstack/powersync-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
Contributor
|
Size Change: 0 B Total Size: 110 kB ℹ️ View Unchanged
|
Contributor
|
Size Change: 0 B Total Size: 4.23 kB ℹ️ View Unchanged
|
Update @electric-sql/client, @tanstack/store, and pg versions in all packages to resolve sherif version mismatch errors. Fix trailbase-db-collection subscribe callback for @tanstack/store 0.9.x API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates
@electric-sql/client,@tanstack/store, andpgto latest versions across the entire workspace, and adapts code to the@tanstack/store0.9.x subscription API.Approach
Dependency bumps (workspace-wide to satisfy sherif):
@electric-sql/client:^1.5.12→^1.5.13(electric-db-collection, react-db, solid-db, vue-db)@tanstack/store:^0.8.0→^0.9.2(electric-db-collection, powersync-db-collection, rxdb-db-collection, trailbase-db-collection)pg:^8.18.0→^8.20.0(electric-db-collection, db-collection-e2e, example apps)Code adaptations for
@tanstack/store0.9.x:subscribe()now returns aSubscriptionobject ({ unsubscribe() }) instead of a bare unsubscribe functionTdirectly instead of{ currentVal: T }electric-db-collection: UpdatedawaitTxIdsubscriptions + extracted sharedcleanup()helpertrailbase-db-collection: UpdatedawaitIdssubscriptions + fixed callback signatureNon-goals: Skipped
@vitest/coverage-istanbul3→4 major bump since the rest of the monorepo is on vitest 3.x.Verification
Files changed
packages/electric-db-collection/package.json— version bumpspackages/electric-db-collection/src/electric.ts— adaptawaitTxIdto Subscription API + extractcleanup()helperpackages/trailbase-db-collection/package.json— version bumppackages/trailbase-db-collection/src/trailbase.ts— adaptawaitIdsto Subscription API + fix callback signaturepackages/{react-db,solid-db,vue-db}/package.json— align@electric-sql/clientpackages/{powersync-db-collection,rxdb-db-collection}/package.json— align@tanstack/storepackages/db-collection-e2e/package.json— alignpgexamples/{react,solid}/*/package.json— alignpg.changeset/update-electric-deps.md— changesetpnpm-lock.yaml— lockfile update🤖 Generated with Claude Code