Skip to content

1.16.0

Latest

Choose a tag to compare

@simolus3 simolus3 released this 04 Aug 10:26
· 3 commits to main since this release
4857b88
  • Sync status timestamps (PriorityStatusEntry.lastSyncedAt, SyncSubscriptionDescription.lastSyncedAt and SyncSubscriptionDescription.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:
    try 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.
    Backends that process uploads asynchronously can handle checkpoint requests themselves by implementing CustomCheckpointRequestConnector on their connector. These APIs are in alpha and may change in future releases.
  • Only split sync lines on \n in #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