You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14-5
Original file line number
Diff line number
Diff line change
@@ -39,20 +39,29 @@ Using the following categories, list your changes in this order:
39
39
- ReactPy components can now use SEO compatible rendering!
40
40
-`settings.py:REACTPY_PRERENDER` can be set to `True` to enable this behavior by default
41
41
- Or, you can enable it on individual components via the template tag: `{% component "..." prerender="True" %}`
42
-
-`reactpy_django.components.view_to_iframe` component has been added, which uses an `<iframe>` to render a Django view.
43
-
-`reactpy_django.utils.register_iframe` function has been added, which is mandatory to use alongside `reactpy_django.components.view_to_iframe`.
42
+
- New components!
43
+
-`reactpy_django.components.view_to_iframe` uses an `<iframe>` to render a Django view.
44
+
- New utilies!
45
+
-`reactpy_django.utils.register_iframe` notifies ReactPy which views are allowed to be used with `view_to_iframe`.
46
+
- New decorators!
47
+
-`reactpy_django.decorators.user_passes_test` is a similar equivalent to Django's `user_passes_test` decorator, but ours works with ReactPy components.
48
+
- New hooks!
49
+
-`reactpy_django.hooks.use_user` can be used to access the current user.
50
+
-`reactpy_django.hooks.use_user_data` provides a simplified interface for storing user key-value data.
51
+
- New settings!
52
+
-`REACTPY_AUTO_LOGIN` automatically logs in **pre-authenticated** users that during the initial component WebSocket connection. This is useful to continuously update `last_login` timestamps.
44
53
45
54
### Changed
46
55
47
-
- Renamed undocumented utility function `reactpy_django.utils.ComponentPreloader` to `reactpy_django.utils.RootComponentFinder`.
56
+
- Renamed undocumented utility function `ComponentPreloader` to `RootComponentFinder`.
48
57
- It is now recommended to call `as_view()` when using `view_to_component` or `view_to_iframe` with Class Based Views.
49
58
- Thread sensitivity has been enabled in all locations where ORM queries are possible.
50
59
51
60
### Deprecated
52
61
53
-
- The `compatibility` argument on `reactpy_django.components.view_to_component` is deprecated. Use `reactpy_django.components.view_to_iframe` instead.
62
+
- The `compatibility` argument on `reactpy_django.components.view_to_component` is deprecated. Use `view_to_iframe` instead.
54
63
- Using `reactpy_django.components.view_to_component` as a decorator is deprecated. Check the docs on the new suggested usage.
55
-
-`reactpy_django.decorators.auth_required` is deprecated. An equivalent to this decorator's default is `@reactpy_django.decorators.user_passes_test(lambda user: user.is_active)`.
64
+
-`reactpy_django.decorators.auth_required` is deprecated. An equivalent to this decorator's default is `@user_passes_test(lambda user: user.is_active)`.
0 commit comments