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 `