Skip to content

Commit 8e6cb10

Browse files
committed
docs: update docs to include v5
1 parent bfba00d commit 8e6cb10

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/core/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This functionality will include the following keys in your structured logs:
111111
=== "Middy Middleware"
112112

113113
!!! tip "A note about Middy"
114-
We guarantee support only for Middy.js `v4.x`, that you can install it by running `npm i @middy/core@~4`.
114+
We guarantee support for both Middy.js `v4.x` & `v5.x` with the latter being available only if you are using ES modules.
115115
Check their docs to learn more about [Middy and its middleware stack](https://middy.js.org/docs/intro/getting-started){target="_blank"} as well as [best practices when working with Powertools](https://middy.js.org/docs/integrations/lambda-powertools#best-practices){target="_blank"}.
116116

117117
```typescript hl_lines="2 14"

docs/core/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ You can add default dimensions to your metrics by passing them as parameters in
199199
=== "Middy middleware"
200200

201201
!!! tip "A note about Middy"
202-
Currently we support up to Middy `v4.x` that you can install it by running `npm i @middy/core@~4`.
202+
We guarantee support for both Middy.js `v4.x` & `v5.x` with the latter being available only if you are using ES modules.
203203
Check their docs to learn more about [Middy and its middleware stack](https://middy.js.org/docs/intro/getting-started){target="_blank"} as well as [best practices when working with Powertools](https://middy.js.org/docs/integrations/lambda-powertools#best-practices){target="_blank"}.
204204

205205
```typescript hl_lines="24-26"

docs/core/tracer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ You can quickly start by importing the `Tracer` class, initialize it outside the
154154
=== "Middy Middleware"
155155

156156
!!! tip "A note about Middy"
157-
We guarantee support only for Middy.js `v4.x`, that you can install it by running `npm i @middy/core@~4`.
157+
We guarantee support for both Middy.js `v4.x` & `v5.x` with the latter being available only if you are using ES modules.
158158
Check their docs to learn more about [Middy and its middleware stack](https://middy.js.org/docs/intro/getting-started){target="_blank"} as well as [best practices when working with Powertools](https://middy.js.org/docs/integrations/lambda-powertools#best-practices){target="_blank"}.
159159

160160
```typescript hl_lines="2 15 17"

docs/utilities/idempotency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ The configuration options for the `@idempotent` decorator are the same as the on
189189
### MakeHandlerIdempotent Middy middleware
190190

191191
!!! tip "A note about Middy"
192-
Currently we support Middy up to `v4.x` that you can install it by running `npm i @middy/core@~4`.
192+
We guarantee support for both Middy.js `v4.x` & `v5.x` with the latter being available only if you are using ES modules.
193193
Check their docs to learn more about [Middy and its middleware stack](https://middy.js.org/docs/intro/getting-started){target="_blank"} as well as [best practices when working with Powertools](https://middy.js.org/docs/integrations/lambda-powertools#best-practices){target="_blank"}.
194194

195195
If you are using [Middy.js](https://middy.js.org){target="_blank"} as your middleware engine, you can use the `makeHandlerIdempotent` middleware to make your Lambda handler idempotent.

0 commit comments

Comments
 (0)