Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jun 30, 2025

This triggers a CRUD upload when receiving the first sync line to ensure that local writes made while offline have a chance to get uploaded.

This also refactors DataStream to allow adding data while it's blocked on lowWater - this is used by the Rust sync client because we might have to wait for lines from upstream and also have a upload completion notification that needs to be added to the stream.

Finally, I've moved some of the sync tests from the web package to node. This ensures they're tested both with the JS and the Rust implementation. And while it shouldn't make a difference, node tests appear to be less flaky (and certainly a bit easier to debug).

@simolus3 simolus3 requested a review from stevensJourney June 30, 2025 22:24
Copy link

changeset-bot bot commented Jun 30, 2025

🦋 Changeset detected

Latest commit: 6c35bcc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@powersync/common Patch
@powersync/node Patch
@powersync/web Patch
@powersync/react-native Patch
@powersync/op-sqlite Patch
@powersync/tanstack-react-query Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@simolus3 simolus3 force-pushed the rust-upload-local-writes branch from b0dcbfc to da6f7d5 Compare July 1, 2025 14:23
@simolus3 simolus3 force-pushed the rust-upload-local-writes branch from 9265002 to 6c35bcc Compare July 1, 2025 16:06
@simolus3 simolus3 requested a review from stevensJourney July 2, 2025 01:35
@simolus3 simolus3 merged commit 3590864 into main Jul 2, 2025
11 of 12 checks passed
@simolus3 simolus3 deleted the rust-upload-local-writes branch July 2, 2025 12:04
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.

2 participants