Skip to content

Split BackendConnector trait - #46

Open
simolus3 wants to merge 3 commits into
mainfrom
connector-split
Open

simolus3 wants to merge 3 commits into
mainfrom
connector-split

Conversation

@simolus3

@simolus3 simolus3 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

This implements the backend connector split proposal. Because this SDK is in early beta, I have removed the old BackendConnector trait as a breaking change instead of keeping both around. This simplifies internal code a bit.

BackendConnector is now split into Authenticator (returning a JWT) and MutationUploader (uploading local writes). SyncOptions::new takes both, SyncOptions::{upload,download}_only takes just one and drives unidirectional sync. For downloads, the endpoint is now static and set on SyncOptions instead of being returned as a PowerSyncToken.

AI use: Tests ported from the Kotlin SDK with Claude, also reviewed with Claude.

@simolus3 simolus3 added the Product visibility PRs relevant for the product team label Oct 5, 2026
@simolus3
simolus3 marked this pull request as ready for review October 26, 2026 09:24
@simolus3
simolus3 requested a review from Chriztiaan October 26, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product visibility PRs relevant for the product team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant