Skip to content

Releases: powersync-ja/powersync-js

@powersync/node@0.12.0

21 Oct 09:30

Choose a tag to compare

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 lib folder. 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:

    1. Ensure you no longer depend on the @powersync/better-sqlite3 package: npm uninstall @powersync/better-sqlite3.
    2. Unlike in older versions, the upstream better-sqlite3 dependency is marked as optional since custom forks
      are supported too.
      Use npm install better-sqlite3 to install it.

@powersync/diagnostics-app@0.9.14

20 Oct 12:59
9c818dc

Choose a tag to compare

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

03 Oct 09:39
949a7d8

Choose a tag to compare

Patch Changes

  • Updated dependencies [c2bc2c1]
    • @powersync/common@1.40.0

@powersync/tanstack-react-query@0.1.6

03 Oct 09:39
949a7d8

Choose a tag to compare

Patch Changes

  • Updated dependencies [3008dbc]
  • Updated dependencies [c2bc2c1]
    • @powersync/react@1.8.1
    • @powersync/common@1.40.0

@powersync/react@1.8.1

03 Oct 09:38
949a7d8

Choose a tag to compare

Patch Changes

  • 3008dbc: Allow using db.syncStream() instances in useQuery hooks.
  • Updated dependencies [c2bc2c1]
    • @powersync/common@1.40.0

@powersync/react-native@1.25.1

03 Oct 09:39
949a7d8

Choose a tag to compare

Patch Changes

  • Updated dependencies [3008dbc]
  • Updated dependencies [c2bc2c1]
    • @powersync/react@1.8.1
    • @powersync/common@1.40.0

@powersync/op-sqlite@0.7.11

03 Oct 09:38
949a7d8

Choose a tag to compare

Patch Changes

  • Updated dependencies [c2bc2c1]
    • @powersync/common@1.40.0

@powersync/node@0.11.1

03 Oct 09:39
949a7d8

Choose a tag to compare

Patch Changes

  • Updated dependencies [c2bc2c1]
    • @powersync/common@1.40.0

@powersync/diagnostics-app@0.9.13

03 Oct 09:38
949a7d8

Choose a tag to compare

Patch Changes

  • 0c94c40: Rename Diagnostics App to Sync Diagnostics Client
  • Updated dependencies [3008dbc]
    • @powersync/react@1.8.1
    • @powersync/web@1.27.1

@powersync/common@1.40.0

03 Oct 09:38
949a7d8

Choose a tag to compare

Minor Changes

  • c2bc2c1: Exposed the connection and connection option used by connect()