poetry: bump aws-lambda-powertools from 2.35.1 to 3.13.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 5
(about 1 year ago)
(12 months ago)
dependencies python
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
Redisclass toCachein 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
CachePersistenceLayerclassYou can now use our
CachePersistenceLayerclasses, 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.
If you are using the
RedisPersistenceLayerclass in your codebase, you can use the newCachePersistenceLayeras 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
- chore(deps-dev): bump boto3-stubs from 1.38.18 to 1.38.19 (#6687) by @dependabot[bot]
- chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.24 to 3.0.25 (#6686) by @dependabot[bot]
- refactor(idempotency): replace Redis name with Cache and add valkey-glide support (#6685) by
@leandrodamascena- chore(ci): include allowed licenses file in dependency review workflow (#6618) by
@leandrodamascena- chore(deps-dev): bump aws-cdk from 2.1015.0 to 2.1016.0 (#6680) by @dependabot[bot]
- chore(deps-dev): bump types-python-dateutil from 2.9.0.20241206 to 2.9.0.20250516 (#6678) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.195.0a0 to 2.196.0a0 (#6677) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.38.16 to 1.38.17 (#6674) by @dependabot[bot]
- chore(deps-dev): bump ruff from 0.11.9 to 0.11.10 (#6673) by @dependabot[bot]
- chore(deps): bump codecov/codecov-action from 5.4.2 to 5.4.3 (#6672) by @dependabot[bot]
- chore(deps-dev): bump aws-cdk from 2.1014.0 to 2.1015.0 (#6668) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.38.15 to 1.38.16 (#6669) by @dependabot[bot]
- chore(deps): bump aws-actions/configure-aws-credentials from 4.2.0 to 4.2.1 (#6667) by @dependabot[bot]
- chore(deps-dev): bump mkdocs-material from 9.6.13 to 9.6.14 (#6661) by @dependabot[bot]
- chore(deps): bump redis from 5.2.1 to 6.1.0 (#6662) by @dependabot[bot]
- chore(deps): bump actions/dependency-review-action from 4.7.0 to 4.7.1 (#6663) by @dependabot[bot]
- chore(deps-dev): bump boto3-stubs from 1.38.14 to 1.38.15 (#6660) by @dependabot[bot]
- chore(deps): bump squidfunk/mkdocs-material from
f6c81d5toeb04b60in /docs (#6659) by @dependabot[bot]- chore(deps-dev): bump mkdocs-material from 9.6.12 to 9.6.13 (#6654) by @dependabot[bot]
... (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
f6c81d5toeb04b60in /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
95f2ff4tof6c81d5in /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 AttributeValuewith native Python typesYes 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_valuefunction.Yes Batch Processor @batch_processorand@async_batch_processordecorators are now deprecatedYes 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 configparameter is deprecated in favor ofboto_configYes JMESPath Functions The extract_data_from_envelopefunction is deprecated in favor ofqueryYes Types file We have removed the type imports from the shared/types.pyfileYes First Steps
Before you start, we suggest making a copy of your current working project or create a new branch with git.
- Upgrade Python to at least v3.9.
- Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
- 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
f106e36chore: version bump1d46987chore(deps-dev): bump boto3-stubs from 1.38.18 to 1.38.19 (#6687)7c04560chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0...49d3e96refactor(idempotency): replace Redis name with Cache and add valkey-glide sup...56a70cfchore(ci): include allowed licenses file in dependency review workflow (#6618)5802f4cchore(ci): new pre-release 3.12.1a8 (#6683)46e88b5chore(ci): changelog rebuild (#6682)ff13429chore(deps-dev): bump aws-cdk from 2.1015.0 to 2.1016.0 (#6680)983edafchore(deps-dev): bump types-python-dateutil from 2.9.0.20241206 to 2.9.0.2025...a989966chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.195.0a0 to 2.196...- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 749347 |
| UUID: | 3089762353 |
| Node ID: | PR_kwDOHvKt1c6XkA4X |
| Host: | GitHub |
| Repository: | NHSDigital/NRLF |