From 134d5a63f10d53c2c830654fdb386eeff7fd94f4 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 6 Jul 2026 21:13:44 -0700 Subject: [PATCH 1/2] `reactpy` v2.0.0b12 and `@reactpy/client` v1.2.0 --- src/js/packages/@reactpy/client/package.json | 2 +- src/reactpy/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/packages/@reactpy/client/package.json b/src/js/packages/@reactpy/client/package.json index 6708d6745..0e89b1d5f 100644 --- a/src/js/packages/@reactpy/client/package.json +++ b/src/js/packages/@reactpy/client/package.json @@ -36,5 +36,5 @@ "checkTypes": "tsc --noEmit" }, "type": "module", - "version": "1.1.1" + "version": "1.2.0" } diff --git a/src/reactpy/__init__.py b/src/reactpy/__init__.py index 293701b1f..10f28e5f6 100644 --- a/src/reactpy/__init__.py +++ b/src/reactpy/__init__.py @@ -23,7 +23,7 @@ from reactpy.utils import Ref, reactpy_to_string, string_to_reactpy __author__ = "The Reactive Python Team" -__version__ = "2.0.0b11" +__version__ = "2.0.0b12" __all__ = [ "Ref", From 819e0de359634e146eefa25dc867ed887d9eedb7 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:33:24 -0700 Subject: [PATCH 2/2] Migrate legacy changelog to new changelog --- CHANGELOG.md | 846 ++++++++++++++++++++- docs/source/about/changelog.rst | 1268 +------------------------------ 2 files changed, 846 insertions(+), 1268 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ae17cf8a..c7c7bac0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -179,6 +179,809 @@ Don't forget to remove deprecated code on each major release! - Fixed CLI not registered as entry point. - Unification of component and VDOM constructor interfaces. +## [0.44.0] - 2023-01-27 + +### Deprecated + +- `reactpy.widgets.hotswap`. The function has no clear uses outside of some internal applications. + +### Removed + +- Ability to access element value from events via `event['value']` key. Use `event['target']['value']` instead. +- Old misspelled option `REACTPY_WED_MODULES_DIR`. + +## [0.43.0] - 2023-01-09 + +### Deprecated + +- `ComponentType.()`. This method was implemented based on reading the React/Preact source code. + +### Fixed + +- Nested context does not update value if outer context should not render. +- Detached model state on render of context consumer if unmounted and context value does not change. + +## [0.42.0] - 2022-12-02 + +### Added + +- Ability to customize the `
` element of ReactPy's built-in client. +- `vdom_to_html` utility function. +- Ability to subscribe to changes that are made to mutable options. +- `del_html_head_body_transform` to remove ``, ``, and `` while preserving children. +- Support for form element serialization + +### Fixed + +- `REACTPY_DEBUG_MODE` is now mutable and can be changed at runtime. +- Fix `html_to_vdom` improperly removing ``, ``, and `` nodes. + +### Removed + +- Removed `reactpy.html.body` as it is currently unusable due to technological limitations. +- Removed `REACTPY_FEATURE_INDEX_AS_DEFAULT_KEY` option. +- Removed `serve_static_files` option from backend configuration. + +### Deprecated + +- `module_from_template`. + +## [0.41.0] - 2022-11-01 + +### Changed + +- The hooks `use_location` and `use_scope` are no longer implementation specific and are now available as top-level imports. +- Backend implementations now strip any URL prefix in the pathname for `use_location`. +- `use_state` now returns a named tuple with `value` and `set_value` fields. + +### Added + +- New `use_connection` hook which returns a `Connection` object containing `location`, `scope`, and `carrier`. + +## [0.40.2] - 2022-09-13 + +### Changed + +- Avoid the use of JSON patch for diffing models. + +## [0.40.1] - 2022-09-11 + +### Fixed + +- Child models after a component fail to render. + +## [0.40.0] - 2022-08-13 + +### Fixed + +- Fix edge cases where `html_to_vdom` can fail to convert HTML. +- Conditionally rendered components cannot use contexts. +- Use strict equality check for text, numeric, and binary types in hooks. +- Accidental mutation of old model causes invalid JSON Patch. + +### Changed + +- Set default timeout on Playwright page for testing. +- Track contexts in hooks as state. +- Remove non-standard `name` argument from `create_context`. + +### Added + +- `asgiref` as a dependency. +- `lxml` as a dependency. + +## [0.39.0] - 2022-06-20 + +### Fixed + +- `No module named 'reactpy.server'` from `reactpy.run`. +- Setting appropriate MIME type for web modules in `sanic` server implementation. + +### Changed + +- Renamed various: `reactpy.testing.server` to `reactpy.testing.backend`, `ServerFixture` to `BackendFixture`, `DisplayFixture.server` to `DisplayFixture.backend`. +- Removed `exports_default` parameter from `module_from_template`. + +### Added + +- Ability to specify versions with module templates (e.g. `module_from_template("react@^17.0.0", ...)`). + +## [0.38.1] - 2022-04-15 + +### Fixed + +- Missing file extension was causing a problem with WebPack. + +## [0.38.0] - 2022-04-15 + +No changes. + +## [0.37.2] - 2022-03-27 + +### Changed + +- Renamed `proto` modules to `types` and added a top-level `reactpy.types` module. + +### Fixed + +- Fixed a typo that caused ReactPy to use the insecure `ws` web-socket protocol on pages loaded with `https` instead of the secure `wss` protocol. + +## [0.37.1] - 2022-03-05 + +No changes. + +## [0.37.0] - 2022-02-27 + +### Added + +- Support for keys in HTML fragments. +- Use Context Hook. + +### Fixed + +- React warning about set state in unmounted component. +- Missing reset of schedule_render_later flag. + +## [0.36.3] - 2022-02-18 + +### Fixed + +- All child states wiped upon any child key change. +- Allow NoneType returns within components. + +## [0.36.2] - 2022-02-02 + +### Fixed + +- Hot fix for newly introduced `DeprecatedOption`. + +## [0.36.1] - 2022-02-02 + +### Fixed + +- Fix Key Error when Cleaning Up Event Handlers. +- Update Script Tag Behavior. + +### Changed + +- Renamed configuration option `REACTPY_WED_MODULES_DIR` to `REACTPY_WEB_MODULES_DIR`. + +## [0.36.0] - 2022-01-30 + +### Added + +- New `http.script` element which can behave similarly to a standard HTML `