diff --git a/package-lock.json b/package-lock.json index 56508937ae..e1f04db56c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "markdownlint-cli2": "^0.15.0", "middy4": "npm:@middy/core@^4.7.0", "middy5": "npm:@middy/core@^5.4.3", + "middy6": "npm:@middy/core@^6.0.0", "typedoc": "^0.26.11", "typedoc-plugin-missing-exports": "^3.0.2", "typedoc-plugin-zod": "^1.2.1", @@ -9795,6 +9796,21 @@ "url": "https://github.com/sponsors/willfarrell" } }, + "node_modules/middy6": { + "name": "@middy/core", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@middy/core/-/core-6.0.0.tgz", + "integrity": "sha512-EFsvMkyFfaIu3Uzye26w2NzycwMAbh/99XlhRH9p240y/YKA0nlQ7itE8y7lBJOJ/clj1qu9evQeLfaiWhJAFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/willfarrell" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -14926,7 +14942,7 @@ "peerDependencies": { "@aws-sdk/client-dynamodb": ">=3.x", "@aws-sdk/lib-dynamodb": ">=3.x", - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@aws-sdk/client-dynamodb": { @@ -14961,7 +14977,7 @@ "@types/lodash.merge": "^4.6.9" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { @@ -14983,7 +14999,7 @@ "promise-retry": "^2.0.1" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { @@ -15014,7 +15030,7 @@ "@aws-sdk/client-secrets-manager": ">=3.x", "@aws-sdk/client-ssm": ">=3.x", "@aws-sdk/util-dynamodb": ">=3.x", - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@aws-sdk/client-appconfigdata": { @@ -15046,7 +15062,7 @@ "@faker-js/faker": "^9.0.2" }, "peerDependencies": { - "@middy/core": "4.x || 5.x", + "@middy/core": "4.x || 5.x || 6.x", "zod": ">=3.x" }, "peerDependenciesMeta": { @@ -15089,7 +15105,7 @@ "@aws-sdk/client-xray": "^3.699.0" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { diff --git a/package.json b/package.json index 7280bf8296..5fd9902ec3 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "markdownlint-cli2": "^0.15.0", "middy4": "npm:@middy/core@^4.7.0", "middy5": "npm:@middy/core@^5.4.3", + "middy6": "npm:@middy/core@^6.0.0", "typedoc": "^0.26.11", "typedoc-plugin-missing-exports": "^3.0.2", "typedoc-plugin-zod": "^1.2.1", diff --git a/packages/idempotency/package.json b/packages/idempotency/package.json index cc90b79798..50cd7331b6 100644 --- a/packages/idempotency/package.json +++ b/packages/idempotency/package.json @@ -104,7 +104,7 @@ "peerDependencies": { "@aws-sdk/client-dynamodb": ">=3.x", "@aws-sdk/lib-dynamodb": ">=3.x", - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@aws-sdk/client-dynamodb": { diff --git a/packages/idempotency/tests/e2e/makeHandlerIdempotent.test.FunctionCode.ts b/packages/idempotency/tests/e2e/makeHandlerIdempotent.test.FunctionCode.ts index 44addbf10f..7358697039 100644 --- a/packages/idempotency/tests/e2e/makeHandlerIdempotent.test.FunctionCode.ts +++ b/packages/idempotency/tests/e2e/makeHandlerIdempotent.test.FunctionCode.ts @@ -1,5 +1,5 @@ import { Logger } from '@aws-lambda-powertools/logger'; -import middy from '@middy/core'; +import middy from 'middy6'; import type { Context } from 'aws-lambda'; import { IdempotencyConfig } from '../../src/IdempotencyConfig.js'; import { makeHandlerIdempotent } from '../../src/middleware/makeHandlerIdempotent.js'; diff --git a/packages/logger/package.json b/packages/logger/package.json index fecc0cdba9..7604685782 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -68,7 +68,7 @@ "@types/lodash.merge": "^4.6.9" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { diff --git a/packages/metrics/package.json b/packages/metrics/package.json index 62170a8c2a..1201f1192f 100644 --- a/packages/metrics/package.json +++ b/packages/metrics/package.json @@ -70,7 +70,7 @@ "promise-retry": "^2.0.1" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { diff --git a/packages/parameters/package.json b/packages/parameters/package.json index 4208521b5a..93a2e3eabc 100644 --- a/packages/parameters/package.json +++ b/packages/parameters/package.json @@ -173,7 +173,7 @@ "@aws-sdk/client-secrets-manager": ">=3.x", "@aws-sdk/client-ssm": ">=3.x", "@aws-sdk/util-dynamodb": ">=3.x", - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": { diff --git a/packages/parser/package.json b/packages/parser/package.json index 6a74b75836..a504e15cc2 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -357,7 +357,7 @@ "nodejs" ], "peerDependencies": { - "@middy/core": "4.x || 5.x", + "@middy/core": "4.x || 5.x || 6.x", "zod": ">=3.x" }, "peerDependenciesMeta": { diff --git a/packages/tracer/package.json b/packages/tracer/package.json index ae91c1c264..6b0aa48a4a 100644 --- a/packages/tracer/package.json +++ b/packages/tracer/package.json @@ -34,7 +34,7 @@ "@aws-sdk/client-xray": "^3.699.0" }, "peerDependencies": { - "@middy/core": "4.x || 5.x" + "@middy/core": "4.x || 5.x || 6.x" }, "peerDependenciesMeta": { "@middy/core": {