Skip to content

Commit 7e85a6d

Browse files
authored
Merge branch 'develop' into fix/swagger-json-url
2 parents ab78c77 + 9df0ccd commit 7e85a6d

File tree

14 files changed

+187
-148
lines changed

14 files changed

+187
-148
lines changed

.github/workflows/reusable_deploy_v2_layer_stack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- region: "ca-central-1"
106106
has_arm64_support: "true"
107107
- region: "ca-west-1"
108-
has_arm64_support: "false"
108+
has_arm64_support: "true"
109109
- region: "eu-central-1"
110110
has_arm64_support: "true"
111111
- region: "eu-central-2"

CHANGELOG.md

+24-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,36 @@
44
<a name="unreleased"></a>
55
# Unreleased
66

7+
## Code Refactoring
8+
9+
* **event_handler:** correct typo in exception docstring ([#4948](https://github.com/aws-powertools/powertools-lambda-python/issues/4948))
10+
711
## Maintenance
812

13+
* **ci:** new pre-release 2.43.2a0 ([#4946](https://github.com/aws-powertools/powertools-lambda-python/issues/4946))
14+
* **ci:** new pre-release 2.43.1a2 ([#4933](https://github.com/aws-powertools/powertools-lambda-python/issues/4933))
15+
* **deps:** bump datadog-lambda from 6.97.0 to 6.98.0 ([#4938](https://github.com/aws-powertools/powertools-lambda-python/issues/4938))
16+
* **deps-dev:** bump mypy-boto3-s3 from 1.34.138 to 1.34.158 in the boto-typing group ([#4936](https://github.com/aws-powertools/powertools-lambda-python/issues/4936))
17+
18+
19+
<a name="v2.43.1"></a>
20+
## [v2.43.1] - 2024-08-12
21+
## Bug Fixes
22+
23+
* **event_source:** fix regression when working with zero numbers in DynamoDBStreamEvent ([#4932](https://github.com/aws-powertools/powertools-lambda-python/issues/4932))
24+
25+
## Maintenance
26+
27+
* version bump
28+
* **ci:** new pre-release 2.43.1a0 ([#4920](https://github.com/aws-powertools/powertools-lambda-python/issues/4920))
929
* **ci:** new pre-release 2.43.1a1 ([#4926](https://github.com/aws-powertools/powertools-lambda-python/issues/4926))
1030
* **ci:** new pre-release 2.42.1a9 ([#4912](https://github.com/aws-powertools/powertools-lambda-python/issues/4912))
11-
* **ci:** new pre-release 2.43.1a0 ([#4920](https://github.com/aws-powertools/powertools-lambda-python/issues/4920))
12-
* **deps-dev:** bump cfn-lint from 1.9.5 to 1.9.6 ([#4916](https://github.com/aws-powertools/powertools-lambda-python/issues/4916))
31+
* **deps-dev:** bump ruff from 0.5.6 to 0.5.7 ([#4918](https://github.com/aws-powertools/powertools-lambda-python/issues/4918))
1332
* **deps-dev:** bump cdklabs-generative-ai-cdk-constructs from 0.1.234 to 0.1.238 ([#4917](https://github.com/aws-powertools/powertools-lambda-python/issues/4917))
1433
* **deps-dev:** bump mypy-boto3-ssm from 1.34.132 to 1.34.158 in the boto-typing group ([#4921](https://github.com/aws-powertools/powertools-lambda-python/issues/4921))
1534
* **deps-dev:** bump cdklabs-generative-ai-cdk-constructs from 0.1.238 to 0.1.242 ([#4922](https://github.com/aws-powertools/powertools-lambda-python/issues/4922))
1635
* **deps-dev:** bump cfn-lint from 1.9.6 to 1.9.7 ([#4923](https://github.com/aws-powertools/powertools-lambda-python/issues/4923))
17-
* **deps-dev:** bump ruff from 0.5.6 to 0.5.7 ([#4918](https://github.com/aws-powertools/powertools-lambda-python/issues/4918))
36+
* **deps-dev:** bump cfn-lint from 1.9.5 to 1.9.6 ([#4916](https://github.com/aws-powertools/powertools-lambda-python/issues/4916))
1837

1938

2039
<a name="v2.43.0"></a>
@@ -5294,7 +5313,8 @@
52945313
* Merge pull request [#5](https://github.com/aws-powertools/powertools-lambda-python/issues/5) from jfuss/feat/python38
52955314

52965315

5297-
[Unreleased]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.43.0...HEAD
5316+
[Unreleased]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.43.1...HEAD
5317+
[v2.43.1]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.43.0...v2.43.1
52985318
[v2.43.0]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.42.0...v2.43.0
52995319
[v2.42.0]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.41.0...v2.42.0
53005320
[v2.41.0]: https://github.com/aws-powertools/powertools-lambda-python/compare/v2.40.1...v2.41.0

aws_lambda_powertools/event_handler/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, msg: str = "Not found"):
3939

4040

4141
class InternalServerError(ServiceError):
42-
"""API Gateway and ALB Not Found Internal Server Error (500)"""
42+
"""API Gateway and ALB Internal Server Error (500)"""
4343

4444
def __init__(self, message: str):
4545
super().__init__(HTTPStatus.INTERNAL_SERVER_ERROR, message)
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Exposes version constant to avoid circular dependencies."""
22

3-
VERSION = "2.43.1a1"
3+
VERSION = "2.43.2a0"

aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py

+5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ def _deserialize_bool(self, value: bool) -> bool:
7373
return value
7474

7575
def _deserialize_n(self, value: str) -> Decimal:
76+
# value is None or "."? It's zero
77+
# then return early
7678
value = value.lstrip("0")
79+
if not value or value == ".":
80+
return DYNAMODB_CONTEXT.create_decimal(0)
81+
7782
if len(value) > 38:
7883
# See: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes.Number
7984
# Calculate the number of trailing zeros after the 38th character

0 commit comments

Comments
 (0)