@miden-sdk/react 0.14.5 → 0.14.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.
@@ -150,6 +150,22 @@ interface MidenConfig {
150
150
  proverUrls?: ProverUrls;
151
151
  /** Default timeout for remote prover requests in milliseconds. */
152
152
  proverTimeoutMs?: number | bigint;
153
+ /**
154
+ * Enable the Web Worker shim that runs WASM calls off the main thread.
155
+ * Defaults to `true` — leave it that way in browsers/extensions so the UI
156
+ * stays responsive while WASM is busy.
157
+ *
158
+ * Set to `false` when:
159
+ * - You pass a `CallbackProver` (e.g. a native iOS/Android prover via
160
+ * a Capacitor plugin). The worker boundary serializes the prover with
161
+ * `TransactionProver.serialize()`, which has no encoding for the
162
+ * callback variant and silently downgrades to `"local"` — your
163
+ * callback would never fire.
164
+ * - You're embedding the client in a single-WebView native shell
165
+ * (Capacitor host, Tauri, Electron preload), where the UI thread
166
+ * isn't competing with the WASM thread anyway.
167
+ */
168
+ useWorker?: boolean;
153
169
  }
154
170
  interface MidenState {
155
171
  client: WasmWebClient | null;