dexie 3.2.0-beta.1 → 3.2.0-rc.3
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/SECURITY.md +3 -3
- package/dist/dexie.d.ts +19 -8
- package/dist/dexie.js +260 -154
- package/dist/dexie.js.map +1 -1
- package/dist/dexie.min.js +1 -1
- package/dist/dexie.min.js.map +1 -1
- package/dist/dexie.mjs +259 -154
- package/dist/dexie.mjs.map +1 -1
- package/dist/modern/dexie.min.mjs +1 -0
- package/dist/modern/dexie.min.mjs.map +1 -0
- package/dist/modern/dexie.mjs +5074 -0
- package/dist/modern/dexie.mjs.map +1 -0
- package/package.json +14 -5
package/SECURITY.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
| Version | Supported | Branch
|
|
6
6
|
| ------- | ------------------ | --------
|
|
7
|
-
| 3.
|
|
8
|
-
| 2.0.x | :
|
|
9
|
-
| 1.5.x | :
|
|
7
|
+
| 3.x | :white_check_mark: | master
|
|
8
|
+
| 2.0.x | :thinking: | master-2
|
|
9
|
+
| 1.5.x | :x: | master-1
|
|
10
10
|
| < 1.5.1 | :x: |
|
|
11
11
|
|
|
12
12
|
## Reporting a Vulnerability
|
package/dist/dexie.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
* By David Fahlander, david.fahlander@gmail.com
|
|
6
6
|
*
|
|
7
|
-
* Version 3.2.0-
|
|
7
|
+
* Version 3.2.0-rc.3, Thu Oct 28 2021
|
|
8
8
|
*
|
|
9
9
|
* http://dexie.org
|
|
10
10
|
*
|
|
11
11
|
* Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
|
|
12
12
|
*/
|
|
13
|
-
// Generated by dts-bundle-generator v5.
|
|
13
|
+
// Generated by dts-bundle-generator v5.9.0
|
|
14
14
|
|
|
15
15
|
export interface IndexSpec {
|
|
16
16
|
name: string;
|
|
@@ -437,6 +437,9 @@ export interface DBCoreKeyRange {
|
|
|
437
437
|
export interface DBCoreTransaction {
|
|
438
438
|
abort(): void;
|
|
439
439
|
}
|
|
440
|
+
export interface DbCoreTransactionOptions {
|
|
441
|
+
durability: ChromeTransactionDurability;
|
|
442
|
+
}
|
|
440
443
|
export type DBCoreMutateRequest = DBCoreAddRequest | DBCorePutRequest | DBCoreDeleteRequest | DBCoreDeleteRangeRequest;
|
|
441
444
|
export interface DBCoreMutateResponse {
|
|
442
445
|
numFailures: number;
|
|
@@ -566,9 +569,8 @@ export interface DBCoreIndex {
|
|
|
566
569
|
export interface DBCore {
|
|
567
570
|
stack: "dbcore";
|
|
568
571
|
// Transaction and Object Store
|
|
569
|
-
transaction(stores: string[], mode: "readonly" | "readwrite"): DBCoreTransaction;
|
|
572
|
+
transaction(stores: string[], mode: "readonly" | "readwrite", options?: DbCoreTransactionOptions): DBCoreTransaction;
|
|
570
573
|
// Utility methods
|
|
571
|
-
cmp(a: any, b: any): number;
|
|
572
574
|
readonly MIN_KEY: any;
|
|
573
575
|
readonly MAX_KEY: any;
|
|
574
576
|
readonly schema: DBCoreSchema;
|
|
@@ -643,7 +645,7 @@ export interface Table<T = any, TKey = IndexableType> {
|
|
|
643
645
|
bulkPut(items: readonly T[], keys?: IndexableTypeArrayReadonly, options?: {
|
|
644
646
|
allKeys: boolean;
|
|
645
647
|
}): PromiseExtended<TKey>;
|
|
646
|
-
bulkDelete(keys:
|
|
648
|
+
bulkDelete(keys: TKey[]): PromiseExtended<void>;
|
|
647
649
|
}
|
|
648
650
|
export interface Version {
|
|
649
651
|
stores(schema: {
|
|
@@ -699,14 +701,14 @@ export type ObservabilitySet = {
|
|
|
699
701
|
// `idb:${dbName}/${tableName}/changedIndexes/${indexName}` - indexes
|
|
700
702
|
[part: string]: IntervalTree;
|
|
701
703
|
};
|
|
702
|
-
export interface
|
|
704
|
+
export interface DexieOnStorageMutatedEvent {
|
|
703
705
|
subscribe(fn: (parts: ObservabilitySet) => any): void;
|
|
704
706
|
unsubscribe(fn: (parts: ObservabilitySet) => any): void;
|
|
705
707
|
fire(parts: ObservabilitySet): any;
|
|
706
708
|
}
|
|
707
709
|
export interface GlobalDexieEvents extends DexieEventSet {
|
|
708
|
-
(eventName: "
|
|
709
|
-
|
|
710
|
+
(eventName: "storagemutated", subscriber: (parts: ObservabilitySet) => any): void;
|
|
711
|
+
storagemutated: DexieOnStorageMutatedEvent;
|
|
710
712
|
}
|
|
711
713
|
export type DbSchema = {
|
|
712
714
|
[tableName: string]: TableSchema;
|
|
@@ -726,6 +728,7 @@ export interface Dexie extends Database {
|
|
|
726
728
|
readonly name: string;
|
|
727
729
|
readonly tables: Table[];
|
|
728
730
|
readonly verno: number;
|
|
731
|
+
readonly vip: Dexie;
|
|
729
732
|
readonly _allTables: {
|
|
730
733
|
[name: string]: Table<any, IndexableType>;
|
|
731
734
|
};
|
|
@@ -922,9 +925,15 @@ export interface DexieDOMDependencies {
|
|
|
922
925
|
indexedDB: IDBFactory;
|
|
923
926
|
IDBKeyRange: typeof IDBKeyRange;
|
|
924
927
|
}
|
|
928
|
+
declare global {
|
|
929
|
+
interface SymbolConstructor {
|
|
930
|
+
readonly observable: symbol;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
925
933
|
export interface Observable<T = any> {
|
|
926
934
|
subscribe(onNext?: ((value: T) => void) | null, onError?: ((error: any) => void) | null, onComplete?: (() => void) | null): Subscription;
|
|
927
935
|
subscribe(observer?: Observer<T> | null): Subscription;
|
|
936
|
+
[Symbol.observable]: () => Observable<T>;
|
|
928
937
|
}
|
|
929
938
|
export interface Subscription {
|
|
930
939
|
unsubscribe(): void;
|
|
@@ -936,6 +945,7 @@ export interface Observer<T = any> {
|
|
|
936
945
|
error?: (error: any) => void;
|
|
937
946
|
complete?: () => void;
|
|
938
947
|
}
|
|
948
|
+
export type ChromeTransactionDurability = "default" | "strict" | "relaxed";
|
|
939
949
|
export interface DexieOptions {
|
|
940
950
|
addons?: Array<(db: Dexie) => void>;
|
|
941
951
|
autoOpen?: boolean;
|
|
@@ -949,6 +959,7 @@ export interface DexieOptions {
|
|
|
949
959
|
};
|
|
950
960
|
allowEmptyDB?: boolean;
|
|
951
961
|
modifyChunkSize?: number;
|
|
962
|
+
chromeTransactionDurability?: ChromeTransactionDurability;
|
|
952
963
|
}
|
|
953
964
|
export interface DexieConstructor extends DexieExceptionClasses {
|
|
954
965
|
new (databaseName: string, options?: DexieOptions): Dexie;
|