Skip to content

Commit 5891b41

Browse files
authored
Bump ReactPy to v1.1.0 (#258)
1 parent 95f8abf commit 5891b41

File tree

16 files changed

+46
-41
lines changed

16 files changed

+46
-41
lines changed

.github/workflows/publish-release-docs.yml renamed to .github/workflows/publish-latest-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Release Docs
1+
name: Publish Latest Docs
22

33
on:
44
release:

CHANGELOG.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

1111
<!--
1212
Using the following categories, list your changes in this order:
13-
14-
### Added
15-
- for new features.
16-
17-
### Changed
18-
- for changes in existing functionality.
19-
20-
### Deprecated
21-
- for soon-to-be removed features.
22-
23-
### Removed
24-
- for removed features.
25-
26-
### Fixed
27-
- for bug fixes.
28-
29-
### Security
30-
- for vulnerability fixes.
13+
[Added, Changed, Deprecated, Removed, Fixed, Security]
3114
3215
Don't forget to remove deprecated code on each major release!
3316
-->
@@ -36,7 +19,13 @@ Don't forget to remove deprecated code on each major release!
3619

3720
## [Unreleased]
3821

39-
- Nothing (yet)!
22+
### Added
23+
24+
- `settings.py:REACTPY_ASYNC_RENDERING` to enable asynchronous rendering of components.
25+
26+
### Changed
27+
28+
- Bumped the minimum ReactPy version to `1.1.0`.
4029

4130
## [5.0.0] - 2024-10-22
4231

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
- [Customizable reconnection behavior](https://reactive-python.github.io/reactpy-django/latest/reference/settings/#stability-settings)
2929
- [Customizable disconnection behavior](https://reactive-python.github.io/reactpy-django/latest/reference/template-tag)
3030
- [Multiple root components](https://reactive-python.github.io/reactpy-django/latest/reference/template-tag/)
31-
- [Cross-process communication/signaling (Channel Layers)](https://reactive-python.github.io/reactpy-django/latest/reference/hooks/#use-channel-layer)
31+
- [Cross-process communication/signaling](https://reactive-python.github.io/reactpy-django/latest/reference/hooks/#use-channel-layer)
3232
- [Django view to ReactPy component conversion](https://reactive-python.github.io/reactpy-django/latest/reference/components/#view-to-component)
3333
- [Django static file access](https://reactive-python.github.io/reactpy-django/latest/reference/components/#django-css)
3434
- [Django database access](https://reactive-python.github.io/reactpy-django/latest/reference/hooks/#use-query)

docs/src/reference/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
160160

161161
- Requires manual intervention to change HTTP methods to anything other than `GET`.
162162
- ReactPy events cannot conveniently be attached to converted view HTML.
163-
- Has no option to automatically intercept local anchor link (such as `#!html <a href='example/'></a>`) click events.
163+
- Has no option to automatically intercept click events from hyperlinks (such as `#!html <a href='example/'></a>`).
164164

165165
??? question "How do I use this for Class Based Views?"
166166

docs/src/reference/router.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ URL router that enables the ability to conditionally render other components bas
5050
| --- | --- |
5151
| `#!python VdomDict | None` | The matched component/path after it has been fully rendered. |
5252

53-
??? question "How is this different from `#!python reactpy_router.simple.router`?"
53+
??? question "How is this different from `#!python reactpy_router.browser_router`?"
5454

55-
This component utilizes `reactpy-router` under the hood, but provides a more Django-like URL routing syntax.
55+
The `django_router` component utilizes the same internals as `browser_router`, but provides a more Django-like URL routing syntax.

docs/src/reference/settings.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This is useful to continuously update `#!python last_login` timestamps and refre
8787

8888
Multiprocessing-safe database used by ReactPy for database-backed hooks and features.
8989

90-
If configuring this value, it is mandatory to enable our database router like such:
90+
If configuring this value, it is mandatory to configure Django to use the ReactPy database router:
9191

9292
=== "settings.py"
9393

@@ -123,6 +123,18 @@ This setting is incompatible with [`daphne`](https://github.com/django/daphne).
123123

124124
---
125125

126+
### `#!python REACTPY_ASYNC_RENDERING`
127+
128+
**Default:** `#!python False`
129+
130+
**Example Value(s):** `#!python True`
131+
132+
Configures whether to use an async ReactPy rendering queue. When enabled, large renders will no longer block smaller renders from taking place. Additionally, prevents the rendering queue from being blocked on waiting for async effects to startup/shutdown (which is typically a relatively slow operation).
133+
134+
This setting is currently experimental, and currently no effort is made to de-duplicate renders. For example, if parent and child components are scheduled to render at the same time, both renders will take place even though a single render of the parent component would have been sufficient.
135+
136+
---
137+
126138
### `#!python REACTPY_DEFAULT_HOSTS`
127139

128140
**Default:** `#!python None`

requirements/pkg-deps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
channels >=4.0.0
22
django >=4.2.0
3-
reactpy >=1.0.2, <1.1.0
3+
reactpy >=1.1.0, <1.2.0
44
reactpy-router >=1.0.0, <2.0.0
55
dill >=0.3.5
66
orjson >=3.6.0

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
from setuptools.command.develop import develop
1212
from setuptools.command.sdist import sdist
1313

14-
log = getLogger(__name__)
15-
1614
# -----------------------------------------------------------------------------
1715
# Basic Constants
1816
# -----------------------------------------------------------------------------
@@ -22,6 +20,7 @@
2220
js_dir = src_dir / "js"
2321
package_dir = src_dir / name
2422
static_dir = package_dir / "static" / name
23+
log = getLogger(__name__)
2524

2625

2726
# -----------------------------------------------------------------------------
@@ -60,7 +59,10 @@
6059
"Intended Audience :: Developers",
6160
"Intended Audience :: Science/Research",
6261
"Topic :: Multimedia :: Graphics",
62+
"Topic :: Software Development :: Widget Sets",
63+
"Topic :: Software Development :: User Interfaces",
6364
"Environment :: Web Environment",
65+
"Typing :: Typed",
6466
],
6567
}
6668

src/js/bun.lockb

1.06 KB
Binary file not shown.

src/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"prettier": "^3.3.3"
1313
},
1414
"dependencies": {
15-
"@pyscript/core": "^0.5",
15+
"@pyscript/core": "^0.6",
1616
"@reactpy/client": "^0.3.1",
1717
"morphdom": "^2.7.4"
1818
}

0 commit comments

Comments
 (0)