diff --git a/package-lock.json b/package-lock.json index 757b75b793..4ee3a8ea62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10743,6 +10743,9 @@ "name": "@aws-lambda-powertools/batch", "version": "2.26.0", "license": "MIT-0", + "dependencies": { + "@aws-lambda-powertools/commons": "2.26.0" + }, "devDependencies": { "@aws-lambda-powertools/parser": "2.26.0", "@aws-lambda-powertools/testing-utils": "file:../testing" diff --git a/packages/batch/package.json b/packages/batch/package.json index 232613b8b8..fbea1a23e2 100644 --- a/packages/batch/package.json +++ b/packages/batch/package.json @@ -80,6 +80,9 @@ "serverless", "nodejs" ], + "dependencies": { + "@aws-lambda-powertools/commons": "2.26.0" + }, "devDependencies": { "@aws-lambda-powertools/testing-utils": "file:../testing", "@aws-lambda-powertools/parser": "2.26.0" diff --git a/packages/batch/src/BasePartialBatchProcessor.ts b/packages/batch/src/BasePartialBatchProcessor.ts index 17537c47d6..4d525dbded 100644 --- a/packages/batch/src/BasePartialBatchProcessor.ts +++ b/packages/batch/src/BasePartialBatchProcessor.ts @@ -1,10 +1,10 @@ +import type { GenericLogger } from '@aws-lambda-powertools/commons/types'; import { getStringFromEnv } from '@aws-lambda-powertools/commons/utils/env'; import type { DynamoDBRecord, KinesisStreamRecord, SQSRecord, } from 'aws-lambda'; -import type { GenericLogger } from '../../commons/lib/esm/types/GenericLogger.js'; import { BasePartialProcessor } from './BasePartialProcessor.js'; import { DATA_CLASS_MAPPING, diff --git a/packages/batch/src/types.ts b/packages/batch/src/types.ts index a160c53e7d..2f2ad880cb 100644 --- a/packages/batch/src/types.ts +++ b/packages/batch/src/types.ts @@ -1,3 +1,4 @@ +import type { GenericLogger } from '@aws-lambda-powertools/commons/types'; import type { StandardSchemaV1 } from '@standard-schema/spec'; import type { Context, @@ -7,7 +8,6 @@ import type { StreamRecord, } from 'aws-lambda'; import type { ZodType } from 'zod'; -import type { GenericLogger } from '../../commons/lib/esm/types/GenericLogger.js'; import type { BasePartialBatchProcessor } from './BasePartialBatchProcessor.js'; import type { BatchProcessor } from './BatchProcessor.js'; import type { parser } from './parser.js'; @@ -111,7 +111,7 @@ type PartialItemFailureResponse = { batchItemFailures: PartialItemFailures[] }; * * You can optionally pass a `logger` for debug and warning messages. * - * @note `innerSchema` supports only Zod schemas, while `schema` supports any Standard Schema-compatible parsing library. + * Note: `innerSchema` supports only Zod schemas, while `schema` supports any Standard Schema-compatible parsing library. * * @property parser - Required when using schema parsing (import from `@aws-lambda-powertools/batch/parser`) * @property schema - Complete event schema (mutually exclusive with innerSchema)