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

Bump aws-lambda-powertools[aws-sdk] from 2.26.0 to 3.4.1 #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 14, 2025

Bumps aws-lambda-powertools[aws-sdk] from 2.26.0 to 3.4.1.

Release notes

Sourced from aws-lambda-powertools[aws-sdk]'s releases.

v3.4.1

Summary

In this release we fixed a bug in the Idempotency utility when using Optional types in output serialization.

🌟 ⭐ Thanks for @​TonySherman for reporting this issue.

Using Optinal types in Idempotency serialization

Docs

Customers can now use Optional type when serializing Idempotency response. Previously, using Optional types in Idempotency serialization with Pydantic or Dataclasses caused serialization exception.

image

And last but not least, thanks to @​aminalaee for reporting a bug in the resolver field naming in AppSync!

Changes

📜 Documentation updates

🐛 Bug and hot fixes

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools[aws-sdk]'s changelog.

Unreleased

Bug Fixes

  • appsync: enhance consistency for custom resolver field naming in AppSync (#5801)
  • idempotency: add support for Optional type when serializing output (#5590)

Documentation

  • home: fix date typo and shorten message. (#5798)
  • layer: update layer version number - v3.4.0 (#5785)

Maintenance

  • ci: new pre-release 3.4.1a0 (#5783)
  • ci: new pre-release 3.4.1a1 (#5789)
  • ci: new pre-release 3.4.1a9 (#5822)
  • ci: new pre-release 3.4.1a2 (#5791)
  • ci: new pre-release 3.4.1a8 (#5818)
  • ci: new pre-release 3.4.1a7 (#5816)
  • ci: new pre-release 3.4.1a6 (#5813)
  • ci: new pre-release 3.4.1a5 (#5807)
  • ci: new pre-release 3.4.1a3 (#5794)
  • ci: new pre-release 3.4.1a4 (#5796)
  • deps: bump pydantic-settings from 2.7.0 to 2.7.1 (#5815)
  • deps: bump jinja2 from 3.1.4 to 3.1.5 in /docs (#5787)
  • deps-dev: bump boto3-stubs from 1.35.90 to 1.35.92 (#5827)
  • deps-dev: bump mypy from 1.14.0 to 1.14.1 (#5812)
  • deps-dev: bump boto3-stubs from 1.35.89 to 1.35.90 (#5809)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.287 to 0.1.288 (#5793)
  • deps-dev: bump cfn-lint from 1.22.2 to 1.22.3 (#5810)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.173.2a0 to 2.173.4a0 (#5811)
  • deps-dev: bump aws-cdk-lib from 2.173.4 to 2.174.1 (#5838)
  • deps-dev: bump boto3-stubs from 1.35.87 to 1.35.89 (#5804)
  • deps-dev: bump jinja2 from 3.1.4 to 3.1.5 (#5788)
  • deps-dev: bump aws-cdk from 2.173.2 to 2.173.4 (#5802)
  • deps-dev: bump boto3-stubs from 1.35.86 to 1.35.87 (#5786)
  • deps-dev: bump aws-cdk from 2.173.4 to 2.174.0 (#5832)
  • deps-dev: bump ruff from 0.8.4 to 0.8.6 (#5833)
  • deps-dev: bump boto3-stubs from 1.35.85 to 1.35.86 (#5780)
  • deps-dev: bump mypy from 1.13.0 to 1.14.0 (#5779)
  • deps-dev: bump boto3-stubs from 1.35.92 to 1.35.93 (#5835)
  • deps-dev: bump aws-cdk-lib from 2.173.2 to 2.173.4 (#5803)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools[aws-sdk]'s upgrade guide.


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (Python) versions

Migrate to v3 from v2

!!! info "We strongly encourage you to migrate to v3. However, if you still need to upgrade from v1 to v2, you can find the upgrade guide."

We've made minimal breaking changes to make your transition to v3 as smooth as possible.

Quick summary

Area Change Code change required
Pydantic We have removed support for Pydantic v1 No
Parser We have replaced DynamoDBStreamModel AttributeValue with native Python types Yes
Parser We no longer export Pydantic objects from parser.pydantic. Yes
Lambda layer Lambda layers are now compiled according to the specific Python version and architecture No
Event Handler We have deprecated the get_header_value function. Yes
Batch Processor @batch_processor and @async_batch_processor decorators are now deprecated Yes
Event Source Data Classes We have updated default values for optional fields. Yes
Parameters The default cache TTL is now set to 5 minutes No
Parameters The config parameter is deprecated in favor of boto_config Yes
JMESPath Functions The extract_data_from_envelope function is deprecated in favor of query Yes
Types file We have removed the type imports from the shared/types.py file Yes

First Steps

Before you start, we suggest making a copy of your current working project or create a new branch with git.

  1. Upgrade Python to at least v3.8.
  2. Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
  3. Review the following sections to confirm if you need to make changes to your code.

Drop support for Pydantic v1

!!! note "No code changes required"

As of June 30, 2024, Pydantic v1 has reached its end-of-life, and we have discontinued support for this version. We now exclusively support Pydantic v2.

Use Pydantic v2 Migration Guide{target="_blank"} to migrate your custom Pydantic models to v2.

DynamoDBStreamModel in parser

!!! info "This also applies if you're using DynamoDB BatchProcessor{target="_blank"}."

DynamoDBStreamModel now returns native Python types when you access DynamoDB records through Keys, NewImage, and OldImage attributes.

... (truncated)

Commits
  • 79eba7e chore: version bump
  • c1094d4 chore(ci): change token permissions (#5865)
  • 2bbf4be chore(deps-dev): bump ruff from 0.8.6 to 0.9.1 (#5853)
  • 7d85168 chore(deps-dev): bump aws-cdk from 2.175.0 to 2.175.1 (#5863)
  • 27737cf chore(ci): change token permissions (#5862)
  • 09001b2 chore(ci): change token permissions / update aws-credentials action (#5861)
  • 1b81fbf chore(ci): fix dependency resolution (#5859)
  • 2364fb1 chore(ci): fix dependency resolution (#5858)
  • 0fe4ab7 chore(deps-dev): bump aws-cdk-lib from 2.174.1 to 2.175.1 (#5856)
  • a0d0425 chore(deps-dev): bump aws-cdk from 2.174.1 to 2.175.0 (#5854)
  • 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[aws-sdk]](https://github.com/aws-powertools/powertools-lambda-python) from 2.26.0 to 3.4.1.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-python/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CHANGELOG.md)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.26.0...v3.4.1)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools[aws-sdk]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jan 14, 2025
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