Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.2.0 #277

Merged
merged 4 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Don't forget to remove deprecated code on each major release!

## [Unreleased]

- Nothing (yet)!

### [5.2.0] - 2024-12-29

### Added

- User login/logout features!
Expand Down Expand Up @@ -540,7 +544,8 @@ Don't forget to remove deprecated code on each major release!

- Support for IDOM within the Django

[Unreleased]: https://github.com/reactive-python/reactpy-django/compare/5.1.1...HEAD
[Unreleased]: https://github.com/reactive-python/reactpy-django/compare/5.2.0...HEAD
[5.2.0]: https://github.com/reactive-python/reactpy-django/compare/5.1.1...5.2.0
[5.1.1]: https://github.com/reactive-python/reactpy-django/compare/5.1.0...5.1.1
[5.1.0]: https://github.com/reactive-python/reactpy-django/compare/5.0.0...5.1.0
[5.0.0]: https://github.com/reactive-python/reactpy-django/compare/4.0.0...5.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/reactpy_django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)
from reactpy_django.websocket.paths import REACTPY_WEBSOCKET_ROUTE

__version__ = "5.1.1"
__version__ = "5.2.0"
__all__ = [
"REACTPY_WEBSOCKET_ROUTE",
"components",
Expand Down
1 change: 0 additions & 1 deletion src/reactpy_django/templatetags/reactpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def component(
)
_logger.error(msg)
return failure_context(dotted_path, ComponentCarrierError(msg))

_prerender_html = prerender_component(user_component, args, kwargs, uuid, request)

# Fetch the offline component's HTML, if requested
Expand Down
5 changes: 4 additions & 1 deletion tests/test_app/tests/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def test_component_use_auth(self):
# Double check that the user stayed logged out
self.page.wait_for_selector("#use-auth[data-username='AnonymousUser']")

# FIXME: This test is flaky on GitHub Actions for unknown reasons.
# Fails at: self.page.wait_for_selector("#use-auth-no-rerender[data-username='user_5']")
@pytest.mark.flaky(reruns=5)
@navigate_to_page("/")
def test_component_use_auth_no_rerender(self):
uuid = self.page.wait_for_selector("#use-auth-no-rerender").get_attribute("data-uuid")
Expand Down Expand Up @@ -912,7 +915,7 @@ def test_form_orm_model(self):
finally:
os.environ.pop("DJANGO_ALLOW_ASYNC_UNSAFE")

# TODO: Remove the `reruns` value once we fix flakiness of `test_sync_form_events`
# FIXME: Remove the `reruns` value once we fix flakiness of `test_sync_form_events`
# https://github.com/reactive-python/reactpy-django/issues/272
@pytest.mark.flaky(reruns=5)
@navigate_to_page("/form/sync_event/")
Expand Down
Loading