@signaldb/sync 1.0.0 → 1.0.1
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/SyncManager.d.ts +1 -0
- package/dist/applyChanges.d.ts +1 -1
- package/dist/index.mjs +231 -209
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/utils/debounce.d.ts +2 -2
- package/package.json +1 -1
package/dist/SyncManager.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export default class SyncManager<CollectionOptions extends Record<string, any>,
|
|
|
59
59
|
protected persistenceReady: Promise<void>;
|
|
60
60
|
protected isDisposed: boolean;
|
|
61
61
|
protected instanceId: string;
|
|
62
|
+
protected id: string;
|
|
62
63
|
/**
|
|
63
64
|
* @param options Collection options
|
|
64
65
|
* @param options.pull Function to pull data from remote source.
|
package/dist/applyChanges.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ import type { Change } from './types';
|
|
|
6
6
|
* @param changes The changes to apply to the items
|
|
7
7
|
* @returns The new items after applying the changes
|
|
8
8
|
*/
|
|
9
|
-
export default function applyChanges<ItemType extends BaseItem<IdType>, IdType>(items: ItemType[], changes: Change<ItemType, IdType>[]): ItemType[]
|
|
9
|
+
export default function applyChanges<ItemType extends BaseItem<IdType>, IdType>(items: ItemType[], changes: Change<ItemType, IdType>[]): Promise<ItemType[]>;
|