Skip to content

Releases: Neoteroi/BlackSheep

v1.2.1

15 Nov 21:28
Compare
Choose a tag to compare
  • Adds built-in support for JWT bearer authentication, and validation
    of JWTs issued by identity providers implementing OpenID Connect (OIDC)
    discovery /.well-known/openid-configuration (more in general, for JWTs
    signed using asymmetric encryption and verified using public RSA keys)
  • Adds built-in support for OpenID Connect (OIDC), Authorization Code Grant
    and Hybrid flows, which can be used to integrate with OAuth applications
  • Adds built-in handling of X-Forwarded and Forwarded headers with
    validation, including handling of trusted hosts
  • Adds a TrustedHostsMiddleware that can be used to validate hosts
  • Adds methods to obtain the request full URL, handling forward headers
  • Adds an extensibility point that enables sorting of middlewares before they
    are applied on the application
  • Fixes #199
  • Downgrades httptools dependency to version >=0.2,<0.4
  • Adds some improvements to the testing module
  • Upgrades itsdangerous to version ~=2.0.1
  • Deprecates the encryptor option for sessions, applies itsdangerous
    Serializer by default

v1.2.0

24 Oct 18:04
032e256
Compare
Choose a tag to compare
  • Includes Python 3.10 in the CI/CD matrix
  • Includes Python 3.10 wheel in the distribution package
  • Removes orjson development dependency when running tests
  • Fixes a bug happening in the code generating OpenAPI Documentation when
    running Python 3.10

v1.1.0

23 Oct 15:27
d20e116
Compare
Choose a tag to compare
  • Upgrades httptools dependency to version 0.3.0
  • Upgrades python-dateutil dependency to version 2.8.2
  • Upgrades Jinja2 dependency to version 3.0.2
  • Modifies setup.py dependencies to be less strict (~= instead of ==)

v1.0.9

14 Jul 11:00
f7264e5
Compare
Choose a tag to compare
  • Adds support for application mounts (see discussion #160)
  • Applies sorting of imports using isort, enforces linters in the CI pipeline
    with both black and isort
  • Adds support for application events defined using decorators: @app.on_start,
    @app.on_stop
  • Updates Jinja2 dependency to version 3.0.1
  • Adds support to configure JSON serializer and deserializer globally
    for the web framework (#138), thus adding support for custom logic happening
    upong JSON serialization and deserialization, and also for different
    libraries like orjson, to handle JSON serialization and deserialization

Thanks to @myusko for his great contribution to add support for Mounts, and recommending to use isort and to enforce isort and black in the CI pipelines. 🎉

v1.0.8

19 Jun 10:50
6fea860
Compare
Choose a tag to compare
  • Corrects a bug forcing camelCase on examples objects handled as dataclasses
    (issue #173), updating the dependency on essentials-openapi to v1.0.4
  • Corrects a bug causing duplicate components definitions in generated OpenAPI
    documentation, when handling Optional[T]
  • Minor corrections to the TestClient class: HTTP HEAD, OPTIONS, and TRACE
    should not allow request content body, therefore the corresponding methods
    are updated to not support a content parameter
  • Automatically generates 404 response documentation when a request handler
    defines an Optional[T] return type (this happens only when the user doesn't
    specify the documentation for an endpoint)

v1.0.7

11 Jun 21:19
379b95c
Compare
Choose a tag to compare
  • Adds a TestClient class that simplifies testing of applications - thanks to @myusko for this great contribution!
  • Fixes bug #156,
    preventing route parameters to work when the user doesn't follow Python
    naming conventions
  • Adds support for automatic generation of OpenAPI Documentation for Generic
    types
  • Improves the generation of OpenAPI Documentation for pydantic types and to
    support more object types (fixes #167)
  • Ensures that request body is parsed as JSON only if the content type contains
    the "json" substring

v1.0.6

30 May 13:09
019e76e
Compare
Choose a tag to compare
  • Fixes bug #153, reintroducing compatibility with Hypercorn
  • Fixes a bug that made links generated for the discovery of static files not
    working (double leading "/" in href)
  • Provides a way to normalize request handlers' response type when using custom
    decorators (issue #135)
  • Adds support for testing Hypercorn and tests Hypercorn in GitHub Actions

v1.0.5

11 May 05:59
fac6391
Compare
Choose a tag to compare
v1.0.5 :crown:

v1.0.4

09 May 14:07
97f309a
Compare
Choose a tag to compare
v1.0.4 :crown:

v1.0.3

24 Apr 07:28
0230349
Compare
Choose a tag to compare
v1.0.3 :cookie: