Releases: tomwojcik/starlette-context
Releases · tomwojcik/starlette-context
v0.4.0
- Drop support for Python 3.8. Now only 3.9+ is supported ( https://github.com/tomwojcik/starlette-context/pull/152/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R29 )
- Drop support for Starlette versions below 0.27.0 ( released May 16, 2023) ( https://github.com/tomwojcik/starlette-context/pull/152/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R30 )
- Drop
ContextMiddlewaredeprecation warning as Starlette no longer plans to deprecate it ( Kludex/starlette#2160 (comment) ) - Fix
starlette-contextpotentially breaking ifContextMiddlewareis used along withstarlette>=0.41.3( #151 )
v0.3.6
v0.3.5
v0.3.4
- add
request_cycle_context. It’s a context manager that allows for easier testing and cleaner code (Thanks @hhamana) #46 - fix for accessing context during logging, outside of the request-response cycle. Technically it should raise an exception, but it makes sense to include the context by default (in logs) and if it’s not available, some logs are better than no logs. Now it will show context data if context is available, with a fallback to an empty dict (instead of raising an exc) #65
- add
ContextMiddlewaredeprecation warning **contextcontext unpacking seems to be working now
v0.3.3
v0.3.2
ContextDoesNotExistErroris raised when context object can't be accessed. Previously it wasRuntimeError.
For backwards compatibility, it inherits fromRuntimeErrorso it shouldn't result in any regressions.- Added
py.typedfile so your mypy should never complain
v0.3.1
v0.3.0
v0.2.3
0.2.2
- for correlation id and request id plugins, add support for enforcing the generation of a new value
- for ^ plugins add support for validating uuid. It's a default behavior so will break things for people who don't use uuid4 there. If you don't want this validation, you need to pass
validate=Falseto the plugin - thanks to @VukW you can now check if context is available