From 800747e9379f4e73a4207d8ca3babe1e31f8eaad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 23:21:57 +0000 Subject: [PATCH] Update aws-lambda-powertools-typescript monorepo to v2 (major) (#337) 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/share.kirschbaum.cloud). --- lambda/package-lock.json | 26 ++++++++++---------- lambda/package.json | 4 +-- lambda/src/functions/addShare.ts | 4 +-- lambda/src/functions/completeUpload.ts | 4 +-- lambda/src/functions/deleteShare.ts | 4 +-- lambda/src/functions/forwardShare.ts | 3 ++- lambda/src/functions/fullfillShareRequest.ts | 4 +-- lambda/src/functions/listShares.ts | 4 +-- lambda/src/functions/onShareDeletion.ts | 4 +-- lambda/src/functions/parseLog.ts | 4 +-- lambda/src/functions/submitLogAnalysis.ts | 4 +-- 11 files changed, 33 insertions(+), 32 deletions(-) diff --git a/lambda/package-lock.json b/lambda/package-lock.json index ddac02a2..2c669313 100644 --- a/lambda/package-lock.json +++ b/lambda/package-lock.json @@ -9,8 +9,8 @@ "version": "1.0.0", "hasInstallScript": true, "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-dynamodb": "3.525.0", "@aws-sdk/client-s3": "3.525.0", "@aws-sdk/client-sesv2": "3.525.0", @@ -167,16 +167,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": { @@ -189,11 +189,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/package.json b/lambda/package.json index e9583d92..bfd909cd 100644 --- a/lambda/package.json +++ b/lambda/package.json @@ -2,8 +2,8 @@ "name": "share-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-dynamodb": "3.525.0", "@aws-sdk/client-s3": "3.525.0", "@aws-sdk/client-sesv2": "3.525.0", diff --git a/lambda/src/functions/addShare.ts b/lambda/src/functions/addShare.ts index a35d6426..0c7140ff 100644 --- a/lambda/src/functions/addShare.ts +++ b/lambda/src/functions/addShare.ts @@ -8,8 +8,8 @@ import {DateTime} from "luxon"; import {BadRequest, InternalServerError, UnprocessableEntity} from "http-errors" import middy from "@middy/core"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import httpJsonBodyParserMiddleware from '@middy/http-json-body-parser' import httpResponseSerializerMiddleware from '@middy/http-response-serializer' import validatorMiddleware from '@middy/validator' diff --git a/lambda/src/functions/completeUpload.ts b/lambda/src/functions/completeUpload.ts index 2e636012..8eead253 100644 --- a/lambda/src/functions/completeUpload.ts +++ b/lambda/src/functions/completeUpload.ts @@ -3,8 +3,8 @@ import {DynamoDBClient, GetItemCommand, PutItemCommand} from "@aws-sdk/client-dy import {uploadService} from "../services/UploadService"; import {SendBulkEmailCommand, SESv2Client} from "@aws-sdk/client-sesv2"; import {tracer} from "../services/Tracer"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import {DateTime} from "luxon"; diff --git a/lambda/src/functions/deleteShare.ts b/lambda/src/functions/deleteShare.ts index 9949d2d9..a23b3325 100644 --- a/lambda/src/functions/deleteShare.ts +++ b/lambda/src/functions/deleteShare.ts @@ -1,8 +1,8 @@ import {APIGatewayProxyEventV2WithJWTAuthorizer, APIGatewayProxyResultV2} from "aws-lambda"; import {DynamoDBClient, DeleteItemCommand} from "@aws-sdk/client-dynamodb"; import {tracer} from "../services/Tracer"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import middy from "@middy/core"; diff --git a/lambda/src/functions/forwardShare.ts b/lambda/src/functions/forwardShare.ts index 46d5958e..dc329a56 100644 --- a/lambda/src/functions/forwardShare.ts +++ b/lambda/src/functions/forwardShare.ts @@ -4,7 +4,8 @@ import { } from "aws-lambda"; import {DynamoDBClient, GetItemCommand} from "@aws-sdk/client-dynamodb"; import {CloudFrontRequestHandler} from "aws-lambda/trigger/cloudfront-request"; -import {injectLambdaContext, Logger} from "@aws-lambda-powertools/logger"; +import {Logger} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import middy from "@middy/core"; import {DateTime} from "luxon"; import {response404, response500} from "../types/edgeResponses"; diff --git a/lambda/src/functions/fullfillShareRequest.ts b/lambda/src/functions/fullfillShareRequest.ts index 2aa1a0b4..c25fca44 100644 --- a/lambda/src/functions/fullfillShareRequest.ts +++ b/lambda/src/functions/fullfillShareRequest.ts @@ -1,9 +1,9 @@ import {APIGatewayProxyEventV2WithJWTAuthorizer, APIGatewayProxyResultV2} from "aws-lambda"; import {DynamoDBClient, GetItemCommand, PutItemCommand} from "@aws-sdk/client-dynamodb"; import {uploadService} from "../services/UploadService"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; import {tracer} from "../services/Tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import {DateTime} from "luxon"; import {BadRequest, NotFound} from "http-errors"; diff --git a/lambda/src/functions/listShares.ts b/lambda/src/functions/listShares.ts index 214cf06a..d7b04d3b 100644 --- a/lambda/src/functions/listShares.ts +++ b/lambda/src/functions/listShares.ts @@ -3,9 +3,9 @@ import { DynamoDBClient, QueryCommand } from "@aws-sdk/client-dynamodb"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; import {tracer} from "../services/Tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import {DateTime} from "luxon"; diff --git a/lambda/src/functions/onShareDeletion.ts b/lambda/src/functions/onShareDeletion.ts index e38dbcab..3592a5d1 100644 --- a/lambda/src/functions/onShareDeletion.ts +++ b/lambda/src/functions/onShareDeletion.ts @@ -4,9 +4,9 @@ import { } from "aws-lambda"; import {DeleteObjectCommand, S3Client} from "@aws-sdk/client-s3"; import middy from "@middy/core"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; import {tracer} from "../services/Tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import errorLogger from "@middy/error-logger"; diff --git a/lambda/src/functions/parseLog.ts b/lambda/src/functions/parseLog.ts index 29975502..0c9feb5f 100644 --- a/lambda/src/functions/parseLog.ts +++ b/lambda/src/functions/parseLog.ts @@ -8,9 +8,9 @@ import CloudFrontParser from 'cloudfront-log-parser' import LogSubmittedEvent from "../types/LogSubmittedEvent"; import {ClickData, ClickDataMap} from "../types/ClickData"; import middy from "@middy/core"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; import {tracer} from "../services/Tracer"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import errorLogger from "@middy/error-logger"; diff --git a/lambda/src/functions/submitLogAnalysis.ts b/lambda/src/functions/submitLogAnalysis.ts index 8c3ea6a6..db02e582 100644 --- a/lambda/src/functions/submitLogAnalysis.ts +++ b/lambda/src/functions/submitLogAnalysis.ts @@ -4,10 +4,10 @@ import { } from "aws-lambda"; import LogSubmittedEvent from "../types/LogSubmittedEvent"; import middy from "@middy/core"; -import {captureLambdaHandler} from "@aws-lambda-powertools/tracer"; +import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware"; import {tracer} from "../services/Tracer"; import {SFNClient, StartExecutionCommand} from "@aws-sdk/client-sfn"; -import {injectLambdaContext} from "@aws-lambda-powertools/logger"; +import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware"; import {logger} from "../services/Logger"; import errorLogger from "@middy/error-logger";