Skip to content

Commit

Permalink
fix(deps): update aws-lambda-powertools-typescript monorepo to v2 (ma…
Browse files Browse the repository at this point in the history
…jor) (#110)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@aws-lambda-powertools/logger](https://togithub.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/logger#readme) ([source](https://togithub.com/aws-powertools/powertools-lambda-typescript)) | [`1.18.1` -> `2.0.2`](https://renovatebot.com/diffs/npm/@aws-lambda-powertools%2flogger/1.18.1/2.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-lambda-powertools%2flogger/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-lambda-powertools%2flogger/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-lambda-powertools%2flogger/1.18.1/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-lambda-powertools%2flogger/1.18.1/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@aws-lambda-powertools/tracer](https://togithub.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/tracer#readme) ([source](https://togithub.com/aws-powertools/powertools-lambda-typescript)) | [`1.18.1` -> `2.0.2`](https://renovatebot.com/diffs/npm/@aws-lambda-powertools%2ftracer/1.18.1/2.0.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@aws-lambda-powertools%2ftracer/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@aws-lambda-powertools%2ftracer/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@aws-lambda-powertools%2ftracer/1.18.1/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@aws-lambda-powertools%2ftracer/1.18.1/2.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>aws-powertools/powertools-lambda-typescript (@&#8203;aws-lambda-powertools/logger)</summary>

### [`v2.0.2`](https://togithub.com/aws-powertools/powertools-lambda-typescript/blob/HEAD/CHANGELOG.md#202-2024-03-05)

[Compare Source](https://togithub.com/aws-powertools/powertools-lambda-typescript/compare/v2.0.1...v2.0.2)

##### Bug Fixes

-   **tracer:** modify aws-xray-sdk-core import for js ([#&#8203;2164](https://togithub.com/aws-powertools/powertools-lambda-typescript/issues/2164)) ([29630b5](https://togithub.com/aws-powertools/powertools-lambda-typescript/commit/29630b5b68915ccca1324f3e7ce3e95b85a616be))

### [`v2.0.1`](https://togithub.com/aws-powertools/powertools-lambda-typescript/blob/HEAD/CHANGELOG.md#201-2024-03-04)

[Compare Source](https://togithub.com/aws-powertools/powertools-lambda-typescript/compare/v2.0.0...v2.0.1)

**Note:** Version bump only for package aws-lambda-powertools-typescript

### [`v2.0.0`](https://togithub.com/aws-powertools/powertools-lambda-typescript/blob/HEAD/CHANGELOG.md#200-2024-03-04)

[Compare Source](https://togithub.com/aws-powertools/powertools-lambda-typescript/compare/v1.18.1...v2.0.0)

**Note:** Version bump only for package aws-lambda-powertools-typescript

#### 1.18.1 (2024-02-20)

**Note:** Version bump only for package aws-lambda-powertools-typescript

#### [1.18.0](https://togithub.com/aws-powertools/powertools-lambda-typescript/compare/v1.17.0...v1.18.0) (2024-01-26)

##### Features

**layers:** add `ca-west-1` region ([#&#8203;1836](https://togithub.com/aws-powertools/powertools-lambda-typescript/issues/1836)) ([55ff4df](https://togithub.com/aws-powertools/powertools-lambda-typescript/commit/55ff4df53773e949993c3f21718ea3d447c30f9e))

#### [1.17.0](https://togithub.com/aws-powertools/powertools-lambda-typescript/compare/v1.16.0...v1.17.0) (2023-11-24)

**maintenance:** drop support for Node.js 14 ([#&#8203;1664](https://togithub.com/aws-powertools/powertools-lambda-typescript/issues/1664)) ([e2a0923](https://togithub.com/aws-powertools/powertools-lambda-typescript/commit/e2a09232f86167b5208be2daf892aa1ea433ce0f))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/aws-utils).
  • Loading branch information
renovate[bot] authored Mar 9, 2024
1 parent 62c8eef commit bc343b7
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 39 deletions.
26 changes: 13 additions & 13 deletions lambda/log-redirect/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lambda/log-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "util-lambda",
"version": "1.0.0",
"dependencies": {
"@aws-lambda-powertools/logger": "1.18.1",
"@aws-lambda-powertools/tracer": "1.18.1",
"@aws-lambda-powertools/logger": "2.0.2",
"@aws-lambda-powertools/tracer": "2.0.2",
"@middy/core": "5.2.6",
"@middy/http-header-normalizer": "5.2.6",
"@middy/http-error-handler": "5.2.6",
Expand Down
8 changes: 4 additions & 4 deletions lambda/log-redirect/src/mythplus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import middy from "@middy/core";
import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {getLatestMythPlusReport, getLatestRaidReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer";
import {getLatestMythPlusReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {logger, tracer} from "./util";
import {injectLambdaContext} from "@aws-lambda-powertools/logger";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";

const lambdaHandler = async function (event: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const reportId = await getLatestMythPlusReport();

if(reportId) {
Expand Down
6 changes: 3 additions & 3 deletions lambda/log-redirect/src/raid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {getLatestRaidReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {captureLambdaHandler, Tracer} from "@aws-lambda-powertools/tracer";
import {injectLambdaContext} from "@aws-lambda-powertools/logger";
import {logger, tracer} from "./util";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";

const lambdaHandler = async function (event: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const reportId = await getLatestRaidReport();

if(reportId) {
Expand Down
26 changes: 13 additions & 13 deletions lambda/prime-scout/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lambda/prime-scout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "prime-scout-lambda",
"version": "1.0.0",
"dependencies": {
"@aws-lambda-powertools/logger": "1.18.1",
"@aws-lambda-powertools/tracer": "1.18.1",
"@aws-lambda-powertools/logger": "2.0.2",
"@aws-lambda-powertools/tracer": "2.0.2",
"@middy/core": "5.2.6",
"@middy/http-header-normalizer": "5.2.6",
"@middy/http-error-handler": "5.2.6",
Expand Down
6 changes: 4 additions & 2 deletions lambda/prime-scout/src/scout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import middy from "@middy/core";
import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {captureLambdaHandler, Tracer} from "@aws-lambda-powertools/tracer";
import {injectLambdaContext, Logger} from "@aws-lambda-powertools/logger";
import {Tracer} from "@aws-lambda-powertools/tracer";
import {Logger} from "@aws-lambda-powertools/logger";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";
import httpContentNegotiation from '@middy/http-content-negotiation'
import httpJsonBodyParserMiddleware from '@middy/http-json-body-parser'
import httpResponseSerializerMiddleware from '@middy/http-response-serializer'
Expand Down

0 comments on commit bc343b7

Please sign in to comment.