Skip to content

Commit

Permalink
Update aws-lambda-powertools-typescript monorepo to v2 (major) (#337)
Browse files Browse the repository at this point in the history
[![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://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/logger#readme) ([source](https://github.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://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/tracer#readme) ([source](https://github.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://github.com/aws-powertools/powertools-lambda-typescript/blob/HEAD/CHANGELOG.md#202-2024-03-05)

[Compare Source](https://github.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://github.com/aws-powertools/powertools-lambda-typescript/issues/2164)) ([29630b5](https://github.com/aws-powertools/powertools-lambda-typescript/commit/29630b5b68915ccca1324f3e7ce3e95b85a616be))

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

[Compare Source](https://github.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://github.com/aws-powertools/powertools-lambda-typescript/blob/HEAD/CHANGELOG.md#200-2024-03-04)

[Compare Source](https://github.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://github.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://github.com/aws-powertools/powertools-lambda-typescript/issues/1836)) ([55ff4df](https://github.com/aws-powertools/powertools-lambda-typescript/commit/55ff4df53773e949993c3f21718ea3d447c30f9e))

#### [1.17.0](https://github.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://github.com/aws-powertools/powertools-lambda-typescript/issues/1664)) ([e2a0923](https://github.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/share.kirschbaum.cloud).
  • Loading branch information
renovate[bot] authored Mar 9, 2024
1 parent 8b4f80d commit 800747e
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 32 deletions.
26 changes: 13 additions & 13 deletions lambda/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/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/addShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/completeUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/deleteShare.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
3 changes: 2 additions & 1 deletion lambda/src/functions/forwardShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/fullfillShareRequest.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/listShares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/onShareDeletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/parseLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions lambda/src/functions/submitLogAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 800747e

Please sign in to comment.