@sparkvault/sdk 1.23.8 → 1.23.9

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.
@@ -16,7 +16,10 @@ export declare class UploadApiError extends SparkVaultError {
16
16
  export declare class UploadApi {
17
17
  private readonly config;
18
18
  private readonly timeoutMs;
19
- /** Abort controller for cancelling all pending requests on close */
19
+ /**
20
+ * Abort controller for cancelling all pending requests on close.
21
+ * Replaced by resetSession() at the start of every user-facing session.
22
+ */
20
23
  private closeController;
21
24
  constructor(config: ResolvedConfig);
22
25
  /**
@@ -32,6 +35,13 @@ export declare class UploadApi {
32
35
  * Get the abort signal for external use (e.g., XHR uploads).
33
36
  */
34
37
  getAbortSignal(): AbortSignal;
38
+ /**
39
+ * Reset the session lifecycle by swapping in a fresh AbortController.
40
+ * The Module calls this at the start of every user-facing session so a
41
+ * previously-closed session can never leak its aborted state into the
42
+ * next one. (Long-lived caches on `this` are intentionally preserved.)
43
+ */
44
+ resetSession(): void;
35
45
  /**
36
46
  * Get vault upload info (public endpoint).
37
47
  */
@@ -19,6 +19,7 @@ import type { ResolvedConfig } from '../../config';
19
19
  import type { UploadOptions, UploadAttachOptions, UploadResult } from './types';
20
20
  export declare class VaultUploadModule {
21
21
  private readonly config;
22
+ private readonly api;
22
23
  private renderer;
23
24
  private attachedElements;
24
25
  constructor(config: ResolvedConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk",
3
- "version": "1.23.8",
3
+ "version": "1.23.9",
4
4
  "description": "SparkVault JavaScript SDK - Identity Verification and Encrypted Vaults",
5
5
  "type": "module",
6
6
  "main": "dist/sparkvault.cjs.js",