v2.0.0-rc1
What's Changed
Features:
- Both the core (
hx()
andpage()
) decorators and the Jinja integration got support for error rendering. Fixes #28. - Response status code and background job are preserved (if set on the
Response
dependency for example in a route). Fixes #26 #27. - Added a
JinjaPath
utility, see docs for details.
Breaking changes:
- To support error rendering, the
RequestComponentSelector
protocol got a second argument (error: Exception | None
). - The internals of
Jinja
changed slightly.
How to upgrade:
- If you have custom
RequestComponentSelector
implementations, then please add the new argument to theget_component_id()
method. Well-behavedRequestComponentSelector
s that don's support error rendering should reraise the received error if it's notNone
(although not doing so will not break anything as result and errors are clearly separated inJinja
and the core decorators don't rely on this protocol). - If you've overridden any of the protected methods of
Jinja
, please go through this PR so you can upgrade your custom implementation.
Full Changelog: v1.1.1...v2.0.0-rc1