Update dependency powersync to v2 #20
Reference in New Issue
Block a user
Delete Branch "renovate/powersync-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^1.12.2→^2.0.0Release Notes
powersync-ja/powersync.dart (powersync)
v2.0.2Compare Source
Release powersync-v2.0.2
v2.0.1Compare Source
Release powersync-v2.0.1
v2.0.0Compare Source
Release powersync-v2.0.0
sqlite3, 0.6.x ofsqlite3_web, 0.14.x ofsqlite_async.sqlite3.wasmfiles after upgrading!package:powersync/sqlite3_open.dart, since SQLite is now loaded through build hooks exclusively.AbstractPowerSyncOpenFactoryandPowerSyncOpenFactory. If you want to customize how databasesare opened, use conditional imports for
package:powersync/native.dartandpackage:powersync/web.dartto extendNativePowerSyncOpenFactoryorWebPowerSyncOpenFactory, respectively.They will automatically share write locks and table updates. Note that only one instance may connect to the PowerSync service though.
maxReadersparameter onPowerSyncDatabaseconstructors is no longer functional, set that parameter onSqliteOptionsinstead.watchUnthrottledandonChangeUnthrottledas variants ofwatchandonChangethat only take backpressurefrom paused subscriptions into account withut using a fixed delay.
abortableReadLockandabortableWriteLock, which can be used to acquire a read/write context with a flexibleabort signal instead of a fixed timeout.
powersync_core,powersync_sqlcipherandpowersync_flutter_libspackages have been removed.The
powersyncpackage now provides the entire SDK for all platforms (both for Flutter and standalone Dart apps).powersync_sleepandpowersync_connection_nameSQL functions have been removed. Also, it isno longer possible to define additional user-defined functions in Dart.
powersyncpackage (see theEncryptionOptionsclass for details).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.powersync_sync.worker.js.powersync_db.worker.jsnow covers both database access and sync.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: pubspec.lock
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.