FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

AWS Lambda plans to remove support for callback-based function handlers · Issue #268 · fastify/aws-lambda-fastify · GitHub

Repository navigation

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

Description

Motivation

Ref: aws/aws-lambda-nodejs-runtime-interface-client#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!' };
};

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL