@anfenn/dync 1.0.31 → 1.0.32
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/README.md +5 -5
- package/dist/capacitor.d.cts +1 -1
- package/dist/capacitor.d.ts +1 -1
- package/dist/{dexie-q17SmbBw.d.cts → dexie-3VOQSn1s.d.cts} +1 -1
- package/dist/{dexie-ImxmapkS.d.ts → dexie-D85rTx4g.d.ts} +1 -1
- package/dist/dexie.d.cts +2 -2
- package/dist/dexie.d.ts +2 -2
- package/dist/expoSqlite.d.cts +1 -1
- package/dist/expoSqlite.d.ts +1 -1
- package/dist/index.cjs +2 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/react/index.d.cts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/{types-DeiRXWKl.d.cts → types-6-NyRQ0D.d.cts} +1 -5
- package/dist/{types-DeiRXWKl.d.ts → types-6-NyRQ0D.d.ts} +1 -5
- package/dist/{types-B7xq90Kc.d.cts → types-BszcepJK.d.cts} +1 -1
- package/dist/{types-CfvYBKI_.d.ts → types-Dhx9MuUp.d.ts} +1 -1
- package/dist/wa-sqlite.d.cts +1 -1
- package/dist/wa-sqlite.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.shared.ts +3 -12
- package/src/storage/sqlite/types.ts +0 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-
|
|
2
|
-
export { A as AfterRemoteAddCallback, c as ApiFunctions, f as BatchFirstLoadResult, d as BatchPushPayload, e as BatchPushResult, B as BatchSync, C as ConflictResolutionStrategy, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-
|
|
3
|
-
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-
|
|
4
|
-
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-
|
|
5
|
-
import { c as
|
|
6
|
-
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-
|
|
1
|
+
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-BszcepJK.cjs';
|
|
2
|
+
export { A as AfterRemoteAddCallback, c as ApiFunctions, f as BatchFirstLoadResult, d as BatchPushPayload, e as BatchPushResult, B as BatchSync, C as ConflictResolutionStrategy, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-BszcepJK.cjs';
|
|
3
|
+
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-3VOQSn1s.cjs';
|
|
4
|
+
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-3VOQSn1s.cjs';
|
|
5
|
+
import { c as SQLiteVersionMigration } from './types-6-NyRQ0D.cjs';
|
|
6
|
+
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-6-NyRQ0D.cjs';
|
|
7
7
|
import 'dexie';
|
|
8
8
|
|
|
9
9
|
declare class DyncBase<_TStoreMap extends Record<string, any> = Record<string, any>> {
|
|
@@ -51,7 +51,7 @@ declare class DyncBase<_TStoreMap extends Record<string, any> = Record<string, a
|
|
|
51
51
|
constructor(config: DyncOptions<_TStoreMap>);
|
|
52
52
|
version(versionNumber: number): {
|
|
53
53
|
stores(schema: Record<string, TableSchemaDefinition>): /*elided*/ any;
|
|
54
|
-
sqlite(
|
|
54
|
+
sqlite(migrations: SQLiteVersionMigration): /*elided*/ any;
|
|
55
55
|
};
|
|
56
56
|
open(): Promise<void>;
|
|
57
57
|
close(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-
|
|
2
|
-
export { A as AfterRemoteAddCallback, c as ApiFunctions, f as BatchFirstLoadResult, d as BatchPushPayload, e as BatchPushResult, B as BatchSync, C as ConflictResolutionStrategy, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-
|
|
3
|
-
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-
|
|
4
|
-
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-
|
|
5
|
-
import { c as
|
|
6
|
-
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-
|
|
1
|
+
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-Dhx9MuUp.js';
|
|
2
|
+
export { A as AfterRemoteAddCallback, c as ApiFunctions, f as BatchFirstLoadResult, d as BatchPushPayload, e as BatchPushResult, B as BatchSync, C as ConflictResolutionStrategy, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-Dhx9MuUp.js';
|
|
3
|
+
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-D85rTx4g.js';
|
|
4
|
+
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-D85rTx4g.js';
|
|
5
|
+
import { c as SQLiteVersionMigration } from './types-6-NyRQ0D.js';
|
|
6
|
+
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-6-NyRQ0D.js';
|
|
7
7
|
import 'dexie';
|
|
8
8
|
|
|
9
9
|
declare class DyncBase<_TStoreMap extends Record<string, any> = Record<string, any>> {
|
|
@@ -51,7 +51,7 @@ declare class DyncBase<_TStoreMap extends Record<string, any> = Record<string, a
|
|
|
51
51
|
constructor(config: DyncOptions<_TStoreMap>);
|
|
52
52
|
version(versionNumber: number): {
|
|
53
53
|
stores(schema: Record<string, TableSchemaDefinition>): /*elided*/ any;
|
|
54
|
-
sqlite(
|
|
54
|
+
sqlite(migrations: SQLiteVersionMigration): /*elided*/ any;
|
|
55
55
|
};
|
|
56
56
|
open(): Promise<void>;
|
|
57
57
|
close(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1408,21 +1408,12 @@ var DyncBase = class {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
return builder;
|
|
1410
1410
|
},
|
|
1411
|
-
sqlite(
|
|
1411
|
+
sqlite(migrations) {
|
|
1412
1412
|
if (!storesDefined) {
|
|
1413
1413
|
throw new Error("Call stores() before registering sqlite migrations");
|
|
1414
1414
|
}
|
|
1415
1415
|
const sqliteOptions = schemaOptions.sqlite ??= {};
|
|
1416
|
-
|
|
1417
|
-
const configurator = {
|
|
1418
|
-
up(handler) {
|
|
1419
|
-
migrations.up = handler;
|
|
1420
|
-
},
|
|
1421
|
-
down(handler) {
|
|
1422
|
-
migrations.down = handler;
|
|
1423
|
-
}
|
|
1424
|
-
};
|
|
1425
|
-
configure(configurator);
|
|
1416
|
+
sqliteOptions.migrations = migrations;
|
|
1426
1417
|
return builder;
|
|
1427
1418
|
}
|
|
1428
1419
|
};
|