The browser runtime implementation of `Http.get` and `Http.post` (#57) uses synchronous `XMLHttpRequest`, which is [deprecated](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests#synchronous_request) and: - Blocks the main thread - Is unavailable in service workers and shared workers - May be removed from browsers in the future - Triggers deprecation warnings in browser consoles ## Impact HTTP requests work on the main browser thread but not in worker contexts. The browser console shows deprecation warnings. ## Possible fix Options: 1. Use `Atomics.wait` + `SharedArrayBuffer` with a worker to bridge async `fetch` to synchronous WASM (complex) 2. Wait for WASI 0.2/0.3 (#237) which provides native async I/O 3. Accept the limitation until Vera supports async WASM execution **Related:** #57 (Http effect), #237 (WASI)
The browser runtime implementation of
Http.getandHttp.post(#57) uses synchronousXMLHttpRequest, which is deprecated and:Impact
HTTP requests work on the main browser thread but not in worker contexts. The browser console shows deprecation warnings.
Possible fix
Options:
Atomics.wait+SharedArrayBufferwith a worker to bridge asyncfetchto synchronous WASM (complex)Related: #57 (Http effect), #237 (WASI)