From bc343b7171fe54ee382a0d0a6b6aa964c8d89fdf Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 9 Mar 2024 21:59:09 +0000
Subject: [PATCH] fix(deps): update aws-lambda-powertools-typescript monorepo
to v2 (major) (#110)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![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
aws-powertools/powertools-lambda-typescript (@aws-lambda-powertools/logger)
### [`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 ([#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 ([#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 ([#1664](https://togithub.com/aws-powertools/powertools-lambda-typescript/issues/1664)) ([e2a0923](https://togithub.com/aws-powertools/powertools-lambda-typescript/commit/e2a09232f86167b5208be2daf892aa1ea433ce0f))
---
### 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).
---
lambda/log-redirect/package-lock.json | 26 +++++++++++++-------------
lambda/log-redirect/package.json | 4 ++--
lambda/log-redirect/src/mythplus.ts | 8 ++++----
lambda/log-redirect/src/raid.ts | 6 +++---
lambda/prime-scout/package-lock.json | 26 +++++++++++++-------------
lambda/prime-scout/package.json | 4 ++--
lambda/prime-scout/src/scout.ts | 6 ++++--
7 files changed, 41 insertions(+), 39 deletions(-)
diff --git a/lambda/log-redirect/package-lock.json b/lambda/log-redirect/package-lock.json
index 77273f5..6ee5a5e 100644
--- a/lambda/log-redirect/package-lock.json
+++ b/lambda/log-redirect/package-lock.json
@@ -8,8 +8,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",
"@aws-sdk/client-secrets-manager": "3.525.0",
"@middy/core": "5.2.6",
"@middy/error-logger": "5.2.6",
@@ -119,16 +119,16 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
},
"node_modules/@aws-lambda-powertools/commons": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-1.18.1.tgz",
- "integrity": "sha512-gFRgQ2GJDghKvf+fXvT0kQVftgOT05W+hCa7RkfZj6HSjVAO+9DZZeJL3JK1HcsLAjWRj7W9ra0/MqB3Abf+PQ=="
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-2.0.2.tgz",
+ "integrity": "sha512-5fHXZwol2LVb+UGwNPHVIZfeAgztyLaAABNvVlDqzrkpwlbfEAEBRxQN9I/vgm4NNJC7+hZHqk0ca+R4JHZBGQ=="
},
"node_modules/@aws-lambda-powertools/logger": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-1.18.1.tgz",
- "integrity": "sha512-GsSMqaFXCSz+llSOn2CVNMoN+j/jNsS6JP2Opy9myU0tvg7PeuU3+rN24vKyibUwpxM466IzWFBSJkYdm0bqVw==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.0.2.tgz",
+ "integrity": "sha512-VzwVI2N8HVy7T8xAAKwoZjV/iKHYauFpFPCsM5rRaQ9s6j4dNrwGNmCcv+iLLopRCsXJHoSzBUQ+nBBI/eZ4sA==",
"dependencies": {
- "@aws-lambda-powertools/commons": "^1.18.1",
+ "@aws-lambda-powertools/commons": "^2.0.2",
"lodash.merge": "^4.6.2"
},
"peerDependencies": {
@@ -141,11 +141,11 @@
}
},
"node_modules/@aws-lambda-powertools/tracer": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/tracer/-/tracer-1.18.1.tgz",
- "integrity": "sha512-bMLBtdEFNmLUR9RJvBULR6XJD0XopUhhS1mlpeQlm2BCPIN3gLbqAlJK8dMXyAw8GCpLpHaziCo2+7a/AIh7lA==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/tracer/-/tracer-2.0.2.tgz",
+ "integrity": "sha512-qLUXsMK/KJ7ctUx62hr8irargqvF5o4TY9IkUNFTTC9DTP5905ulgogxtH9fJP6hvvX7KCFzoJmvibROXAxFOw==",
"dependencies": {
- "@aws-lambda-powertools/commons": "^1.18.1",
+ "@aws-lambda-powertools/commons": "^2.0.2",
"aws-xray-sdk-core": "^3.5.3"
},
"peerDependencies": {
diff --git a/lambda/log-redirect/package.json b/lambda/log-redirect/package.json
index c4064ed..c3e3b54 100644
--- a/lambda/log-redirect/package.json
+++ b/lambda/log-redirect/package.json
@@ -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",
diff --git a/lambda/log-redirect/src/mythplus.ts b/lambda/log-redirect/src/mythplus.ts
index 1795c8f..8b4fc8d 100644
--- a/lambda/log-redirect/src/mythplus.ts
+++ b/lambda/log-redirect/src/mythplus.ts
@@ -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 {
+const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise {
const reportId = await getLatestMythPlusReport();
if(reportId) {
diff --git a/lambda/log-redirect/src/raid.ts b/lambda/log-redirect/src/raid.ts
index beb13a6..65f4cc4 100644
--- a/lambda/log-redirect/src/raid.ts
+++ b/lambda/log-redirect/src/raid.ts
@@ -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 {
+const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise {
const reportId = await getLatestRaidReport();
if(reportId) {
diff --git a/lambda/prime-scout/package-lock.json b/lambda/prime-scout/package-lock.json
index 3cbba71..dc58c93 100644
--- a/lambda/prime-scout/package-lock.json
+++ b/lambda/prime-scout/package-lock.json
@@ -8,8 +8,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/error-logger": "5.2.6",
"@middy/http-content-negotiation": "5.2.6",
@@ -30,16 +30,16 @@
}
},
"node_modules/@aws-lambda-powertools/commons": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-1.18.1.tgz",
- "integrity": "sha512-gFRgQ2GJDghKvf+fXvT0kQVftgOT05W+hCa7RkfZj6HSjVAO+9DZZeJL3JK1HcsLAjWRj7W9ra0/MqB3Abf+PQ=="
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-2.0.2.tgz",
+ "integrity": "sha512-5fHXZwol2LVb+UGwNPHVIZfeAgztyLaAABNvVlDqzrkpwlbfEAEBRxQN9I/vgm4NNJC7+hZHqk0ca+R4JHZBGQ=="
},
"node_modules/@aws-lambda-powertools/logger": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-1.18.1.tgz",
- "integrity": "sha512-GsSMqaFXCSz+llSOn2CVNMoN+j/jNsS6JP2Opy9myU0tvg7PeuU3+rN24vKyibUwpxM466IzWFBSJkYdm0bqVw==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-2.0.2.tgz",
+ "integrity": "sha512-VzwVI2N8HVy7T8xAAKwoZjV/iKHYauFpFPCsM5rRaQ9s6j4dNrwGNmCcv+iLLopRCsXJHoSzBUQ+nBBI/eZ4sA==",
"dependencies": {
- "@aws-lambda-powertools/commons": "^1.18.1",
+ "@aws-lambda-powertools/commons": "^2.0.2",
"lodash.merge": "^4.6.2"
},
"peerDependencies": {
@@ -52,11 +52,11 @@
}
},
"node_modules/@aws-lambda-powertools/tracer": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/tracer/-/tracer-1.18.1.tgz",
- "integrity": "sha512-bMLBtdEFNmLUR9RJvBULR6XJD0XopUhhS1mlpeQlm2BCPIN3gLbqAlJK8dMXyAw8GCpLpHaziCo2+7a/AIh7lA==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@aws-lambda-powertools/tracer/-/tracer-2.0.2.tgz",
+ "integrity": "sha512-qLUXsMK/KJ7ctUx62hr8irargqvF5o4TY9IkUNFTTC9DTP5905ulgogxtH9fJP6hvvX7KCFzoJmvibROXAxFOw==",
"dependencies": {
- "@aws-lambda-powertools/commons": "^1.18.1",
+ "@aws-lambda-powertools/commons": "^2.0.2",
"aws-xray-sdk-core": "^3.5.3"
},
"peerDependencies": {
diff --git a/lambda/prime-scout/package.json b/lambda/prime-scout/package.json
index 98da778..965243d 100644
--- a/lambda/prime-scout/package.json
+++ b/lambda/prime-scout/package.json
@@ -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",
diff --git a/lambda/prime-scout/src/scout.ts b/lambda/prime-scout/src/scout.ts
index 7b69db8..fa6b696 100644
--- a/lambda/prime-scout/src/scout.ts
+++ b/lambda/prime-scout/src/scout.ts
@@ -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'