chore: bump v0.118 (#843)

This commit is contained in:
Juro Oravec 2024-12-10 13:44:14 +01:00 committed by GitHub
parent dfd4187192
commit a5659691d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View file

@ -1,5 +1,25 @@
# Release notes # Release notes
## v0.118
#### Feat
- Add support for `context_processors` and `RenderContext` inside component templates
`Component.render()` and `Component.render_to_response()` now accept an extra kwarg `request`.
```py
def my_view(request)
return MyTable.render_to_response(
request=request
)
```
- When you pass in `request`, the component will use `RenderContext` instead of `Context`.
Thus the context processors will be applied to the context.
- NOTE: When you pass in both `request` and `context` to `Component.render()`, and `context` is already an instance of `Context`, the `request` kwarg will be ignored.
## v0.117 ## v0.117
#### Fix #### Fix

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "django_components" name = "django_components"
version = "0.117" version = "0.118"
requires-python = ">=3.8, <4.0" requires-python = ">=3.8, <4.0"
description = "A way to create simple reusable template components in Django." description = "A way to create simple reusable template components in Django."
keywords = ["django", "components", "css", "js", "html"] keywords = ["django", "components", "css", "js", "html"]