Add Pyodide worker hosting - #135
Merged
Merged
Conversation
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Contributor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
==========================================
- Coverage 96.95% 96.02% -0.94%
==========================================
Files 36 39 +3
Lines 1972 2062 +90
Branches 146 150 +4
==========================================
+ Hits 1912 1980 +68
- Misses 38 60 +22
Partials 22 22 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
Add a Pyodide Web Worker host that keeps Python rendering and state work off the main thread while the browser runtime mounts and incrementally patches the DOM.
The example routes a Python-authored
SendPatchaction through a transports 0.7 client proposal and authoritative session, then renders the accepted state and applies the resulting component-tree diff without replacing live elements. The existing build matrix now produces and tests a Python 3.14 Pyodide wheel, including a real Playwright round trip.This also updates Python, JavaScript, and Rust transports dependencies to 0.7 and prevents generated Pyodide wheels from being copied recursively into browser assets.
Type of Change
Checklist
make lint)make test)