Releases: Neoteroi/BlackSheep
Releases · Neoteroi/BlackSheep
v2.0a12
- Adds support for Python 3.12, by @bymoye
- Replaces
pkg_resources
withimportlib.resources
for all supported Python
versions except for3.8
. - Runs tests against Pydantic
2.4.2
instead of Pydantic2.0
to check
support for Pydantic v2. - Upgrades dependencies.
- Adds
.webp
and.webm
to the list of extensions of files that are served
by default.
v2.0a11
- Resolves bug in
2.0a10
caused by incompatibility issue withCython 3
. - Pins
Cython
to3.0.2
in the build job.
v2.0a10
- Add support for
.jinja
extension by @thearchitector. - Makes the
.jinja
extension default for Jinja templates.⚠️ breaking change*
*it requires changing the extension of the template files from .html
to .jinja
, or setting an environment variable: APP_JINJA_EXTENSION=".html"
v2.0a9
- Fixes bug #394, causing the
Content
max body size to be 2147483647
(C int max value). Reported and fixed by @thomafred
v1.2.18
- Fixes bug #394, causing the
Content
max body size to be 2147483647
(C int max value). Reported and fixed by @thomafred
v2.0a8
- Adds support for
StreamedContent
with specific content length; fixing #374 both on the client and the server side. - Fixes #373, about missing closing ASGI message when an async generator does not yield a closing empty bytes sequence (
b""
). - Makes version dynamic in
pyproject.toml
, simplifying how the version can be queried at runtime (see #362). - Fixes #372. Use the ASGI scope
root_path
when possible, asbase_path
. - Fixes #371. Returns status 403 Forbidden when the user is authenticated but not authorized to perform an action.
- Fixes
TypeError
when writing a request without host header. - Adds support for
Pydantic
v2
: meaning feature parity with support for Pydantic v1 (generating OpenAPI Documentation). - Adds support for
Union
types in sub-properties of request handlers input and output types, for generating OpenAPI Documentation, both using simple classes and Pydantic #389
v1.2.17
- Fixes
TypeError
when writing a request without host header. - Fixes
TypeError
when writing a small request with streamed content of known length. - Fixes #372. Use the ASGI scope
root_path
when possible, asbase_path
. - Fixes #371. Returns status 403 Forbidden when the user is authenticated but not authorized to perform an action.
1.2.16
- Add support for
StreamedContent
with specific content length; fixing #374 both on the client and the server side. - Fix #373, about missing closing ASGI message when an async generator does not yield a closing empty bytes sequence (
b""
).
Thanks to @thomafred for reporting issues with HTTP proxy implementations, that lead to these fixes.
v2.0a7
- Fixes bug in CORS handling when multiple origins are
allowed. - Adds a
Vary: Origin
response header for CORS requests when the value of
Access-Control-Allow-Origin
header is a specific URL. - Adds algorithms parameter to JWTBearerAuthentication constructor, by @tyzhnenko.
- Improves the code API to define security definitions in OpenAPI docs, by @tyzhnenko.
- Applies a correction to the auto-import function for routes and controllers.
v1.2.15
- Fixes bug in CORS handling when multiple origins are allowed.
- Adds a
Vary: Origin
response header for CORS requests when the value ofAccess-Control-Allow-Origin
header is a specific URL.