Skip to content

powersync-v2.0.0-wip.0

Choose a tag to compare

@github-actions github-actions released this 10 Apr 08:06
· 135 commits to main since this release
caf148b

Release powersync-v2.0.0-wip.0. Note that we are still finalizing this release and will likely upload the final version next week.

  • Upgrade sqlite packages: Version 3.x of sqlite3, 0.6.x of sqlite3_web, 0.14.x of sqlite_async.
    • Remember to download updated db workers and sqlite3.wasm files after upgrading!
    • Breaking: Remove package:powersync/sqlite3_open.dart, since SQLite is now loaded through build hooks exclusively.
    • Breaking: Remove AbstractPowerSyncOpenFactory and PowerSyncOpenFactory. If you want to customize how databases
      are opened, use conditional imports for package:powersync/native.dart and package:powersync/web.dart to extend
      NativePowerSyncOpenFactory or WebPowerSyncOpenFactory, respectively.
    • Improve performance of native databases.
    • Native databases can now be opened on multiple isolates or Flutter engines (e.g. for background tasks).
      They will automatically share write locks and table updates. Note that only one instance may connect to the PowerSync service though.
    • For Chrome browsers, we now use OPFS by default instead of IndexedDB. This improves performance. Existing databases are still loaded from IndexedDB.
    • The maxReaders parameter on PowerSyncDatabase constructors is no longer functional, set that parameter on
      SqliteOptions instead.
    • Add watchUnthrottled and onChangeUnthrottled as variants of watch and onChange that only take backpressure
      from paused subscriptions into account withut using a fixed delay.
    • Add abortableReadLock and abortableWriteLock, which can be used to acquire a read/write context with a flexible
      abort signal instead of a fixed timeout.
  • Breaking: The powersync_core, powersync_sqlcipher and powersync_flutter_libs packages have been removed.
    The powersync package now provides the entire SDK for all platforms (both for Flutter and standalone Dart apps).
  • Breaking: The powersync_sleep and powersync_connection_name SQL functions have been removed. Also, it is
    no longer possible to define additional user-defined functions in Dart.
  • Add encryption support to the powersync package (see the EncryptionOptions class for details).
  • Remove the legacy Dart sync client. The new Rust client has been the default since version 1.17.0.
  • Deprecate re-exports of other packages (package:powersync/sqlite_async.dart, package:powersync/sqlite3_common.dart,
    package:powersync/sqlite3.dart). Instead, add a dependency on the respective package and import it directly.
  • Remove powersync_sync.worker.js. powersync_db.worker.js now covers both database access and sync.