Skip to content

Commit 8f13a64

Browse files
authored
chore: bump v0.96 + release notes (django-components#645)
1 parent e712800 commit 8f13a64

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ And this is what gets rendered (plus the CSS and Javascript you've specified):
7171

7272
## Release notes
7373

74+
**Version 0.96**
75+
- Run-time type validation for Python 3.11+ - If the `Component` class is typed, e.g. `Component[Args, Kwargs, ...]`, the args, kwargs, slots, and data are validated against the given types. (See [Runtime input validation with types](#runtime-input-validation-with-types))
76+
- Render hooks - Set `on_render_before` and `on_render_after` methods on `Component` to intercept or modify the template or context before rendering, or the rendered result afterwards. (See [Component hooks](#component-hooks))
77+
- `component_vars.is_filled` context variable can be accessed from within `on_render_before` and `on_render_after` hooks as `self.is_filled.my_slot`
78+
7479
**Version 0.95**
7580
- Added support for dynamic components, where the component name is passed as a variable. (See [Dynamic components](#dynamic-components))
7681
- Changed `Component.input` to raise `RuntimeError` if accessed outside of render context. Previously it returned `None` if unset.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "django_components"
7-
version = "0.95"
7+
version = "0.96"
88
requires-python = ">=3.8, <4.0"
99
description = "A way to create simple reusable template components in Django."
1010
keywords = ["django", "components", "css", "js", "html"]

0 commit comments

Comments
 (0)