Skip to content

6.0.0b1

Pre-release
Pre-release

Choose a tag to compare

@Archmonger Archmonger released this 14 Jul 22:20
· 1 commit to main since this release
35b702f

This is a beta version release (primarily to add support for ReactPy v2).

Added

  • Automatically serve ReactPy wheel from Django's static directory when using PyScript.

Changed

  • Updated dependencies: reactpy>=2.0.0, <3.0.0 and reactpy-router>=3.0.0, <4.0.0.
  • Updated Python support to 3.11–3.14.
  • Replaced PyScript <py-script> tags with standard <script type="py"> tags.
  • Updated the interface for reactpy.hooks.use_channel_layer to be more intuitive.
    • Arguments now must be provided as keyworded arguments.
    • The name argument has been renamed to channel.
    • The group_name argument has been renamed to group.
    • The group_add and group_discard arguments have been removed for simplicity.
  • To improve performance, preact is now used as the default client-side library instead of react.
  • ReactPy v2 compatibility! This release aligns reactpy-django with ReactPy v2's API.
    • Refactored DjangoResolver to extend ReactPyResolver instead of StarletteResolver.
    • Replaced web.module_from_file/web.export with reactjs.component_from_file.
    • Replaced reactpy.backend.types and reactpy.core.types imports with reactpy.types.
    • Renamed Location.pathname to Location.path and Location.search to Location.query_string.

Removed

  • Removed reactpy_django.components.pyscript_component. Use reactpy.executors.pyscript.pyscript_component instead.
  • Removed the entire reactpy_django/pyscript/ package (component template, layout handler, and utilities) in favor of ReactPy core's PyScript executor.
  • Removed reactpy_django.html.pyscript. Use reactpy.html.py_script instead.
  • Removed nest_asyncio dependency.

Fixed

  • Resolved bug where django_form events would sometimes not occur.