Comparing version 5.0.6 to 5.0.7
@@ -113,2 +113,13 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> { | ||
} | ||
interface IDBTransactionOptions { | ||
/** | ||
* The durability of the transaction. | ||
* | ||
* The default is "default". Using "relaxed" provides better performance, but with fewer | ||
* guarantees. Web applications are encouraged to use "relaxed" for ephemeral data such as caches | ||
* or quickly changing records, and "strict" in cases where reducing the risk of data loss | ||
* outweighs the impact to performance and power. | ||
*/ | ||
durability?: 'default' | 'strict' | 'relaxed'; | ||
} | ||
export interface IDBPDatabase<DBTypes extends DBSchema | unknown = unknown> extends IDBPDatabaseExtends { | ||
@@ -136,5 +147,6 @@ /** | ||
* @param mode | ||
* @param options | ||
*/ | ||
transaction<Name extends StoreNames<DBTypes>>(storeNames: Name, mode?: IDBTransactionMode): IDBPTransaction<DBTypes, [Name]>; | ||
transaction<Names extends StoreNames<DBTypes>[]>(storeNames: Names, mode?: IDBTransactionMode): IDBPTransaction<DBTypes, Names>; | ||
transaction<Name extends StoreNames<DBTypes>>(storeNames: Name, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBPTransaction<DBTypes, [Name]>; | ||
transaction<Names extends StoreNames<DBTypes>[]>(storeNames: Names, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBPTransaction<DBTypes, Names>; | ||
/** | ||
@@ -141,0 +153,0 @@ * Add a value to a store. |
@@ -113,2 +113,13 @@ export interface OpenDBCallbacks<DBTypes extends DBSchema | unknown> { | ||
} | ||
interface IDBTransactionOptions { | ||
/** | ||
* The durability of the transaction. | ||
* | ||
* The default is "default". Using "relaxed" provides better performance, but with fewer | ||
* guarantees. Web applications are encouraged to use "relaxed" for ephemeral data such as caches | ||
* or quickly changing records, and "strict" in cases where reducing the risk of data loss | ||
* outweighs the impact to performance and power. | ||
*/ | ||
durability?: 'default' | 'strict' | 'relaxed'; | ||
} | ||
export interface IDBPDatabase<DBTypes extends DBSchema | unknown = unknown> extends IDBPDatabaseExtends { | ||
@@ -136,5 +147,6 @@ /** | ||
* @param mode | ||
* @param options | ||
*/ | ||
transaction<Name extends StoreNames<DBTypes>>(storeNames: Name, mode?: IDBTransactionMode): IDBPTransaction<DBTypes, [Name]>; | ||
transaction<Names extends StoreNames<DBTypes>[]>(storeNames: Names, mode?: IDBTransactionMode): IDBPTransaction<DBTypes, Names>; | ||
transaction<Name extends StoreNames<DBTypes>>(storeNames: Name, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBPTransaction<DBTypes, [Name]>; | ||
transaction<Names extends StoreNames<DBTypes>[]>(storeNames: Names, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBPTransaction<DBTypes, Names>; | ||
/** | ||
@@ -141,0 +153,0 @@ * Add a value to a store. |
{ | ||
"name": "idb", | ||
"version": "5.0.6", | ||
"version": "5.0.7", | ||
"description": "A small wrapper that makes IndexedDB usable", | ||
@@ -5,0 +5,0 @@ "main": "build/cjs/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
177473
1995
0