DATE:
AUTHOR:
PowerSync Product Team
JS WEB SDK

JS Web Client SDK: v0.5.0

DATE:
AUTHOR: PowerSync Product Team

We are pleased to announce the release of version 0.5.0 of the PowerSync JS Web client SDK (@journeyapps/powersync-sdk-web). This SDK is currently in a beta release.

See the full changelog below.

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

Changelog

v0.5.0

  • Updated dependencies:

    • [ADDED] Support for Full-text search and enabled recursive triggers.

v0.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] 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.

v0.4.0

  • [ADDED] The ability to disable broadcast logging in WebPowerSyncFlags.

  • [FIXED] Shared sync broadcast logger sanitization and error handling.

  • 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.

v0.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.

v0.3.2

  • [IMPROVED] Minor code cleanup for the shared sync worker.

  • Updated dependencies:

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

v0.3.1

  • [IMPROVED] Added some serialization checks for broadcasted logs from the shared web worker. Unserializable items will now return a warning.

  • [FIXED] An issue where SyncBucketStorage logs would not be broadcasted from the shared sync worker to individual tabs.

  • Updated dependencies:

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

    • [IMPROVED] Reduced JS bundle size.

v0.3.0

  • [IMPROVED] Multiple tab syncing by unloading stream and sync bucket adapter functionality to shared webworker.

  • 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.

v0.2.2

  • [FIXED] Issue on Next.js 14.1.0 where the shared sync web worker would fail to initialize.

  • 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.

v0.2.1

  • Updated dependencies:

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

v0.2.0

  • 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.

v0.1.3

  • [FIXED] Watched queries not updating due to race condition when opening multiple WA-SQLite connections due to initiating multiple PowerSync instances simultaneously.

v0.1.2

  • 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).

  • [FIXED] A bug where opening multiple WA-SQLite instances to the same DB could break watched queries. This issue could arise when using multiple tabs or when opening multiple PowerSync instances for the same DB (e.g when initializing PowerSync in React strict mode under some circumstances).

v0.1.1

  • [ADDED] Two example projects:

  • [IMPROVED] Introduced a new pnpm format script to correctly format corresponding files with prettier.

  • [FIXED] Ignore directives for Vite to enable bundling the workers correctly.

v0.1.0

  • Initial beta release.

Powered by LaunchNotes