react-native-nitro-storage 0.13.0 → 0.14.0
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/CHANGELOG.md +15 -0
- package/README.md +58 -4
- package/docs/api-reference.md +49 -43
- package/docs/batch-transactions-migrations.md +7 -0
- package/docs/qa/agent-device-replay.md +70 -0
- package/docs/secure-storage.md +12 -6
- package/lib/commonjs/Storage.types.js +4 -2
- package/lib/commonjs/Storage.types.js.map +1 -1
- package/lib/commonjs/core/durability.js +30 -2
- package/lib/commonjs/core/durability.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/shared.js.map +1 -1
- package/lib/commonjs/storage-core.js +37 -3
- package/lib/commonjs/storage-core.js.map +1 -1
- package/lib/commonjs/testing.js +1 -0
- package/lib/commonjs/testing.js.map +1 -1
- package/lib/module/Storage.types.js +4 -2
- package/lib/module/Storage.types.js.map +1 -1
- package/lib/module/core/durability.js +30 -2
- package/lib/module/core/durability.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/shared.js.map +1 -1
- package/lib/module/storage-core.js +37 -3
- package/lib/module/storage-core.js.map +1 -1
- package/lib/module/testing.js +1 -0
- package/lib/module/testing.js.map +1 -1
- package/lib/typescript/Storage.types.d.ts +4 -2
- package/lib/typescript/Storage.types.d.ts.map +1 -1
- package/lib/typescript/core/durability.d.ts +7 -1
- package/lib/typescript/core/durability.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/index.web.d.ts +4 -2
- package/lib/typescript/index.web.d.ts.map +1 -1
- package/lib/typescript/shared.d.ts +8 -1
- package/lib/typescript/shared.d.ts.map +1 -1
- package/lib/typescript/storage-core.d.ts +6 -3
- package/lib/typescript/storage-core.d.ts.map +1 -1
- package/lib/typescript/testing.d.ts +7 -4
- package/lib/typescript/testing.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Storage.types.ts +4 -2
- package/src/core/durability.ts +46 -2
- package/src/index.ts +4 -0
- package/src/index.web.ts +4 -0
- package/src/shared.ts +17 -1
- package/src/storage-core.ts +61 -7
- package/src/testing.ts +5 -0
package/src/testing.ts
CHANGED
|
@@ -23,6 +23,10 @@ import type {
|
|
|
23
23
|
|
|
24
24
|
export { StorageScope, AccessControl, BiometricLevel } from "./Storage.types";
|
|
25
25
|
export { isKeychainLockedError } from "./shared";
|
|
26
|
+
export type {
|
|
27
|
+
StorageScheduledFlushError,
|
|
28
|
+
StorageScheduledFlushErrorObserver,
|
|
29
|
+
} from "./core/durability";
|
|
26
30
|
export { migrateFromMMKV } from "./migration";
|
|
27
31
|
export { getStorageErrorCode, isStorageError } from "./storage-runtime";
|
|
28
32
|
export {
|
|
@@ -279,6 +283,7 @@ function buildTestingModule() {
|
|
|
279
283
|
|
|
280
284
|
const reset = (): void => {
|
|
281
285
|
storage.setEventObserver(undefined);
|
|
286
|
+
storage.setScheduledFlushErrorObserver(undefined);
|
|
282
287
|
storage.setMetricsObserver(undefined);
|
|
283
288
|
storage.resetMetrics();
|
|
284
289
|
storage.clearAll();
|