From 653b80818da99772e46d9dd72ba0e31e5c0263aa Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Tue, 9 Apr 2024 18:11:07 +0200 Subject: [PATCH] chore: bump Powertools for AWS Lambda (TypeScript) to v2.0.3 (#500) * chore: bump Powertools for AWS Lambda (TypeScript) * chore: revert changed lines --------- Co-authored-by: Lucas <12496191+lucashuy@users.noreply.github.com> --- .../{{cookiecutter.project_name}}/hello-world/app.ts | 2 +- .../hello-world/package.json | 6 +++--- .../{{cookiecutter.project_name}}/hello-world/app.ts | 2 +- .../hello-world/package.json | 6 +++--- .../{{cookiecutter.project_name}}/hello-world/app.ts | 2 +- .../hello-world/package.json | 9 ++++----- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts b/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts index 5ff1b6a9e..b6976fecc 100644 --- a/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts +++ b/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts @@ -1,6 +1,6 @@ import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda'; {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%} -import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics'; +import { Metrics } from '@aws-lambda-powertools/metrics'; {%- endif %} {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%} import { Logger } from '@aws-lambda-powertools/logger'; diff --git a/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json b/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json index ea3e39fe0..aacc212dd 100644 --- a/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json +++ b/nodejs16.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json @@ -7,9 +7,9 @@ "author": "SAM CLI", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^1.5.1", - "@aws-lambda-powertools/metrics": "^1.5.1", - "@aws-lambda-powertools/tracer": "^1.5.1", + "@aws-lambda-powertools/logger": "^2.0.3", + "@aws-lambda-powertools/metrics": "^2.0.3", + "@aws-lambda-powertools/tracer": "^2.0.3", "esbuild": "^0.17.6" }, "scripts": { diff --git a/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts b/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts index 5ff1b6a9e..b6976fecc 100644 --- a/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts +++ b/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts @@ -1,6 +1,6 @@ import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda'; {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%} -import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics'; +import { Metrics } from '@aws-lambda-powertools/metrics'; {%- endif %} {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%} import { Logger } from '@aws-lambda-powertools/logger'; diff --git a/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json b/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json index 32ab2b29f..06cbeeb71 100644 --- a/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json +++ b/nodejs18.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json @@ -7,9 +7,9 @@ "author": "SAM CLI", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^1.5.1", - "@aws-lambda-powertools/metrics": "^1.5.1", - "@aws-lambda-powertools/tracer": "^1.5.1", + "@aws-lambda-powertools/logger": "^2.0.3", + "@aws-lambda-powertools/metrics": "^2.0.3", + "@aws-lambda-powertools/tracer": "^2.0.3", "esbuild": "^0.17.6" }, "scripts": { diff --git a/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts b/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts index 5ff1b6a9e..b6976fecc 100644 --- a/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts +++ b/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/app.ts @@ -1,6 +1,6 @@ import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda'; {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%} -import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics'; +import { Metrics } from '@aws-lambda-powertools/metrics'; {%- endif %} {%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%} import { Logger } from '@aws-lambda-powertools/logger'; diff --git a/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json b/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json index 2153e2ea5..48e6e7288 100644 --- a/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json +++ b/nodejs20.x/hello-ts-pt/{{cookiecutter.project_name}}/hello-world/package.json @@ -1,5 +1,4 @@ -{ - "name": "hello_world", +2{0 3"name": "hello_world", "version": "1.0.0", "description": "hello world sample for NodeJS", "main": "app.js", @@ -7,9 +6,9 @@ "author": "SAM CLI", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^1.5.1", - "@aws-lambda-powertools/metrics": "^1.5.1", - "@aws-lambda-powertools/tracer": "^1.5.1", + "@aws-lambda-powertools/logger": "^2.0.3", + "@aws-lambda-powertools/metrics": "^2.0.3", + "@aws-lambda-powertools/tracer": "^2.0.3", "esbuild": "^0.17.6" }, "scripts": {