-
-
Notifications
You must be signed in to change notification settings - Fork 324
Merge develop
into main
#1295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Merge develop
into main
#1295
Conversation
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
- `ReactPy` class has been created as the standalone API for ReactPy. - `ReactPyMiddleware` has been created as the version of ReactPy that can wrap other ASGI web frameworks. - Added a template tag to use alongside our middleware. - `@reactpy/client` has been rewritten to be more modular. - `reactpy.backends.*` is removed.
- Add template tags for rendering pyscript components - Add `pyscript_component` component to embed pyscript components into standard ReactPy server-side applications - Create new ASGI app that can run standalone client-side ReactPy - Convert all ASGI dependencies into an optional `reactpy[asgi]` parameter to minimize client-side install size - Start throwing 404 errors when static files are not found
- Change our preferred type checker from MyPy to Pyright - Don't rely on `asgiref.types` as much, since they're a bit too strict and cause a lot of type errors in use code.
* Bug fix for corrupted hook state - change hook state to a contextvar --------- Co-authored-by: James Hutchison <[email protected]>
- Renamed `reactpy.utils.html_to_vdom` to `reactpy.utils.string_to_reactpy`. - Renamed `reactpy.utils.vdom_to_html` to `reactpy.utils.reactpy_to_string`. - `reactpy.utils.string_to_reactpy` has been upgraded to handle more complex scenarios without causing ReactJS rendering errors. - `reactpy.utils.reactpy_to_string` will now retain the user's original casing for element `data-*` and `aria-*` attributes. - Convert `pragma: no cover` comments to `nocov`
- Removed ``reactpy.vdom``. Use ``reactpy.Vdom`` instead. - Removed ``reactpy.core.make_vdom_constructor``. Use ``reactpy.Vdom`` instead. - Removed ``reactpy.core.custom_vdom_constructor``. Use ``reactpy.Vdom`` instead. - ``reactpy.html`` will now automatically flatten lists recursively (ex. ``reactpy.html(["child1", ["child2"]])``) - Added type hints to ``reactpy.html`` attributes.
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
The develop branch was temporarily made to track breaking changes from ReactPy v1 to v2. Since we are preparing to do a public beta release of v2, this branch is no longer relevant.
Checklist
Please update this checklist as you complete each item:
By submitting this pull request I agree that all contributions comply with this project's open source license(s).