Skip to content

feat: Connector split - #19

Open
Chriztiaan wants to merge 4 commits into
mainfrom
feat/connector-split
Open

Chriztiaan wants to merge 4 commits into
mainfrom
feat/connector-split

Conversation

@Chriztiaan

@Chriztiaan Chriztiaan commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The reference connector now uses the split connector API from powersync-js#1149: an Authenticator and a mutation uploader, in place of a single PowerSyncBackendConnector.

Added some drive-by fixes and CI based testing.

Noteworthy changes in example-client/src.

AI Disclosure

Used Claude Opus 5.5 to help make the updates.

Chriztiaan and others added 2 commits November 16, 2026 12:10
#14 added Persister.ping and its tests without the changes from #15
and #16, which were merged first:

- permissionErrorsRetryable() in the Supabase function dropped ping,
  so calling ping() on the wrapped persister threw.
- The MongoDB ping test mock lacked listCollections, which
  createMongoPersister has called at startup since #16.
- The rls.test.ts persister mocks lacked ping and failed type-checking.

Forward ping in the wrapper, complete the mocks, and test that ping
reaches the wrapped persister.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Chriztiaan
Chriztiaan marked this pull request as ready for review November 16, 2026 11:40
Chriztiaan and others added 2 commits November 16, 2026 13:43
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SDK isn't guaranteed to cache tokens from an Authenticator, so the
docs now tell apps to cache the token and clear it in
invalidateCredentials(), including for Supabase and Clerk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ckritzinger ckritzinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. The split plays really nicely with the reference client.

Thanks for all the collateral construction.

@Chriztiaan

Copy link
Copy Markdown
Collaborator Author

Blocking till Connector Split announcement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants