DATE:
AUTHOR:
PowerSync Product Team
React Native SDK

PowerSync SDK for React Native: v1.4.2

DATE:
AUTHOR: PowerSync Product Team

We are pleased to announce the release of version 1.4.2 of the PowerSync React Native Client SDK.

See the full changelog below.

Have any questions or feedback? Chat with us and the PowerSync community on Discord.

Changelog

v1.4.2

  • Updated dependencies

v1.4.1

  • Updated dependencies:

    • [ADDED]hasSynced property to SyncStatus. This value is managed in AbstractPowerSyncDatabase, and becomes true after the first sync has completed.

    • [ADDED] waitForFirstSync method to allow users to await on the state change of hasSynced to true.

    • [FIXED] Resolving tables for watch() before handling any results, eliminating a potential race condition between initial results and updates.

    • [FIXED] Also handled a potential uncaught exception.

v1.4.0

  • Updated dependencies:

    • [ADDED] Added executeBatch method. This allows a SQL statement with multiple parameters to be executed in a single transaction, improving performance and consistency.

    • [FIXED] A potential unhandled exception when aborting a stream fetch request for the /sync/stream endpoint.

v1.3.3

  • Updated dependencies:

    • [IMPROVED] Introduced overloaded versions of the watch and onChange methods to support a callback approach to handle results and errors alongside the existing AsyncGenerator mechanism.

    • [IMPROVED] No longer using the AsyncGenerator version of the watch method for the usePowerSyncWatchedQuery hook, using the new callback version instead.

v1.3.2

  • Updated dependencies:

    • [FIXED] A regression where watched queries would update for table changes in external (not in query) tables.

v1.3.1

  • Updated dependencies:

    • [FIXED] An issue where sync stream exceptions would not close previous streaming connections.

    • [IMPROVED] Reduced JS bundle size.

v1.3.0

  • Updated dependencies:

    • [ADDED] dispose methods for sync stream clients and better closing of clients.

    • [FIXED] PowerSyncBackendConnector.fetchCredentials type to allow returning null.

    • [IMPROVED] Internally moved crud upload watching to SqliteBucketStorageAdapter.

v1.2.2

  • Updated dependencies:

    • [ADDED] equals method on CrudEntry class to better align comparison operations with JavaScript.

    • [IMPROVED] AbstractPowerSyncDatabase.getCrudBatch now use a getAll instead of using database.execute.

    • [FIXED] Minor bugs in BucketStorage adapter.

    • [FIXED] Removed object-hash package as a dependency as this caused issues with Next.js 14.1.0.

v1.2.1

  • [FIXED] An issue where the SDK would fail to reconnect after disconnecting when using disconnectAndClear.

  • Updated dependencies:

    • [FIXED] Missing transactionId value in the response of getNextCrudTransaction.

v1.2.0

  • [ADDED] Global locks for syncing connections. Added a warning when creating multiple PowerSync instances.

  • [IMPROVED] Bumped powersync-sqlite-core to v0.1.6. Dependent projects should:

    • Upgrade to @journeyapps/react-native-quick-sqlite@1.1.1

    • run pod repo update && pod update in the ios folder for updates to reflect.

  • Updated dependencies:

    • [ADDED] viewName option to Schema Table definitions. This allows for overriding a table's view name, which allows having separate tables for a synced mode and a local-only mode, and moving data between the two.

    • [IMPROVED] Table change updates to be throttled on the trailing edge. This prevents unnecessary query on both the leading and rising edge.

v1.1.0

  • [FIXED] Watched queries from updating before writes have been committed on the write connection.

  • Updated dependencies:

    • [IMPROVED] Added the ability to receive batched table updates from DB adapters.

v1.0.1

  • Updated dependencies:

    • [IMPROVED] Connector CRUD uploads will now be triggered whenever an internal CRUD operation change is triggered.

    • [IMPROVED] CRUD upload debouncing will now rather use a throttled approach - executing multiple continuous write/CRUD operations will now trigger a connector upload at most (every) 1 second (by default).

v1.0.0

  • Stable release.

v0.1.0

  • [ADDED] Support for concurrent reads and writes (one write and multiple reads). Concurrent connections help ensure that an app's UI isn't blocked when writes are being processed.

  • [ADDED] Logging functionality to assist with debugging.

    • Added display for exceptions that occur during streaming operations from the PowerSync Service.

    • Added a note to the docs for configuring debug log levels.

    • Added warnings if the required Polyfills are not correctly configured.

  • [IMPROVED] More frequent updates of sync status connectivity.

  • [IMPROVED] Updated dependencies.

Powered by LaunchNotes