@powersync/web 0.0.0-dev-20251030065540 → 0.0.0-dev-20251030153614

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -40868,14 +40868,11 @@ class SharedSyncImplementation extends _powersync_common__WEBPACK_IMPORTED_MODUL
40868
40868
  return () => { };
40869
40869
  }
40870
40870
  for (const closeListener of trackedPort.closeListeners) {
40871
- await closeListener();
40871
+ closeListener();
40872
40872
  }
40873
40873
  if (this.dbAdapter && this.dbAdapter == trackedPort.db) {
40874
40874
  // Unconditionally close the connection because the database it's writing to has just been closed.
40875
- // The connection has been closed previously, this might throw. We should be able to ignore it.
40876
- await this.connectionManager
40877
- .disconnect()
40878
- .catch((ex) => this.logger.warn('Error while disconnecting. Will attempt to reconnect.', ex));
40875
+ await this.connectionManager.disconnect();
40879
40876
  // Clearing the adapter will result in a new one being opened in connect
40880
40877
  this.dbAdapter = null;
40881
40878
  if (shouldReconnect) {
@@ -41004,9 +41001,9 @@ class SharedSyncImplementation extends _powersync_common__WEBPACK_IMPORTED_MODUL
41004
41001
  // that and ensure pending requests are aborted when the tab is closed.
41005
41002
  remoteCanCloseUnexpectedly: true
41006
41003
  });
41007
- lastClient.closeListeners.push(async () => {
41004
+ lastClient.closeListeners.push(() => {
41008
41005
  this.logger.info('Aborting open connection because associated tab closed.');
41009
- await wrapped.close().catch((ex) => this.logger.warn('error closing database connection', ex));
41006
+ wrapped.close();
41010
41007
  wrapped.markRemoteClosed();
41011
41008
  });
41012
41009
  return wrapped;