fastify / fastify/aws-lambda-fastify

AWS Lambda plans to remove support for callback-based function handlers

オープン
#268 コメント 4 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
559
フォーク
37
PR マージ指標
30日以内にマージされた PR はありません

説明

### Motivation

Ref: https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/137

Callback handler syntax is being deprecated for the new Node 24 Lambda runtime and should be replaced with the async syntax.

I didn't see any open issues or PRs related to this, apologies if this is duplicative or if there is already an option to change this behavior under the hood. Otherwise, if nobody else is working on this I can give it a shot.

### Example

```ts
exports.handler = (event, context, callback) => {
// ... handler logic
callback(null, { statusCode: 200, body: 'Success!' });
};
```
**to:**
```ts
export const handler = async (event, context) => {
// ... handler logic
return { statusCode: 200, body: 'Success!' };
};
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。