Skip to content

feat: Connector split - #19

Merged
Chriztiaan merged 7 commits into
mainfrom
feat/connector-split
Dec 1, 2026
Merged

Chriztiaan merged 7 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 previously approved these changes Nov 16, 2026

@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.

simolus3
simolus3 previously approved these changes Nov 16, 2026
@Chriztiaan

Copy link
Copy Markdown
Collaborator Author

Todo: Add changelog/entries.

Chriztiaan and others added 2 commits November 30, 2026 14:54
…hangelog

Match the names used in the PowerSync docs:

- PowersyncConnector is now PowerSyncUploader, in PowerSyncUploader.ts and
  PowerSyncUploader.singlefile.ts. The old single-file path re-exports it
  until 0.0.3, because the docs link to it.
- The OpenAPI spec is now powersync-reference-write-endpoint.openapi.yaml,
  and WriteAPIClient is now WriteEndpointClient.
- READMEs, docs, comments and CI job names say uploader and write endpoint.
- The Supabase Auth sections link to the docs' Supabase authenticator
  instead of keeping a copy.

Add CHANGELOG.md with manually set versions: 0.0.1 is the previous state of
main, and this branch introduces 0.0.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs now link to PowerSyncUploader.singlefile.ts and ship together
with this change, so the PowersyncConnector.singlefile.ts re-export isn't
needed. backend/package.json matches the changelog's 0.0.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Chriztiaan
Chriztiaan dismissed stale reviews from simolus3 and ckritzinger via 2dccdb0 November 30, 2026 13:52
Cache a token from your backend; return a token that the auth provider's
SDK stores and refreshes, and refresh it in invalidateCredentials().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Chriztiaan
Chriztiaan merged commit c758b13 into main Dec 1, 2026
5 checks passed
@Chriztiaan
Chriztiaan deleted the feat/connector-split branch December 1, 2026 13:05
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.

4 participants