Releases: powersync-ja/powersync-js
Releases · powersync-ja/powersync-js
@powersync/node@0.12.0
Minor Changes
-
688265f: Experimental support for integrating with node:sqlite.
-
688265f: Support custom better-sqlite3 forks (see an example for encryption in the README).
-
aa90aa0: Pre-package all the PowerSync Rust extension binaries for all supported platforms and architectures in the NPM package
libfolder. Install scripts are no longer required to download the PowerSync core.The binary files relevant to a specific architecture now have updated filenames. Custom code which previously referenced binary filenames requires updating. A helper function is available to automatically provide the correct filename.
+ import { getPowerSyncExtensionFilename } from '@powersync/node/worker.js'; function resolvePowerSyncCoreExtension() { - const platform = OS.platform(); - let extensionPath: string; - if (platform === 'win32') { - extensionPath = 'powersync.dll'; - } else if (platform === 'linux') { - extensionPath = 'libpowersync.so'; - } else if (platform === 'darwin') { - extensionPath = 'libpowersync.dylib'; - } else { - throw 'Unknown platform, PowerSync for Node.js currently supports Windows, Linux and macOS.'; - } + const extensionPath = getPowerSyncExtensionFilename(); // This example uses copy-webpack-plugin to copy the prebuilt library over. This ensures that it is // available in packaged release builds. let libraryPath = path.resolve(__dirname, 'powersync', extensionPath);
-
688265f: Use upstream better-sqlite3 dependency instead of the PowerSync fork.
After upgrading:
- Ensure you no longer depend on the
@powersync/better-sqlite3package:npm uninstall @powersync/better-sqlite3. - Unlike in older versions, the upstream
better-sqlite3dependency is marked as optional since custom forks
are supported too.
Usenpm install better-sqlite3to install it.
- Ensure you no longer depend on the
@powersync/diagnostics-app@0.9.14
Patch Changes
- ac82680: - Fixed bug where Rust client implementation would not update the dynamic schema after sync.
- Improved dynamic schema refresh logic for all implementations. Updating the schema should now always update all dependent watched queries e.g. in the SQL Console.
@powersync/web@1.27.1
Patch Changes
- Updated dependencies [c2bc2c1]
- @powersync/common@1.40.0
@powersync/tanstack-react-query@0.1.6
@powersync/react@1.8.1
@powersync/react-native@1.25.1
@powersync/op-sqlite@0.7.11
Patch Changes
- Updated dependencies [c2bc2c1]
- @powersync/common@1.40.0
@powersync/node@0.11.1
Patch Changes
- Updated dependencies [c2bc2c1]
- @powersync/common@1.40.0
@powersync/diagnostics-app@0.9.13
@powersync/common@1.40.0
Minor Changes
- c2bc2c1: Exposed the connection and connection option used by
connect()