Skip to content

Commit 1107f96

Browse files
authored
feat(all): make @middy/core optional (#511)
* feat(tracer): moved middy as devDep + updated docs * feat(tracer): simplified middy note in docs * feat(metrics): moved middy as devDep + updated docs * feat(logger): moved middy as devDep + updated docs * chore(examples): bumped middy to latest 2.x
1 parent 9a45e90 commit 1107f96

File tree

14 files changed

+53
-413
lines changed

14 files changed

+53
-413
lines changed

Diff for: docs/core/logger.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ Key | Example
119119

120120
=== "Middy Middleware"
121121

122-
!!! note
123-
Middy comes bundled with Logger, so you can just import it when using the middleware.
124-
125122
!!! tip "Using Middy for the first time?"
123+
You can install Middy by running `npm i @middy/core`.
126124
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.
127125

128126
```typescript hl_lines="1-2 10-11"

Diff for: docs/core/metrics.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,8 @@ You can add default dimensions to your metrics by passing them as parameters in
208208

209209
=== "Middy middleware"
210210

211-
!!! note
212-
Middy comes bundled with Metrics, so you can just import it when using the middleware.
213-
214211
!!! tip "Using Middy for the first time?"
212+
You can install Middy by running `npm i @middy/core`.
215213
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.
216214

217215
```typescript hl_lines="1-2 11 13"

Diff for: docs/core/tracer.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ You can quickly start by importing the `Tracer` class, initialize it outside the
119119

120120
=== "Middy Middleware"
121121

122-
!!! note
123-
Middy comes bundled with Tracer, so you can just import it when using the middleware.
124-
125122
!!! tip "Using Middy for the first time?"
123+
You can install Middy by running `npm i @middy/core`.
126124
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.
127125

128126
```typescript hl_lines="1-2 11 13"

0 commit comments

Comments
 (0)