Skip to content

Releases: oslokommune/okdata-aws

v4.1.0

17 Apr 10:25
Compare
Choose a tag to compare
  • Deprecated FastAPI on_event hooks have been replaced with a "lifespan"
    context manager for logging configuration. This requires fastapi>=0.93.
  • Updated okdata-sdk version requirement to remove the vulnerable ecdsa
    dependency.

v4.0.0

21 Mar 12:46
Compare
Choose a tag to compare
  • okdata.aws.status.status_wrapper now supports an optional argument for configuring the SDK instance used to call the status API.

    Current users must update their usage from:

    @status_wrapper
    def foo():
        ...

    To:

    @status_wrapper()
    def foo():
        ...

v3.0.1

21 Mar 09:34
Compare
Choose a tag to compare
  • Status data exceptions are now accurately converted to strings when exported as JSON.

v3.0.0

18 Mar 13:06
1718621
Compare
Choose a tag to compare
  • Refactored status data helpers to adopt standard dataclasses in place of Pydantic, preventing Pydantic from being included as a transitive dependency for projects utilizing these helpers.

v2.2.0

18 Mar 12:38
Compare
Choose a tag to compare
  • okdata.aws.status.sdk.Status now accepts an additional optional parameter, sdk_config, which allows the underlying Status SDK to be configured.

v2.1.0

15 Feb 13:02
Compare
Choose a tag to compare
  • New utility function okdata.aws.ssm.get_secret for retrieving secure strings from AWS SSM.
  • Updated dependencies.

v2.0.0

17 Nov 09:16
Compare
Choose a tag to compare
  • Added support for Python 3.10, 3.11, and 3.12.
  • Dropped support for Python 3.7 which is being phased out by AWS. Python 3.8+ is now required.
  • Fixed a bug in the logging module when the event from AWS contains {"headers": null}.

v1.0.1

16 Feb 13:37
Compare
Choose a tag to compare
  • Updated dependencies.

v1.0.0

01 Nov 13:45
Compare
Choose a tag to compare
  • Replaced the asynchronous logging wrapper with a method to register FastAPI logging middleware.

    from okdata.aws.logging import add_fastapi_logging
    
    app = FastAPI()
    add_fastapi_logging(app)

v0.4.1

27 Sep 10:02
Compare
Choose a tag to compare
  • HTTP errors from the status API are no longer propagated to users of @status_wrapper; the errors are logged instead.