Releases: reactive-python/reactpy-django
Releases · reactive-python/reactpy-django
3.0.0
This is Django-IDOM's biggest update yet!
To upgrade from previous version you will need to...
- Install
django-idom >= 3.0.0
- Run
idom rewrite-keys <DIR>
andidom rewrite-camel-case-props <DIR>
to update youridom.html.*
calls to the new syntax - Run
python manage.py migrate
to create the new Django-IDOM database entries
Added
- The
idom
client will automatically configure itself to debug mode depending onsettings.py:DEBUG
. use_connection
hook for returning the browser's activeConnection
.IDOM_CACHE
is now configurable withinsettings.py
to whatever cache name you wish.
Changed
- It is now mandatory to run
manage.py migrate
after installing IDOM. - Bumped the minimum IDOM version to 1.0.0. Due to IDOM 1.0.0,
idom.html.*
...- HTML properties can now be
snake_case
. For exampleclassName
now becomesclass_name
. key=...
is now declared within the propsdict
(rather than as akwarg
).
- HTML properties can now be
- The
component
template tag now supports both positional and keyword arguments. - The
component
template tag now supports non-serializable arguments. IDOM_WS_MAX_RECONNECT_TIMEOUT
setting has been renamed toIDOM_RECONNECT_MAX
.
Removed
django_idom.hooks.use_websocket
has been removed. The similar replacement isdjango_idom.hooks.use_connection
.django_idom.types.IdomWebsocket
has been removed. The similar replacement isdjango_idom.types.Connection
.settings.py:CACHE['idom']
is no longer used by default. The name of the cache back-end must now be specified with theIDOM_CACHE
setting.
Fixed
view_to_component
will now retain the contents of a<head>
tag when rendering.- React client is now set to
production
rather thandevelopment
. use_query
will now utilizefield.related_name
when postprocessing many-to-one relationships.
Security
- Fixed a potential method of component template tag argument spoofing.
- Exception information will no longer be displayed on the page, based on the value of
settings.py:DEBUG
.
3.0.0a4
- Bump IDOM to
1.0.0a6
3.0.0a3
- Bump idom to
1.0.0a5
- Prevent
db_cleanup
from causing startup failure on anyDatabaseError
, rather than justOperationalError(DatabaseError)
IDOM_DATABASE
settingIDOM_CACHE
setting
3.0.0a2
- Bumps IDOM to
1.0.0a3
3.0.0a1
This is Django-IDOM's biggest update yet!
To upgrade from previous version you will need to...
- Install
django-idom >= 3.0.0
- Run
idom update-html-usages <DIR>
to update youridom.html.*
calls to the new syntax - Run
python manage.py migrate
to create the new Django-IDOM database entries
Added
- The
idom
client will automatically configure itself to debug mode depending onsettings.py:DEBUG
. use_connection
hook for returning the browser's activeConnection
Changed
- It is now mandatory to run
manage.py migrate
after installing IDOM. - Bumped the minimum IDOM version to 1.0.0
- Due to IDOM 1.0.0,
idom.html.*
, HTML properties are nowsnake_case
**kwargs
rather than adict
of values. - You can auto-convert to the new style using
idom update-html-usages <DIR>
.
- Due to IDOM 1.0.0,
- The
component
template tag now supports both positional and keyword arguments. - The
component
template tag now supports non-serializable arguments. IDOM_WS_MAX_RECONNECT_TIMEOUT
setting has been renamed toIDOM_RECONNECT_MAX
.
Removed
django_idom.hooks.use_websocket
has been removed. The similar replacement isdjango_idom.hooks.use_connection
.django_idom.types.IdomWebsocket
has been removed. The similar replacement isdjango_idom.types.Connection
Fixed
view_to_component
will now retain any HTML that was defined in a<head>
tag.- React client is now set to
production
rather thandevelopment
. use_query
will now utilizefield.related_name
when postprocessing many-to-one relationships
Security
- Fixed a potential method of component template tag argument spoofing.
- Exception information will no longer be displayed on the page, based on the value of
settings.py:DEBUG
.
2.2.1
Fixed
- Fixed bug where
use_query
would not recursively fetch many-to-one relationships. - IDOM preloader will now print out the exception stack when failing to import a module.
2.2.0
Added
- Add
options: QueryOptions
parameter touse_query
to allow for configuration of this hook.
Changed
- By default,
use_query
will recursively prefetch all many-to-many or many-to-one relationships to preventSynchronousOnlyOperation
exceptions.
Removed
django_idom.hooks._fetch_lazy_fields
has been deleted. The equivalent replacement isdjango_idom.utils.django_query_postprocessor
.
2.1.0
Changed
- Minimum
channels
version is now4.0.0
.
Fixed
- Change type hint on
view_to_component
callable to haverequest
argument be optional. - Change type hint on
view_to_component
to 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_component
when usingcompatibility=True
.
2.0.1
Fixed
- Ability to use
key=...
parameter on all prefabricated components
2.0.0
Added
use_origin
hook for returning the browser'slocation.origin
.
Changed
view_to_component
now returns aCallable
, instead of directly returning aComponent
. Check the docs for new usage info.use_mutation
anduse_query
will now log any query failures.
Fixed
- Allow
use_mutation
to haverefetch=None
, as the docs suggest is possible. use_query
will now prefetch all fields to preventSynchronousOnlyOperation
exceptions.view_to_component
,django_css
, anddjango_js
type 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