Comparing version 3.1.0-beta.13 to 3.2.0-beta.1
@@ -7,3 +7,3 @@ /* | ||
* | ||
* Version 3.1.0-beta.13, Mon Jun 07 2021 | ||
* Version 3.2.0-beta.1, Sun Jun 27 2021 | ||
* | ||
@@ -441,6 +441,2 @@ * http://dexie.org | ||
} | ||
export interface DBCoreTransactionRequest { | ||
tables: string[]; | ||
mode: "readonly" | "readwrite"; | ||
} | ||
export type DBCoreMutateRequest = DBCoreAddRequest | DBCorePutRequest | DBCoreDeleteRequest | DBCoreDeleteRangeRequest; | ||
@@ -468,2 +464,12 @@ export interface DBCoreMutateResponse { | ||
keys?: any[]; | ||
criteria?: { | ||
index: string | null; | ||
range: DBCoreKeyRange; | ||
}; | ||
changeSpec?: { | ||
[keyPath: string]: any; | ||
}; // Common changeSpec for each key | ||
changeSpecs?: { | ||
[keyPath: string]: any; | ||
}[]; // changeSpec per key. | ||
/** @deprecated Will always get results since 3.1.0-alpha.5 */ | ||
@@ -476,2 +482,6 @@ wantResults?: boolean; | ||
keys: any[]; | ||
criteria?: { | ||
index: string | null; | ||
range: DBCoreKeyRange; | ||
}; | ||
} | ||
@@ -563,3 +573,3 @@ export interface DBCoreDeleteRangeRequest { | ||
// Transaction and Object Store | ||
transaction(req: DBCoreTransactionRequest): DBCoreTransaction; | ||
transaction(stores: string[], mode: "readonly" | "readwrite"): DBCoreTransaction; | ||
// Utility methods | ||
@@ -661,5 +671,5 @@ cmp(a: any, b: any): number; | ||
export interface DexieOnReadyEvent { | ||
subscribe(fn: () => any, bSticky: boolean): void; | ||
unsubscribe(fn: () => any): void; | ||
fire(): any; | ||
subscribe(fn: (vipDb: Dexie) => any, bSticky: boolean): void; | ||
unsubscribe(fn: (vipDb: Dexie) => any): void; | ||
fire(vipDb: Dexie): any; | ||
} | ||
@@ -682,3 +692,3 @@ export interface DexieVersionChangeEvent { | ||
export interface DbEvents extends DexieEventSet { | ||
(eventName: "ready", subscriber: () => any, bSticky?: boolean): void; | ||
(eventName: "ready", subscriber: (vipDb: Dexie) => any, bSticky?: boolean): void; | ||
(eventName: "populate", subscriber: (trans: Transaction) => any): void; | ||
@@ -923,4 +933,4 @@ (eventName: "blocked", subscriber: (event: IDBVersionChangeEvent) => any): void; | ||
export interface Observable<T = any> { | ||
subscribe(onNext: (value: T) => void, onError?: (error: any) => void, onComplete?: () => void): Subscription; | ||
subscribe(observer: Observer<T>): Subscription; | ||
subscribe(onNext?: ((value: T) => void) | null, onError?: ((error: any) => void) | null, onComplete?: (() => void) | null): Subscription; | ||
subscribe(observer?: Observer<T> | null): Subscription; | ||
} | ||
@@ -927,0 +937,0 @@ export interface Subscription { |
{ | ||
"name": "dexie", | ||
"version": "3.1.0-beta.13", | ||
"version": "3.2.0-beta.1", | ||
"description": "A Minimalistic Wrapper for IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "dist/dexie.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1664407
10992