Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/healthy-grapes-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@powersync/common': patch
---

Marked AbstractPowerSyncDatabase.dispose method as deprecated. The AbstractPowerSyncDatabase.close method should be used instead.
8 changes: 8 additions & 0 deletions packages/common/src/client/AbstractPowerSyncDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,14 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
};
}

/**
* @deprecated Use {@link AbstractPowerSyncDatabase#close} instead.
* Clears all listeners registered by {@link AbstractPowerSyncDatabase#registerListener}.
*/
dispose(): void {
return super.dispose();
}

/**
* Locking mechanism for exclusively running critical portions of connect/disconnect operations.
* Locking here is mostly only important on web for multiple tab scenarios.
Expand Down