From 2493e05c3a1663b8432a76a696d6d557a2533296 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Mon, 26 Jun 2023 23:29:40 -0700 Subject: [PATCH 1/5] v3.2.1 --- CHANGELOG.md | 9 +++++++-- src/js/package.json | 2 +- src/reactpy_django/__init__.py | 2 +- src/reactpy_django/websocket/consumer.py | 5 ++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef52d7de..b8557069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,9 +34,13 @@ Using the following categories, list your changes in this order: ## [Unreleased] +- Nothing yet! + +## [3.2.1] - 2023-06-27 + ### Added -- Template tag exception details are now rendered on the webpage when `DEBUG` is enabled. +- Template tag exception details are now rendered on the webpage when `settings.py:DEBUG` is enabled. ### Fixed @@ -295,7 +299,8 @@ Using the following categories, list your changes in this order: - Support for IDOM within the Django -[unreleased]: https://github.com/reactive-python/reactpy-django/compare/3.2.0...HEAD +[unreleased]: https://github.com/reactive-python/reactpy-django/compare/3.2.1...HEAD +[3.2.1]: https://github.com/reactive-python/reactpy-django/compare/3.2.0...3.2.1 [3.2.0]: https://github.com/reactive-python/reactpy-django/compare/3.1.0...3.2.0 [3.1.0]: https://github.com/reactive-python/reactpy-django/compare/3.0.1...3.1.0 [3.0.1]: https://github.com/reactive-python/reactpy-django/compare/3.0.0-reactpy...3.0.1 diff --git a/src/js/package.json b/src/js/package.json index 92890671..b926f296 100644 --- a/src/js/package.json +++ b/src/js/package.json @@ -17,6 +17,6 @@ "@rollup/plugin-replace": "^5.0.2" }, "dependencies": { - "@reactpy/client": "^0.1.0" + "@reactpy/client": "^0.3.1" } } diff --git a/src/reactpy_django/__init__.py b/src/reactpy_django/__init__.py index 0d8bb188..8d026baa 100644 --- a/src/reactpy_django/__init__.py +++ b/src/reactpy_django/__init__.py @@ -2,7 +2,7 @@ from reactpy_django.websocket.paths import REACTPY_WEBSOCKET_PATH -__version__ = "3.2.0" +__version__ = "3.2.1" __all__ = [ "REACTPY_WEBSOCKET_PATH", "hooks", diff --git a/src/reactpy_django/websocket/consumer.py b/src/reactpy_django/websocket/consumer.py index 90ee0632..54829be5 100644 --- a/src/reactpy_django/websocket/consumer.py +++ b/src/reactpy_django/websocket/consumer.py @@ -130,9 +130,8 @@ async def _run_dispatch_loop(self): )() except models.ComponentSession.DoesNotExist: _logger.warning( - f"Browser has attempted to access '{dotted_path}', " - f"but the component has already expired beyond REACTPY_RECONNECT_MAX. " - "If this was expected, this warning can be ignored." + f"Component session for '{dotted_path}' not found. The session " + "may have already expired beyond REACTPY_RECONNECT_MAX." ) return component_params: ComponentParamData = pickle.loads(params_query.params) From 492bdfaf80fed8379921af40216565878d8a9e2e Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Tue, 27 Jun 2023 16:30:15 -0700 Subject: [PATCH 2/5] revert client version --- src/js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/package.json b/src/js/package.json index b926f296..92890671 100644 --- a/src/js/package.json +++ b/src/js/package.json @@ -17,6 +17,6 @@ "@rollup/plugin-replace": "^5.0.2" }, "dependencies": { - "@reactpy/client": "^0.3.1" + "@reactpy/client": "^0.1.0" } } From ba673dc613e55d0bf3ba481f364faf511a53fd59 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 28 Jun 2023 02:12:00 -0700 Subject: [PATCH 3/5] update warning some more --- src/reactpy_django/websocket/consumer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reactpy_django/websocket/consumer.py b/src/reactpy_django/websocket/consumer.py index 54829be5..c9f32bce 100644 --- a/src/reactpy_django/websocket/consumer.py +++ b/src/reactpy_django/websocket/consumer.py @@ -130,8 +130,8 @@ async def _run_dispatch_loop(self): )() except models.ComponentSession.DoesNotExist: _logger.warning( - f"Component session for '{dotted_path}' not found. The session " - "may have already expired beyond REACTPY_RECONNECT_MAX." + f"Component session for '{dotted_path}:{uuid}' not found. The " + "session may have already expired beyond REACTPY_RECONNECT_MAX." ) return component_params: ComponentParamData = pickle.loads(params_query.params) From 0dbeecd7dd0f3e8dbbc1c83eacee8c8c6d6b4d9b Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 28 Jun 2023 03:17:25 -0700 Subject: [PATCH 4/5] fix regex test typo --- tests/test_app/tests/test_regex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_app/tests/test_regex.py b/tests/test_app/tests/test_regex.py index cee32751..61b72e4a 100644 --- a/tests/test_app/tests/test_regex.py +++ b/tests/test_app/tests/test_regex.py @@ -41,8 +41,8 @@ def test_component_regex(self): self.assertNotRegex(r"", COMPONENT_REGEX) self.assertNotRegex(r'{% component " my.component " %}', COMPONENT_REGEX) self.assertNotRegex( - r"""{% component "my.component COMPONENT_REGEX) - self.assertNotRegex( " %}""", + r"""{% component "my.component + " %}""", COMPONENT_REGEX, ) self.assertNotRegex(r'{{ component """ }}', COMPONENT_REGEX) From 5b4bb12b68429376010112baaf6ba8f59b155452 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:29:17 -0700 Subject: [PATCH 5/5] bump date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8557069..10bb1d3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,7 @@ Using the following categories, list your changes in this order: - Nothing yet! -## [3.2.1] - 2023-06-27 +## [3.2.1] - 2023-06-29 ### Added