@signaldb/sync 2.0.0-beta.6 → 2.0.0-beta.8

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.
@@ -1,7 +1,6 @@
1
- import type { BaseItem, DataAdapter, ReactivityAdapter, Changeset } from '@signaldb/core';
2
- import { Collection } from '@signaldb/core';
3
- import PromiseQueue from './utils/PromiseQueue';
4
- import type { Change, LoadResponse, Snapshot, SyncOperation } from './types';
1
+ import { BaseItem, DataAdapter, ReactivityAdapter, Changeset, Collection } from '@signaldb/core';
2
+ import { default as PromiseQueue } from './utils/PromiseQueue';
3
+ import { Change, LoadResponse, Snapshot, SyncOperation } from './types';
5
4
  type SyncOptions<T extends Record<string, any>> = {
6
5
  name: string;
7
6
  } & T;
@@ -1,5 +1,5 @@
1
- import type { BaseItem } from '@signaldb/core';
2
- import type { Change } from './types';
1
+ import { BaseItem } from '@signaldb/core';
2
+ import { Change } from './types';
3
3
  /**
4
4
  * applies changes to a collection of items
5
5
  * @param items The items to apply the changes to
@@ -1,4 +1,4 @@
1
- import type { BaseItem } from '@signaldb/core';
1
+ import { BaseItem } from '@signaldb/core';
2
2
  /**
3
3
  * Computes the modified fields between two items recursively.
4
4
  * @param oldItem The old item
@@ -1,5 +1,5 @@
1
- import type { BaseItem } from '@signaldb/core';
2
- import type { LoadResponse } from './types';
1
+ import { BaseItem } from '@signaldb/core';
2
+ import { LoadResponse } from './types';
3
3
  /**
4
4
  * Gets the snapshot of items from the last snapshot and the changes.
5
5
  * @param lastSnapshot The last snapshot of items