From 5f7a64be198441cf4ce46e3f862e7abcf1963764 Mon Sep 17 00:00:00 2001 From: Naor Peled Date: Thu, 6 Feb 2025 18:44:06 +0200 Subject: [PATCH 1/2] Revert "feat(types): add TS support for ALB" This reverts commit 1f9c70ccadc8d43fc09f4c1e868bed06aa669454. --- index.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 59f811d..c23ae10 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,4 @@ import { - ALBEvent, - ALBEventRequestContext, APIGatewayEventRequestContext, APIGatewayProxyEvent, APIGatewayProxyEventV2, @@ -165,7 +163,7 @@ export declare class Request { body: any; rawBody: string; route: ''; - requestContext: APIGatewayEventRequestContext | ALBEventRequestContext; + requestContext: APIGatewayEventRequestContext; isBase64Encoded: boolean; pathParameters: { [name: string]: string } | null; stageVariables: { [name: string]: string } | null; @@ -345,12 +343,12 @@ export declare class API { finally(callback: FinallyFunction): void; run( - event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent, + event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: Context, cb: (err: Error, result: any) => void ): void; run( - event: APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBEvent, + event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: Context ): Promise; } From ef382b3182eadf1619119b3e2d7a9deeacb1d63a Mon Sep 17 00:00:00 2001 From: Naor Peled Date: Thu, 6 Feb 2025 18:44:27 +0200 Subject: [PATCH 2/2] chore(release): v1.1.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d68692a..02bef5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "devDependencies": { "@types/aws-lambda": "^8.10.51", diff --git a/package.json b/package.json index 3b46ff5..c04ba70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lambda-api", - "version": "1.1.1", + "version": "1.1.2", "description": "Lightweight web framework for your serverless applications", "main": "index.js", "types": "index.d.ts",