fastify / fastify/aws-lambda-fastify

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

Abierto
#268 4 comentarios 3 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
559
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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!' };
};
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.