Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump aws-lambda-powertools from 2.28.1 to 2.29.0 in /lambda/src #638

Merged

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps aws-lambda-powertools from 2.28.1 to 2.29.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v2.29.0

Summary

Standardized Retrieval of API Gateway Authorizer Context

This release standardizes how to retrieve the API Gateway authorizer context in both v1 and v2 of the Lambda handler. Previously, there were inconsistencies in how customers retrieved authorization context between V1 and V2 payloads.

from aws_lambda_powertools.event_handler import APIGatewayRestResolver
from aws_lambda_powertools import Logger
app = APIGatewayRestResolver()
logger = Logger(level="INFO")
@​app.get("/")
def initialize():
context: dict = app.current_event.request_context.authorizer.get_context()
logger.info(context.get("tenantId"))
def lambda_handler(event, context):
return app.resolve(event, context)

We also fixed an issue with dependency injection when using decorators in the Lambda handler function. Previously, dependencies were not properly injected when decorators were present, leading to runtime errors.

Changes

  • fix(metrics): lambda_handler typing, and **kwargs preservation all middlewares (#3460) by @​heitorlessa
  • feat(event_sources): add get_context() to standardize API Gateway Lambda Authorizer context in v1 and v2 (#3454) by @​leandrodamascena
  • chore(layers): Update log retention to 10 years (#3424) by @​sthulb

📜 Documentation updates

  • chore(deps): bump squidfunk/mkdocs-material from fc42bac to 8c72011 in /docs (#3416) by @​dependabot

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v2.29.0] - 2023-12-06

Bug Fixes

  • event_handler: serialize pydantic/dataclasses in exception handler (#3455)
  • metrics: lambda_handler typing, and **kwargs preservation all middlewares (#3460)

Features

  • event_sources: add get_context() to standardize API Gateway Lambda Authorizer context in v1 and v2 (#3454)

Maintenance

  • version bump
  • deps: bump the layer-balancer group in /layer/scripts/layer-balancer with 3 updates (#3441)
  • deps: bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.1 to 3.0.2 (#3449)
  • deps: bump datadog-lambda from 5.83.0 to 5.84.0 (#3438)
  • deps: bump cryptography from 41.0.4 to 41.0.6 (#3431)
  • deps: bump squidfunk/mkdocs-material from fc42bac to 8c72011 in /docs (#3416)
  • deps: bump actions/dependency-review-action from 3.1.3 to 3.1.4 (#3426)
  • deps: bump actions/setup-python from 4.7.1 to 4.8.0 (#3456)
  • deps: bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 (#3433)
  • deps-dev: bump cfn-lint from 0.83.3 to 0.83.4 (#3450)
  • deps-dev: bump ruff from 0.1.6 to 0.1.7 (#3458)
  • deps-dev: bump sentry-sdk from 1.36.0 to 1.38.0 (#3435)
  • deps-dev: bump aws-cdk-lib from 2.110.1 to 2.111.0 (#3428)
  • deps-dev: bump aws-cdk from 2.112.0 to 2.113.0 (#3448)
  • deps-dev: bump aws-cdk from 2.110.1 to 2.111.0 (#3418)
  • deps-dev: bump the boto-typing group with 11 updates (#3427)
  • deps-dev: bump the boto-typing group with 1 update (#3457)
  • deps-dev: bump aws-cdk from 2.111.0 to 2.112.0 (#3440)
  • layers: Update log retention to 10 years (#3424)

Commits
  • 139c0fd chore: version bump
  • 5fda86d fix(metrics): lambda_handler typing, and **kwargs preservation all middleware...
  • d76607c feat(event_sources): add get_context() to standardize API Gateway Lambda Auth...
  • 05dd82b fix(event_handler): serialize pydantic/dataclasses in exception handler (#3455)
  • 4a49071 chore(ci): changelog rebuild (#3459)
  • 99aef19 chore(deps-dev): bump the boto-typing group with 1 update (#3457)
  • 475342e chore(deps-dev): bump ruff from 0.1.6 to 0.1.7 (#3458)
  • 246fe59 chore(deps): bump actions/setup-python from 4.7.1 to 4.8.0 (#3456)
  • ddd9bd8 chore(deps-dev): bump cfn-lint from 0.83.3 to 0.83.4 (#3450)
  • ca117dd chore(ci): changelog rebuild (#3452)
  • 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.28.1 to 2.29.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.28.1...v2.29.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 dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 11, 2023
@mergify mergify bot merged commit d342fc2 into master Dec 11, 2023
6 checks passed
@mergify mergify bot deleted the dependabot/pip/lambda/src/aws-lambda-powertools-2.29.0 branch December 11, 2023 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants