Merged
Conversation
- Implement URLSession using JavaScriptKit fetch for WASM/browser - Add HTTPURLResponse with header support and value(forHTTPHeaderField:) - Add console logging helper to route Swift logs to browser console - Support full HTTP request/response cycle including headers and body Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…context JavaScriptKit's function extraction loses JavaScript 'this' context, causing "Illegal invocation" errors. Solution: use JavaScript wrapper functions in HTML that properly call browser APIs: - window.wasmFetch(url, options) - wraps fetch() - window.wasmHeadersGet(headers, name) - wraps headers.get() - window.wasmHeadersEntries(headers) - wraps headers.entries() - window.wasmIteratorNext(iterator) - wraps iterator.next() - window.wasmArrayBuffer(response) - wraps response.arrayBuffer() These wrappers are called from Swift via JSObject.global.wasmFetch.function!() and preserve the necessary context for browser APIs to work correctly. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updates FOSFoundation and FOSMVVM for WASM/WASI compatibility: - Platform-specific conditionals for async Task operations - URL data fetching adaptations for WASM environment - URLSession mocking and WebSocket support for WASM - SystemVersion handling for WASM platforms - MVVMEnvironment and TestHost WASM compatibility Updates governance documentation in .claude/CLAUDE.md with current session context and refined principles/lessons collection. Updates Package dependencies to support WASM builds. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.