Skip to content

Bump aws-lambda-powertools[parser] from 2.41.0 to 3.9.0 #369

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

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 25, 2025

Bumps aws-lambda-powertools[parser] from 2.41.0 to 3.9.0.

Release notes

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

v3.9.0

This release improves the OpenAPI utility, letting customers distinguish between request and response validation errors. It also adds support for API Gateway WebSocket in the Event Source Data Class utility.

Thanks to @​ericbn, we simplified the Event Source Data Class utility code, making it more readable and easier to maintain.

⭐ A huge thanks to our new contributor: @​amin-farjadi.

Working with OpenAPI response validation

Docs

Customers can now customize response validation errors to be clearly identified.

Previously, both request and response validation failures triggered the same RequestValidationError, making debugging difficult. Response validation now raises a specific ResponseValidationError, helping you quickly identify validation issues. This is useful to both detect and handle these types of errors more easily.

validation

Working with API Gateway WebSocket events

Docs

You can now use the APIGatewayWebSocketEvent data class when working with WebSocket API events. This simplifies handling of API Gateway WebSocket events by providing better type completion in IDEs and easy access to event properties.

data_apigw

Changes

🌟New features and non-breaking changes

📜 Documentation updates

🐛 Bug and hot fixes

... (truncated)

Changelog

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

[v3.9.0] - 2025-03-25

Maintenance

  • version bump
  • documentation: v2 end of support (#6343)

Documentation

  • homepage: update layer instructions link (#6242)
  • public_reference: add Guild as a public reference (#6342)

Features

  • data_classes: add API Gateway Websocket event (#6287)
  • event_handler: add custom method for OpenAPI configuration (#6204)
  • event_handler: add custom response validation in OpenAPI utility (#6189)
  • general: make logger, tracer and metrics utilities aware of provisioned concurrency (#6324)
  • metrics: allow change ColdStart function_name dimension (#6315)

Maintenance

  • ci: new pre-release 3.8.1a0 (#6244)
  • ci: new pre-release 3.8.1a11 (#6340)
  • ci: new pre-release 3.8.1a10 (#6332)
  • ci: new pre-release 3.8.1a1 (#6250)
  • ci: new pre-release 3.8.1a2 (#6253)
  • ci: new pre-release 3.8.1a9 (#6322)
  • ci: new pre-release 3.8.1a3 (#6259)
  • ci: new pre-release 3.8.1a4 (#6268)
  • ci: Fix SAR pipeline (#6313)
  • ci: new pre-release 3.8.1a5 (#6276)
  • ci: new pre-release 3.8.1a6 (#6290)
  • ci: new pre-release 3.8.1a7 (#6298)
  • ci: new pre-release 3.8.1a8 (#6307)
  • deps: bump actions/upload-artifact from 4.6.1 to 4.6.2 (#6302)
  • deps: bump actions/download-artifact from 4.2.0 to 4.2.1 (#6303)
  • deps: bump actions/setup-node from 4.2.0 to 4.3.0 (#6278)
  • deps: bump actions/setup-go from 5.3.0 to 5.4.0 (#6304)
  • deps: bump actions/download-artifact from 4.1.9 to 4.2.0 (#6294)
  • deps: bump squidfunk/mkdocs-material from 047452c to 479a06a in /docs (#6261)
  • deps: bump squidfunk/mkdocs-material from 479a06a to f226a2d in /docs (#6279)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.296 to 0.1.297 (#6281)
  • deps-dev: bump coverage from 7.6.12 to 7.7.0 (#6284)
  • deps-dev: bump boto3-stubs from 1.37.12 to 1.37.14 (#6282)
  • deps-dev: bump mkdocs-material from 9.6.8 to 9.6.9 (#6285)
  • deps-dev: bump cfn-lint from 1.30.0 to 1.31.0 (#6296)
  • deps-dev: bump boto3-stubs from 1.37.14 to 1.37.15 (#6295)
  • deps-dev: bump aws-cdk from 2.1004.0 to 2.1005.0 (#6301)
  • deps-dev: bump ruff from 0.9.10 to 0.11.0 (#6273)
  • deps-dev: bump boto3-stubs from 1.37.15 to 1.37.16 (#6305)
  • deps-dev: bump aws-cdk-lib from 2.183.0 to 2.184.1 (#6272)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools[parser]'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
  • 2b21864 chore: version bump
  • 47118de chore(documentation): v2 end of support (#6343)
  • bd745fd docs(public_reference): add Guild as a public reference (#6342)
  • 4bc96e4 chore(deps-dev): bump sentry-sdk from 2.24.0 to 2.24.1 (#6339)
  • e54f4a3 chore(deps-dev): bump mkdocstrings-python from 1.16.7 to 1.16.8 (#6338)
  • ea67832 chore(ci): new pre-release 3.8.1a11 (#6340)
  • a4e1f7c chore(deps-dev): bump boto3-stubs from 1.37.18 to 1.37.19 (#6337)
  • 4c0f51d chore(ci): changelog rebuild (#6333)
  • 41ff471 chore(ci): changelog rebuild (#6331)
  • cbd08ec fix(idempotency): include sk in error msgs when using composite key (#6325)
  • 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[parser]](https://github.com/aws-powertools/powertools-lambda-python) from 2.41.0 to 3.9.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.41.0...v3.9.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 25, 2025

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants