Skip to content

Releases: Neoteroi/BlackSheep

v2.0a12

17 Nov 21:12
84ede8d
Compare
Choose a tag to compare
v2.0a12 Pre-release
Pre-release
  • Adds support for Python 3.12, by @bymoye
  • Replaces pkg_resources with importlib.resources for all supported Python
    versions except for 3.8.
  • Runs tests against Pydantic 2.4.2 instead of Pydantic 2.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

19 Sep 22:34
d0a9f17
Compare
Choose a tag to compare
v2.0a11 Pre-release
Pre-release
  • Resolves bug in 2.0a10 caused by incompatibility issue with Cython 3.
  • Pins Cython to 3.0.2 in the build job.

v2.0a10

21 Aug 21:03
bed3a99
Compare
Choose a tag to compare
v2.0a10 Pre-release
Pre-release
  • 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

14 Jul 18:53
011d1ac
Compare
Choose a tag to compare
v2.0a9 Pre-release
Pre-release
  • Fixes bug #394, causing the Content max body size to be 2147483647
    (C int max value). Reported and fixed by @thomafred

v1.2.18

14 Jul 19:40
041ff8b
Compare
Choose a tag to compare
  • Fixes bug #394, causing the Content max body size to be 2147483647
    (C int max value). Reported and fixed by @thomafred

v2.0a8

02 Jul 11:21
66d6b8e
Compare
Choose a tag to compare
v2.0a8 Pre-release
Pre-release
  • 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, as base_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

18 Jun 10:30
18ff88d
Compare
Choose a tag to compare
  • 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, as base_path.
  • Fixes #371. Returns status 403 Forbidden when the user is authenticated but not authorized to perform an action.

1.2.16

14 Jun 20:11
779fcb5
Compare
Choose a tag to compare
  • 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

31 May 06:06
d9161e1
Compare
Choose a tag to compare
v2.0a7 Pre-release
Pre-release
  • 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

31 May 06:18
Compare
Choose a tag to compare
  • 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.