Releases: reactive-python/reactpy-django
Releases · reactive-python/reactpy-django
Release list
2.1.0
Changed
- Minimum
channelsversion is now4.0.0.
Fixed
- Change type hint on
view_to_componentcallable to haverequestargument be optional. - Change type hint on
view_to_componentto represent it as a decorator with paranthesis (ex@view_to_component(compatibility=True))
Security
- Add note to docs about potential information exposure via
view_to_componentwhen usingcompatibility=True.
2.0.1
Fixed
- Ability to use
key=...parameter on all prefabricated components
2.0.0
Added
use_originhook for returning the browser'slocation.origin.
Changed
view_to_componentnow returns aCallable, instead of directly returning aComponent. Check the docs for new usage info.use_mutationanduse_querywill now log any query failures.
Fixed
- Allow
use_mutationto haverefetch=None, as the docs suggest is possible. use_querywill now prefetch all fields to preventSynchronousOnlyOperationexceptions.view_to_component,django_css, anddjango_jstype hints will now display like normal functions.- IDOM preloader no longer attempts to parse commented out IDOM components.
- Tests are now fully functional on Windows
1.2.0
Added
auth_requireddecorator to prevent your components from rendering to unauthenticated users.use_queryhook for fetching database values.use_mutationhook for modifying database values.view_to_componentutility to convert legacy Django views to IDOM components.
Changed
- Bumped the minimum IDOM version to 0.40.2
- Testing suite now uses
playwrightinstead ofselenium
Fixed
- IDOM preloader is no longer sensitive to whitespace within template tags.
1.1.0
Added
django_cssanddjango_jscomponents to defer loading CSS & JS files until needed.
Changed
- Bumped the minimum IDOM version to 0.39.0
1.0.0
Added
- Django-specific hooks!
use_websocket,use_scope, anduse_locationare now available within thedjango_idom.hooksmodule. - Documentation has been placed into a formal docs webpage.
- Logging for when a component fails to import, or if no components were found within Django.
Changed
idom_componenttemplate tag has been renamed tocomponent- Bumped the minimum IDOM version to 0.38.0
Removed
websocketparameter for components has been removed. Functionally, it is replaced withdjango_idom.hooks.use_websocket.
0.0.5
Changed
- Bumped the minimum IDOM version to 0.37.2
Fixed
- ModuleNotFoundError: No module named
idom.core.protocaused by IDOM 0.37.2
0.0.4
Changed
- Bumped the minimum IDOM client version to 0.37.1
0.0.3
Changed
- Bumped the minimum IDOM client version to 0.36.3
0.0.2
Added
- Ability to declare the HTML class of the top-level component
div name = ...parameter to IDOM HTTP paths for use withdjango.urls.reverse()- Cache versioning to automatically invalidate old web module files from the cache backend
- Automatic pre-population of the IDOM component registry
- Type hinting for
IdomWebsocket
Changed
- Fetching web modules from disk and/or cache is now fully async
- Static files are now contained within a
django_idom/parent folder - Upgraded IDOM to version
0.36.0 - Minimum Django version required is now
4.0 - Minimum Python version required is now
3.8
Removed
IDOM_WEB_MODULES_PATHhas been replaced with Djangoinclude(...)IDOM_WS_MAX_RECONNECT_DELAYhas been renamed toIDOM_WS_MAX_RECONNECT_TIMEOUTidom_web_modulescache backend has been renamed toidom
Fixed
- Increase test timeout values to prevent false positives
- Windows compatibility for building Django-IDOM
Security
- Fixed potential directory travesal attack on the IDOM web modules URL