Merged
Conversation
Update React/pyodide worker integration to match the new sync and communication APIs and refresh the dependency stack + lockfile. BREAKING CHANGE: Requires @linkdlab/funcnodes_react_flow ^2.
Move Pyodide-only imports behind the emscripten platform guard and lazy-import update_config inside patch() to prevent import-time failures in other runtimes.
Allow saving/restoring the pyodide worker export via localStorage when `restore_worker_state_on_load` is set, skipping initial full sync on successful restore. Update the communication manager byte handler to `onbytes` and pass `debug` plus a temporary `worker_url` required by the current renderer.
Add a detailed README for the pyodide + react-flow integration, add a PyodideWorker.get_info() helper, and introduce basic Node/pytest checks to catch import/type/dispatch regressions.
Normalize package specs to absolute URLs, and skip installing funcnodes-pyodide from PyPI when a funcnodes_pyodide wheel is provided. Update README with correct paths and local-wheel workflow, and add sanity tests for the new behavior.
Ensure find_free_port always closes sockets, use get_running_loop() when spawning the worker task, and tighten worker message forwarding and package info collection.
Correct paths in the README for the funcnodes_pyodide directory, enhance formatting for clarity, and streamline local development instructions. Adjusted emphasis on deliverables and improved command examples for better readability.
Support `?load=...` in `src/react/index.html` to fetch a `.fnw` export and apply it to the worker on startup, and document the flow in README.
Refactor the loading mechanism for worker exports in `index.html` to include base64 encoding for binary files and improve error handling. Update tests to reflect changes in query parameter handling and ensure proper application of loaded exports.
Support `?load=...` in `src/react/index.html` to fetch a `.fnw` export and apply it to the worker on startup, and document the flow in README. build(react)!: bump pyodide to 0.29.0 Update default Pyodide CDN URL and normalize PyProxy dict payloads. Align peerDependencies with devDependencies and add regression tests. BREAKING CHANGE: Requires pyodide ^0.29.0 and bumps peer deps to react ^19.2.3 and @linkdlab/funcnodes_react_flow ^2.1.2.
Update the receivepy_bytes function to properly convert PyProxy payloads using the toJs method and ensure that only Uint8Array is forwarded to workerState. Add a new test to verify the correct handling of normalized bytes.
- Introduced a new workflow for publishing React packages to npm on main/master branch updates. - Added a testing workflow for React that runs on dev and test branches. - Enabled corepack in both workflows to manage package dependencies effectively. - Updated comments for clarity in the npm build workflow regarding working directory context.
…and modify typecheck script - Updated the version of @linkdlab/funcnodes_react_flow in both package.json and yarn.lock to 2.2.0. - Changed the typecheck script in package.json to remove the --watch flag for a more straightforward type checking process.
…7647 chore: update build files [skip ci]
…pdate package.json
…command in npm build workflow, but ignore yarn.lock
…nsure yarn.lock is reset correctly
…roper dependency management
…ck for changes before commit
…1527 chore: update build files [skip ci]
…8290 chore: update build files [skip ci]
…ackage.json and yarn.lock
…1335 chore: update build files [skip ci]
…react_flow and vite versions in package.json and yarn.lock
… deprecated preloading logic
…1513 chore: update build files [skip ci]
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.