- Sync status timestamps (
PriorityStatusEntry.lastSyncedAt,SyncSubscriptionDescription.lastSyncedAtandSyncSubscriptionDescription.expiresAt) now have microsecond resolution. - Add alpha support for checkpoint requests, which let clients wait until the local database has caught up to the current server-side state — useful for explicit pull-to-refresh flows. Checkpoint requests require PowerSync service version 1.24.0 or later. Connect with
checkpointMode: .requests(), then:Backends that process uploads asynchronously can handle checkpoint requests themselves by implementingtry await db.connect(connector: connector, options: ConnectOptions(checkpointMode: .requests())) let checkpoint = try await db.requestCheckpoint() try await checkpoint.waitForSync(timeout: 30) // The local database now contains all changes up to when the checkpoint was requested.
CustomCheckpointRequestConnectoron their connector. These APIs are in alpha and may change in future releases. - Only split sync lines on
\nin #164 - Fix race condition in MergeItemSequence dropping errors in #171
- Fix issue with weak let in #175 (thanks, @will-lundy!)
- Fix concurrency issues around
close()in #177
Full Changelog: 1.15.0...1.16.0