github aws-powertools/powertools-lambda-python v2.43.0

latest releases: v3.2.0, v3.1.0, v3.0.0...
3 months ago

Summary

This release improves the Validation utility, which now returns the validated data, including default values.

We have improved the Metrics utility, which now can emit metrics using the None unit. We have also fixed a bug in Event Source for Amazon DynamoDB Streams when using numbers with more than 38 digits.

🌟 ⭐ A big thank you to our new contributors: @dracozombie19, and @avonengel

Retrieving validated JSON from validate function

Docs

The validate function now returns the validated JSON, including any default values.

validate1

Last but least, thank to @miikka, @aminalaee and @ethantkoenig for raising issues.

Changes

  • refactor(tracer): make capture_lambda_handler type more generic (#4796) by @aminalaee

🌟New features and non-breaking changes

  • feat(metrics): add unit None for CloudWatch EMF Metrics (#4904) by @sthulb
  • feat(validation): returns output from validate function (#4839) by @dracozombie19

πŸ“œ Documentation updates

πŸ› Bug and hot fixes

  • fix(data_class): ensure DynamoDBStreamEvent conforms to decimal limits (#4863) by @sthulb

πŸ”§ Maintenance

  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.233 to 0.1.234 (#4909) by @dependabot
  • chore(deps): bump actions/upload-artifact from 4.3.5 to 4.3.6 (#4901) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.231 to 0.1.233 (#4900) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240726 to 4.6.0.20240806 (#4899) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.9.3 to 1.9.5 (#4890) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.230 to 0.1.231 (#4891) by @dependabot
  • chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.150.0a0 to 2.151.0a0 (#4889) by @dependabot
  • chore(deps-dev): bump coverage from 7.6.0 to 7.6.1 (#4888) by @dependabot
  • chore(deps): bump golang.org/x/sync from 0.7.0 to 0.8.0 in /layer/scripts/layer-balancer in the layer-balancer group (#4892) by @dependabot
  • refactor(test): make CORS test consistent with expected behavior (#4882) by @Wurstnase
  • chore(deps-dev): bump mypy-boto3-cloudwatch from 1.34.83 to 1.34.153 in the boto-typing group (#4887) by @dependabot
  • chore(deps-dev): bump black from 24.4.2 to 24.8.0 (#4873) by @dependabot
  • chore(deps-dev): bump aws-cdk from 2.150.0 to 2.151.0 (#4872) by @dependabot
  • chore(deps-dev): bump ruff from 0.5.5 to 0.5.6 (#4874) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.228 to 0.1.230 (#4876) by @dependabot
  • chore(deps-dev): bump aws-cdk-lib from 2.150.0 to 2.151.0 (#4875) by @dependabot
  • chore(deps): bump actions/upload-artifact from 4.3.4 to 4.3.5 (#4871) by @dependabot
  • chore(deps-dev): bump mkdocs-material from 9.5.30 to 9.5.31 (#4877) by @dependabot
  • chore(deps): bump squidfunk/mkdocs-material from 257eca8 to 9919d6e in /docs (#4878) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.9.1 to 1.9.3 (#4866) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.224 to 0.1.228 (#4867) by @dependabot
  • chore(deps-dev): bump sentry-sdk from 2.11.0 to 2.12.0 (#4861) by @dependabot
  • chore(deps): bump redis from 5.0.7 to 5.0.8 (#4854) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.223 to 0.1.224 (#4855) by @dependabot
  • chore(deps-dev): bump mypy-boto3-logs from 1.34.66 to 1.34.151 in the boto-typing group (#4853) by @dependabot
  • chore(deps-dev): bump cfn-lint from 1.8.2 to 1.9.1 (#4851) by @dependabot
  • chore(deps): bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#4844) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.222 to 0.1.223 (#4843) by @dependabot
  • chore(maintenance): add Banxware customer refernece (#4841) by @dreamorosi
  • chore(deps-dev): bump pytest from 8.3.1 to 8.3.2 (#4824) by @dependabot
  • chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.219 to 0.1.222 (#4836) by @dependabot
  • chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#4829) by @dependabot
  • chore(deps-dev): bump types-redis from 4.6.0.20240425 to 4.6.0.20240726 (#4831) by @dependabot
  • chore(deps-dev): bump ruff from 0.5.4 to 0.5.5 (#4823) by @dependabot

This release was made possible by the following contributors:

@Wurstnase, @aminalaee, @avonengel, @dependabot, @dependabot[bot], @dracozombie19, @dreamorosi, @github-actions, @github-actions[bot], @leandrodamascena and @sthulb

Don't miss a new powertools-lambda-python release

NewReleases is sending notifications on new releases.