Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2023

Bumps aws-lambda-powertools from 2.23.0 to 2.24.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v2.24.0

Summary

This release brings custom serialization/deserialization to Idempotency, and Middleware support in Event Handler (API Gateway REST/HTTP, ALB, Lambda Function URL, VPC Lattice). Oh didn't I say some bug fixes too? 🙏

🌟 Big welcome to the new contributors: @​adriantomas, @​aradyaron, @​nejcskofic, @​waveFrontSet

Middleware launch

Idempotency custom serialization

Docs 🌟 Huge thanks to @​aradyaron!!

Previously, any function annotated with @idempotent_function will have its return type as a JSON object - this was challenging for customers using Pydantic, Dataclasses, or any custom types.

You can now use output_serializer to automatically serialize the return type for Dataclasses or Pydantic, and bring your own serializer/deserializer too!

from aws_lambda_powertools.utilities.idempotency import (
    DynamoDBPersistenceLayer,
    IdempotencyConfig,
    idempotent_function,
)
from aws_lambda_powertools.utilities.idempotency.serialization.pydantic import PydanticSerializer
from aws_lambda_powertools.utilities.parser import BaseModel
from aws_lambda_powertools.utilities.typing import LambdaContext
dynamodb = DynamoDBPersistenceLayer(table_name="IdempotencyTable")
config = IdempotencyConfig(event_key_jmespath="order_id")  # see Choosing a payload subset section
class OrderItem(BaseModel):
sku: str
description: str
class Order(BaseModel):
item: OrderItem
order_id: int
class OrderOutput(BaseModel):
order_id: int
@​idempotent_function(
data_keyword_argument="order",
config=config,
persistence_store=dynamodb,
</tr></table>

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v2.24.0] - 2023-09-08

Bug Fixes

  • event_handler: expanding safe URI characters to include +$& (#3026)
  • parser: change ApproximateCreationDateTime field to datetime in DynamoDBStreamChangedRecordModel (#3049)

Code Refactoring

  • batch: type response() method (#3023)

Documentation

  • event_handler: demonstrate how to combine logger correlation ID and middleware (#3064)
  • event_handler: use correct correlation_id for logger in middleware example (#3063)
  • idempotency: use tab navigation, improves custom serializer example, and additional explanations (#3067)

Features

  • event_handler: add Middleware support for REST Event Handler (#2917)
  • idempotency: add support to custom serialization/deserialization on idempotency decorator (#2951)

Maintenance

  • version bump
  • deps: bump squidfunk/mkdocs-material from b1f7f94 to f4764d1 in /docs (#3031)
  • deps: bump gitpython from 3.1.32 to 3.1.35 in /docs (#3059)
  • deps: bump squidfunk/mkdocs-material from f4764d1 to dd1770c in /docs (#3044)
  • deps: bump actions/checkout from 3.6.0 to 4.0.0 (#3041)
  • deps: bump squidfunk/mkdocs-material from 97da15b to b1f7f94 in /docs (#3021)
  • deps: bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#3022)
  • deps: bump actions/upload-artifact from 3.1.2 to 3.1.3 (#3053)
  • deps: bump the layer-balancer group in /layer/scripts/layer-balancer with 1 update (#3052)
  • deps-dev: bump mkdocs-material from 9.2.6 to 9.2.7 (#3043)
  • deps-dev: bump cfn-lint from 0.79.7 to 0.79.8 (#3033)
  • deps-dev: bump mkdocs-material from 9.2.5 to 9.2.6 (#3032)
  • deps-dev: bump ruff from 0.0.286 to 0.0.287 (#3035)
  • deps-dev: bump sentry-sdk from 1.29.2 to 1.30.0 (#3028)
  • deps-dev: bump the boto-typing group with 11 updates (#3027)
  • deps-dev: bump pytest from 7.4.1 to 7.4.2 (#3057)
  • deps-dev: bump hvac from 1.1.1 to 1.2.0 (#3054)
  • deps-dev: bump cfn-lint from 0.79.8 to 0.79.9 (#3046)
  • deps-dev: bump the boto-typing group with 1 update (#3013)
  • deps-dev: bump pytest from 7.4.0 to 7.4.1 (#3042)
  • deps-dev: bump ruff from 0.0.285 to 0.0.286 (#3014)
  • deps-dev: bump gitpython from 3.1.32 to 3.1.35 (#3060)
  • deps-dev: bump aws-cdk from 2.93.0 to 2.94.0 (#3036)

[v2.23.1] - 2023-08-25

... (truncated)

Commits
  • 2f2bda7 chore: version bump
  • 22a6925 docs(idempotency): use tab navigation, improves custom serializer example, an...
  • 41b4529 chore(deps-dev): bump gitpython from 3.1.32 to 3.1.35 (#3060)
  • 480740c chore(deps): bump gitpython from 3.1.32 to 3.1.35 in /docs (#3059)
  • b523583 docs(event_handler): demonstrate how to combine logger correlation ID and mid...
  • da61b63 docs(event_handler): use correct correlation_id for logger in middleware exam...
  • 3b6c531 chore(deps-dev): bump pytest from 7.4.1 to 7.4.2 (#3057)
  • 9625d37 feat(event_handler): add Middleware support for REST Event Handler (#2917)
  • 21fa25d chore(ci): changelog rebuild (#3055)
  • 19fa45d chore(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 (#3053)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [aws-lambda-powertools](https://github.com/aws-powertools/powertools-lambda-python) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-python/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.23.0...v2.24.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Sep 11, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 18, 2023

Superseded by #113.

@dependabot dependabot bot closed this Sep 18, 2023
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-2.24.0 branch September 18, 2023 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants