AWS Lambda plans to remove support for callback-based function handlers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- aws, javascript, node.js
Direzione di ricerca
La issue non indica file sorgente, test o punti di ingresso. Inizia individuando dove viene invocato il Lambda handler e come vengono rilevati o supportati gli handler in stile callback, quindi verifica le aspettative del runtime Node 24. Il lavoro è completato quando il percorso dell’handler pertinente usa valori restituiti async senza dipendere dalla sintassi callback, con una copertura per l’esempio documentato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
exports.handler = (event, context, callback) => {
// ... handler logic
callback(null, { statusCode: 200, body: 'Success!' });
};
to:
export const handler = async (event, context) => {
// ... handler logic
return { statusCode: 200, body: 'Success!' };
};
- Lingua principale
- JavaScript
- Stelle
- 560
- Fork
- 37
- Merge medio
- 20h 37m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fastify/aws-lambda-fastify
-
bug question
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
fastify/aws-lambda-fastify#254 · 9 commenti ·
-
Use with NestJSApertaquestion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
fastify/aws-lambda-fastify#115 · 22 commenti ·
-
Support for Lambda@EdgeApertaenhancement question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
fastify/aws-lambda-fastify#60 · 3 commenti · 2 reazioni ·
Tutte le issue di fastify/aws-lambda-fastify
Issue simili
-
bug(sight): the dashboard's text truncations split surrogate pairs and show broken charactersApertacomponent:sight
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agentic-os-org/ANOLISA#6738 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
mastra-ai/mastra#26470 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
feature/cohorts feature/feature-flags team/feature-flags
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Orbit-xyz/orbit-docs#11 ·
-
area/build area/tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni