You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrade.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ We've made minimal breaking changes to make your transition to v3 as smooth as p
17
17
|**Parser**| Replaced [DynamoDBStreamModel](#dynamodbstreammodel-in-parser)`AttributeValue` with native Python types | Yes |
18
18
|**Lambda layer**|[Lambda layers](#new-lambda-layers-arn) are now compiled according to the specific Python version and architecture | No |
19
19
|**Batch Processor**|`@batch_processor` and `@async_batch_processor` decorators [are now deprecated](#deprecated-batch-processing-decorators)| Yes |
20
-
|**Event Source Data Classes**|New default values for optional fields| Yes |
20
+
|**Event Source Data Classes**|Updated [default values](#event-source-default-values) for optional fields.| Yes |
21
21
|**Parameters**| The [default cache TTL](#parameters-default-cache-ttl-updated-to-5-minutes) is now set to **5 minutes**| No |
22
22
|**Parameters**| The `config` parameter [is deprecated](#parameters-using-the-new-boto_config-parameter) in favor of `boto_config`| Yes |
23
23
|**JMESPath Functions**| The `extract_data_from_envelope` function is [deprecated in favor](#utilizing-the-new-query-function-in-jmespath-functions) of `query`| Yes |
@@ -37,7 +37,7 @@ Before you start, we suggest making a copy of your current working project or cr
37
37
38
38
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.
39
39
40
-
You don't need to make any changes related to Powertools for AWS Lambda (Python) on your end.
40
+
You don't need to make any changes to your code regarding Powertools for AWS Lambda (Python), as we fully support Pydantic V2 features.
We've modified the **Event Source Data classes** so that optional dictionaries and lists now return empty dictionaries or lists instead of None. This improvement simplifies your code by eliminating the need for conditional checks when accessing these fields, while maintaining backward compatibility with previous implementations.
154
+
155
+
We've applied this change broadly across various event source data classes, ensuring a more consistent and streamlined coding experience for you.
156
+
157
+
**MISSING BEFORE AND AFTER**
158
+
151
159
## Parameters: default cache TTL updated to 5 minutes
0 commit comments