Skip to content

Commit 9607a8d

Browse files
authored
v3.6.0 (#209)
1 parent 023cb15 commit 9607a8d

File tree

7 files changed

+23
-16
lines changed

7 files changed

+23
-16
lines changed

Diff for: CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Using the following categories, list your changes in this order:
3434

3535
## [Unreleased]
3636

37+
- Nothing (yet)!
38+
39+
## [3.6.0] - 2024-01-10
40+
3741
### Added
3842

3943
- Built-in Single Page Application (SPA) support!
@@ -213,7 +217,7 @@ Using the following categories, list your changes in this order:
213217

214218
### Changed
215219

216-
- `django-reactpy` database entries are no longer cleaned during Django application startup. Instead, it will occur on webpage loads if `REACTPY_RECONNECT_MAX` seconds has elapsed since the last cleaning.
220+
- `reactpy-django` database entries are no longer cleaned during Django application startup. Instead, it will occur on webpage loads if `REACTPY_RECONNECT_MAX` seconds has elapsed since the last cleaning.
217221

218222
## [3.0.0-reactpy] - 2023-03-30
219223

@@ -433,7 +437,8 @@ Using the following categories, list your changes in this order:
433437

434438
- Support for IDOM within the Django
435439

436-
[unreleased]: https://github.com/reactive-python/reactpy-django/compare/3.5.1...HEAD
440+
[unreleased]: https://github.com/reactive-python/reactpy-django/compare/3.6.0...HEAD
441+
[3.6.0]: https://github.com/reactive-python/reactpy-django/compare/3.5.1...3.6.0
437442
[3.5.1]: https://github.com/reactive-python/reactpy-django/compare/3.5.0...3.5.1
438443
[3.5.0]: https://github.com/reactive-python/reactpy-django/compare/3.4.0...3.5.0
439444
[3.4.0]: https://github.com/reactive-python/reactpy-django/compare/3.3.2...3.4.0

Diff for: docs/src/about/code.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ git clone https://github.com/reactive-python/reactpy-django.git
2828
cd reactpy-django
2929
```
3030

31-
Then, by running the command below you can install the dependencies needed to run the ReactPy Django development environment.
31+
Then, by running the command below you can install the dependencies needed to run the ReactPy-Django development environment.
3232

3333
```bash linenums="0"
3434
pip install -r requirements.txt --upgrade --verbose
@@ -38,7 +38,7 @@ pip install -r requirements.txt --upgrade --verbose
3838

3939
Some of our development dependencies require a C++ compiler, which is not installed by default on Windows. If you receive errors related to this during installation, follow the instructions in your console errors.
4040

41-
Additionally, be aware that ReactPy Django's JavaScript bundle is built within the following scenarios:
41+
Additionally, be aware that ReactPy-Django's JavaScript bundle is built within the following scenarios:
4242

4343
1. When `pip install` is run on the `reactpy-django` package.
4444
2. Every time `python manage.py ...` or `nox ...` is run

Diff for: docs/src/reference/hooks.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Prefabricated hooks can be used within your `components.py` to help simplify dev
1818

1919
---
2020

21-
### `#!python use_query(query, *args, **kwargs)`
21+
### Use Query
2222

2323
Execute functions in the background and return the result, typically to [read](https://www.sumologic.com/glossary/crud/) data from the Django ORM.
2424

@@ -164,7 +164,7 @@ Query functions can be sync or async.
164164

165165
---
166166

167-
### `#!python use_mutation(mutation, refetch=None)`
167+
### Use Mutation
168168

169169
Modify data in the background, typically to [create/update/delete](https://www.sumologic.com/glossary/crud/) data from the Django ORM.
170170

@@ -273,7 +273,7 @@ Mutation functions can be sync or async.
273273

274274
---
275275

276-
### `#!python use_user_data(default_data=None, save_default_data=False)`
276+
### Use User Data
277277

278278
Store or retrieve data (`#!python dict`) specific to the connection's `#!python User`. This data is stored in the `#!python REACTPY_DATABASE`.
279279

@@ -316,7 +316,7 @@ Store or retrieve data (`#!python dict`) specific to the connection's `#!python
316316

317317
---
318318

319-
### `#!python use_connection()`
319+
### Use Connection
320320

321321
Returns the active connection, which is either a Django [WebSocket](https://channels.readthedocs.io/en/stable/topics/consumers.html#asyncjsonwebsocketconsumer) or a [HTTP Request](https://docs.djangoproject.com/en/4.2/ref/request-response/#django.http.HttpRequest).
322322

@@ -340,7 +340,7 @@ Returns the active connection, which is either a Django [WebSocket](https://chan
340340

341341
---
342342

343-
### `#!python use_scope()`
343+
### Use Scope
344344

345345
Shortcut that returns the WebSocket or HTTP connection's [scope](https://channels.readthedocs.io/en/stable/topics/consumers.html#scope).
346346

@@ -364,7 +364,7 @@ Shortcut that returns the WebSocket or HTTP connection's [scope](https://channel
364364

365365
---
366366

367-
### `#!python use_location()`
367+
### Use Location
368368

369369
Shortcut that returns the browser's current `#!python Location`.
370370

@@ -386,7 +386,7 @@ Shortcut that returns the browser's current `#!python Location`.
386386
| --- | --- |
387387
| `#!python Location` | An object containing the current URL's `#!python pathname` and `#!python search` query. |
388388

389-
### `#!python use_origin()`
389+
### Use Origin
390390

391391
Shortcut that returns the WebSocket or HTTP connection's `#!python origin`.
392392

@@ -412,7 +412,7 @@ You can expect this hook to provide strings such as `http://example.com`.
412412

413413
---
414414

415-
### `#!python use_user()`
415+
### Use User
416416

417417
Shortcut that returns the WebSocket or HTTP connection's `#!python User`.
418418

Diff for: docs/src/reference/router.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ A variant of [`reactpy-router`](https://github.com/reactive-python/reactpy-route
1414

1515
---
1616

17-
## `#!python django_router(*routes)`
17+
## Django Router
18+
19+
URL router that enables the ability to conditionally render other components based on the client's current URL `#!python path`.
1820

1921
=== "components.py"
2022

Diff for: src/reactpy_django/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
REACTPY_WEBSOCKET_ROUTE,
99
)
1010

11-
__version__ = "3.5.1"
11+
__version__ = "3.6.0"
1212
__all__ = [
1313
"REACTPY_WEBSOCKET_PATH",
1414
"REACTPY_WEBSOCKET_ROUTE",

Diff for: tests/test_app/settings_multi_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@
155155
},
156156
}
157157

158-
# ReactPy Django Settings
158+
# ReactPy-Django Settings
159159
REACTPY_BACKHAUL_THREAD = "test" not in sys.argv and "runserver" not in sys.argv

Diff for: tests/test_app/settings_single_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@
136136
},
137137
}
138138

139-
# ReactPy Django Settings
139+
# ReactPy-Django Settings
140140
REACTPY_BACKHAUL_THREAD = "test" not in sys.argv and "runserver" not in sys.argv

0 commit comments

Comments
 (0)