Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Releases: Bogdanp/molten

v1.0.2

18 Dec 17:18
b765737
Compare
Choose a tag to compare

Fixed

  • Relaxed version pins on gevent and typing_inspect. The former switched to calendar-versioning back in April.
  • Fixed OpenAPI generation for generic types w/o type parameters under Python 3.9.
  • Fixed a deadlock in WebsocketsTestClient under Python 3.9.

v1.0.1

15 Dec 19:27
584264c
Compare
Choose a tag to compare

Fixed

I just knew I was tempting fate with that 1.0 release. This release
fixes a build issue with the package where a template file was
missing. (#37)

v1.0.0

15 Dec 19:27
d7cb8e0
Compare
Choose a tag to compare

Molten has been extremely stable for the past year and a half so I've
decided to make it official by tagging this release as 1.0.

Changed

  • Updated version pin for typing-inspect to allow 0.5. (#35)

v0.7.2

12 Nov 08:27
1b3018c
Compare
Choose a tag to compare

Added

  • UploadedFile can now be requested via DI inside handlers.
  • The test client now supports file "uploads" via the file keyword
    argument.

Fixed

  • UploadedFile now renders a file upload element in OpenAPI
    documents. #23

v0.7.1

15 Oct 16:04
8b9b570
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where Singletons that were dependencies of other singletons were instantiated multiple times.

v0.7.0

15 Oct 08:24
ef0ef0c
Compare
Choose a tag to compare

Changed

  • CookieStore now accepts string signing keys and automatically encodes them to bytes.
  • Environment variables can now be substituted into TOML settings using the $VARIABLE_NAME syntax. This is a breaking change if your settings files contain $ characters; replace them with $$ to escape them.

v0.6.1

14 Oct 06:38
559367a
Compare
Choose a tag to compare

Fixed

v0.6.0

06 Oct 17:49
ee7c294
Compare
Choose a tag to compare

Added

  • Support for typing.Union in schemas.
  • Support for forward_refs.

Fixed

  • Any can now be used to annotate schema fields that contain values of any type.
  • APIKeySecurityScheme now takes a param_name that correctly identifies the header/query param/cookie name. (#17)

v0.5.1

23 Sep 07:35
145962d
Compare
Choose a tag to compare

Fixed

  • An issue where OpenAPI docs containing typed list fields would blow up at render time. (#12)
  • OpenAPI docs now use {read,write}Only field markers instead of generating one schema per context (request, response). This may be a breaking change if your tests depended on the old way for some reason, but I'm treating it as a bugfix.

v0.5.0

18 Aug 10:05
4bccf49
Compare
Choose a tag to compare

Added

  • Support for websockets.
  • Support for returning (status, data, headers) from handlers.
  • handle_parse_error to App class.

Changed

  • ResponseRendererMiddleware now looks up renderers directly off of
    the app object. This means you no longer have to pass them to the
    middleware upon instantiation. This is a breaking change.

    To upgrade, change code that looks like this:

    app = App(
        middleware=[ResponseRendererMiddleware([JSONRenderer()])],
    )

    to:

    app = App(
        middleware=[ResponseRendererMiddleware()],
        renderers=[JSONRenderer()],
    )