Skip to content

Commit

Permalink
feat(all): make @middy/core optional (#511)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dreamorosi authored Jan 26, 2022
1 parent 9a45e90 commit 1107f96
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 413 deletions.
4 changes: 1 addition & 3 deletions docs/core/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ Key | Example

=== "Middy Middleware"

!!! note
Middy comes bundled with Logger, so you can just import it when using the middleware.

!!! tip "Using Middy for the first time?"
You can install Middy by running `npm i @middy/core`.
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.

```typescript hl_lines="1-2 10-11"
Expand Down
4 changes: 1 addition & 3 deletions docs/core/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ You can add default dimensions to your metrics by passing them as parameters in

=== "Middy middleware"

!!! note
Middy comes bundled with Metrics, so you can just import it when using the middleware.

!!! tip "Using Middy for the first time?"
You can install Middy by running `npm i @middy/core`.
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.

```typescript hl_lines="1-2 11 13"
Expand Down
4 changes: 1 addition & 3 deletions docs/core/tracer.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ You can quickly start by importing the `Tracer` class, initialize it outside the

=== "Middy Middleware"

!!! note
Middy comes bundled with Tracer, so you can just import it when using the middleware.

!!! tip "Using Middy for the first time?"
You can install Middy by running `npm i @middy/core`.
Learn more about [its usage and lifecycle in the official Middy documentation](https://github.com/middyjs/middy#usage){target="_blank"}.

```typescript hl_lines="1-2 11 13"
Expand Down
Loading

0 comments on commit 1107f96

Please sign in to comment.