Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 26, 2025

Bumps aws-lambda-powertools from 2.35.1 to 3.13.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v3.13.0

Summary

In this release, we renamed the Redis class to Cache in our Idempotency utility and added support for the valkey-glide library.

Thanks to our new contributors @​AlisonVilela, @​Artur-T-Malas, and @​kiitosu, we also fixed bugs in our Event Source Data Class utility. ⭐🏅

Working with the new CachePersistenceLayer class

Docs

You can now use our CachePersistenceLayer classes, which are more generically named, in place of the previous Redis-specific classes when using the Idempotency feature.

For backward compatibility, we've maintained the old Redis class names. However, these are now marked as deprecated and will be removed in the next major version.

We've also added support for valkey-glide, providing more flexibility for your caching implementation needs.

glide

If you are using the RedisPersistenceLayer class in your codebase, you can use the new CachePersistenceLayer as a drop-in replacement.

Changes

🌟New features and non-breaking changes

  • feat(parser): add support to decompress Kinesis CloudWatch logs in Kinesis envelope (#6656) by @​Artur-T-Malas
  • feat(event_source): add support for tumbling windows in Kinesis and DynamoDB events (#6658) by @​kiitosu
  • feat(event_source): export SQSRecord in data_classes module (#6639) by @​AlisonVilela

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.13.0] - 2025-05-20

Code Refactoring

  • idempotency: replace Redis name with Cache and add valkey-glide support (#6685)

Features

  • event_source: add support for tumbling windows in Kinesis and DynamoDB events (#6658)
  • event_source: export SQSRecord in data_classes module (#6639)
  • parser: add support to decompress Kinesis CloudWatch logs in Kinesis envelope (#6656)

Maintenance

  • version bump
  • ci: new pre-release 3.12.1a2 (#6638)
  • ci: include allowed licenses file in dependency review workflow (#6618)
  • ci: new pre-release 3.12.1a8 (#6683)
  • ci: new pre-release 3.12.1a3 (#6647)
  • ci: new pre-release 3.12.1a7 (#6675)
  • ci: new pre-release 3.12.1a0 (#6621)
  • ci: new pre-release 3.12.1a6 (#6670)
  • ci: new pre-release 3.12.1a1 (#6626)
  • ci: new pre-release 3.12.1a4 (#6655)
  • ci: new pre-release 3.12.1a5 (#6664)
  • deps: bump aws-actions/configure-aws-credentials from 4.2.0 to 4.2.1 (#6667)
  • deps: bump squidfunk/mkdocs-material from f6c81d5 to eb04b60 in /docs (#6659)
  • deps: bump datadog-lambda from 6.107.0 to 6.108.0 (#6634)
  • deps: bump actions/setup-go from 5.4.0 to 5.5.0 (#6630)
  • deps: bump actions/dependency-review-action from 4.7.0 to 4.7.1 (#6663)
  • deps: bump redis from 5.2.1 to 6.1.0 (#6662)
  • deps: bump actions/dependency-review-action from 4.6.0 to 4.7.0 (#6629)
  • deps: bump codecov/codecov-action from 5.4.2 to 5.4.3 (#6672)
  • deps: bump squidfunk/mkdocs-material from 95f2ff4 to f6c81d5 in /docs (#6650)
  • deps: bump aws-actions/configure-aws-credentials from 4.1.0 to 4.2.0 (#6619)
  • deps: bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.24 to 3.0.25 (#6686)
  • deps: bump datadog-lambda from 6.108.0 to 6.109.0 (#6641)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.308 to 0.1.309 (#6651)
  • deps-dev: bump boto3-stubs from 1.38.12 to 1.38.13 (#6644)
  • deps-dev: bump cfn-lint from 1.35.0 to 1.35.1 (#6642)
  • deps-dev: bump ruff from 0.11.8 to 0.11.9 (#6643)
  • deps-dev: bump boto3-stubs from 1.38.13 to 1.38.14 (#6653)
  • deps-dev: bump sentry-sdk from 2.27.0 to 2.28.0 (#6652)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.194.0a0 to 2.195.0a0 (#6635)
  • deps-dev: bump aws-cdk from 2.1013.0 to 2.1014.0 (#6636)
  • deps-dev: bump mkdocs-material from 9.6.12 to 9.6.13 (#6654)
  • deps-dev: bump boto3-stubs from 1.38.11 to 1.38.12 (#6633)
  • deps-dev: bump aws-cdk-lib from 2.194.0 to 2.195.0 (#6632)
  • deps-dev: bump boto3-stubs from 1.38.14 to 1.38.15 (#6660)
  • deps-dev: bump ijson from 3.3.0 to 3.4.0 (#6631)
  • deps-dev: bump mkdocs-material from 9.6.13 to 9.6.14 (#6661)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools's upgrade guide.


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

End of support v2

!!! warning "On March 25st, 2025, Powertools for AWS Lambda (Python) v2 reached end of support and will no longer receive updates or releases. If you are still using v2, we strongly recommend you to read our upgrade guide and update to the latest version."

Given our commitment to all of our customers using Powertools for AWS Lambda (Python), we will keep Pypi{target="_blank"} v2 releases and documentation 2.x versions to prevent any disruption.

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.9.
  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.

... (truncated)

Commits
  • f106e36 chore: version bump
  • 1d46987 chore(deps-dev): bump boto3-stubs from 1.38.18 to 1.38.19 (#6687)
  • 7c04560 chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0...
  • 49d3e96 refactor(idempotency): replace Redis name with Cache and add valkey-glide sup...
  • 56a70cf chore(ci): include allowed licenses file in dependency review workflow (#6618)
  • 5802f4c chore(ci): new pre-release 3.12.1a8 (#6683)
  • 46e88b5 chore(ci): changelog rebuild (#6682)
  • ff13429 chore(deps-dev): bump aws-cdk from 2.1015.0 to 2.1016.0 (#6680)
  • 983edaf chore(deps-dev): bump types-python-dateutil from 2.9.0.20241206 to 2.9.0.2025...
  • a989966 chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.195.0a0 to 2.196...
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 26, 2025
@dependabot dependabot bot temporarily deployed to pull-request May 26, 2025 01:39 Inactive
@github-actions
Copy link

💥 Something went wrong while building the pull request environment.
Check Output Logs

@dependabot dependabot bot force-pushed the dependabot/pip/aws-lambda-powertools-3.13.0 branch from bc9bd60 to 4b93f99 Compare May 30, 2025 13:42
@dependabot dependabot bot temporarily deployed to pull-request May 30, 2025 13:42 Inactive
@github-actions
Copy link

💥 Something went wrong while building the pull request environment.
Check Output Logs

Bumps [aws-lambda-powertools](https://github.com/aws-powertools/powertools-lambda-python) from 2.35.1 to 3.13.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)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.35.1...v3.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/aws-lambda-powertools-3.13.0 branch from 4b93f99 to 5cf1439 Compare June 3, 2025 08:15
@dependabot dependabot bot temporarily deployed to pull-request June 3, 2025 08:15 Inactive
@dependabot dependabot bot temporarily deployed to pull-request June 3, 2025 08:15 Inactive
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 3, 2025

@github-actions
Copy link

github-actions bot commented Jun 3, 2025

💥 Something went wrong while deploying the pull request environment.
Check Output Logs

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 9, 2025

Superseded by #926.

@dependabot dependabot bot closed this Jun 9, 2025
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-3.13.0 branch June 9, 2025 01:07
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