Skip to content

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 17 commits into from
May 31, 2025
Merged

Merge develop into main #1295

merged 17 commits into from
May 31, 2025

Conversation

Archmonger
Copy link
Contributor

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:

  • Tests have been developed for bug fixes or new functionality.
  • The changelog has been updated, if necessary.
  • Documentation has been updated, if necessary.
  • GitHub Issues closed by this PR have been linked.

By submitting this pull request I agree that all contributions comply with this project's open source license(s).

Archmonger and others added 16 commits January 31, 2025 18:02
- `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.
@Archmonger Archmonger marked this pull request as ready for review May 31, 2025 23:32
@Archmonger Archmonger merged commit 6930fc2 into main May 31, 2025
20 checks passed
@Archmonger Archmonger deleted the develop branch May 31, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants