Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vendia/serverless-express

vendia1.5mApache-2.04.12.6TypeScript support: included

This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using your existing Node.js application framework.

aws, serverless, api gateway, lambda, express, koa, hapi, sails, node.js, http

readme

Serverless Express is now part of Code Genie 🎉

Serverless Express has moved to @codegenie/serverless-express. Please update your dependencies to receive the latest changes.

npm uninstall @vendia/serverless-express
npm i @codegenie/serverless-express

changelog

4.10.4 (2023-05-21)

Bug Fixes

4.10.3 (2023-05-08)

Bug Fixes

  • upgrade json5 dependency (f20ec47)

4.10.2 (2023-05-07)

Performance Improvements

  • logger: defer execution of expensive logging calls (#614) (7d42c6d)

4.10.1 (2022-07-26)

Bug Fixes

  • http-function-runtime-v3: fix undeclared variable and added improve tests for set-cookie (#534) (34bd7da)

4.10.0 (2022-07-25)

Features

  • response: added support to Uint8Array (#540) (8b76331)

4.9.0 (2022-06-30)

Features

  • add support for azure function v4 event source (#529) (503c9d0)

4.8.3 (2022-06-30)

Bug Fixes

4.8.2 (2022-06-07)

Bug Fixes

  • azure-function: handle single or multiple cookies at once (#525) (d10f49a)

4.8.1 (2022-06-07)

Bug Fixes

4.8.0 (2022-04-20)

Features

  • add support for azure function v3 event source (#484) (a20cf01)

4.7.1 (2022-04-20)

Bug Fixes

  • remove npm-force-resolutions (9f23265)

4.7.0 (2022-04-19)

Features

4.6.0 (2022-04-19)

Bug Fixes

Features

4.5.4 (2022-02-24)

Bug Fixes

4.5.3 (2022-01-23)

Bug Fixes

4.5.2 (2021-10-14)

Bug Fixes

  • ensure response header value is string type (#474) (cb4b0e8)

4.5.1 (2021-10-13)

Bug Fixes

4.5.0 (2021-10-13)

Features

  • support both enable/disable attribute for multi value headers on ALB (#392) (a5cb5b5)

4.4.0 (2021-10-06)

Features

  • add support for SNS and DynamoDB event sources (#468) (276a6da)

4.3.12 (2021-10-06)

Bug Fixes

  • change workflow to release under 14.x instead of 12.x (#472) (f949200)
  • npm audit fix --force (#469) (35c686c)

4.3.11 (2021-08-31)

Bug Fixes

4.3.10 (2021-08-28)

Bug Fixes

  • fix for non-root proxy+ (45edbfa)

4.3.9 (2021-06-09)

Bug Fixes

4.3.8 (2021-05-31)

Bug Fixes

  • make headers an object instead of an array (#386) (a987fee)

4.3.7 (2021-05-11)

Bug Fixes

4.3.6 (2021-05-11)

Bug Fixes

4.3.5 (2021-05-11)

Bug Fixes

  • fix aws api gateway v2 event source cookies handling (#389) (6e0868c)

4.3.4 (2021-03-03)

Bug Fixes

  • types: enhance accuracy of type definitions (#379) (15e11d2)

4.3.3 (2021-02-25)

Bug Fixes

4.3.2 (2021-02-18)

Bug Fixes

  • default contentEncodings and contentTypes to constants (e0bd86e), closes #373
  • refactor proxy and add deprecation warnings (d50b7e7)

4.3.1 (2021-02-13)

Bug Fixes

4.3.0 (2021-02-08)

Features

  • add backwards compatibility for most of v3 usage (184f63e)
  • serverlessExpress({ app }) can now be used as well as serverlessExpress({ app }).handler (1eb3100)

4.2.0 (2021-02-08)

Features

  • add logSettings to override log level and default log level to error (a0e8bdb), closes #360

4.1.3 (2021-02-04)

Bug Fixes

  • add query strings to lambda@edge (b15a72c)

4.1.2 (2021-02-02)

Bug Fixes

  • only show debug logs in 'development' (ad2cca3)

4.1.1 (2021-02-02)

Bug Fixes

  • only show debug logs in 'development' (b0c4814)

4.1.0 (2021-02-01)

Features

  • add support for additional frameworks other than Express (16628b3)

4.0.0 (2021-02-01)

Bug Fixes

  • audit: npm audit fix (66b03e5)
  • add body parsing for lambda edge event source (116949d)
  • add Promise return type for proxy function (#332) (5b23f3c)
  • change logging to include a log key (542d473)
  • clean up sockets on EADDRINUSE server close (e768599)
  • dependabot alerts (df60394)
  • fix API Gateway V2 header response (90bad18), closes #352
  • fix getRequestValuesFromEvent headers (f915e94)
  • fix Lambda@Edge event source (95b0aa6)
  • fix Lambda@Edge headers and body (aabd9d3)
  • fix remoteAddress undefined on ALB event source (a092233)
  • log actual headers in SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE_PARAMS (72f2ef5)
  • make optional the property binarySettings of ConfigureParams in typings (b08ee87)
  • remove commitlint from travis (7b12e56)
  • remove Node.js 4 support (713ad14)
  • remove Node.js 4 support (e01c9af)
  • remove winston dependency and add basic logger (5bd6c2c)
  • transform lambda edge response headers to lower case (922fec0)
  • transform request header keys to lower case (daa656b)
  • update dependencies (e705bc6)
  • update dependencies (075e15b)
  • update dependencies (39c55eb)

Features

  • add additional event mapping logic (e5909b5)
  • add custom mapping example (fe99c85)
  • add HTTP API (APIGW-V2) event source (60cb8e1)
  • add lambda edge support and example (230c9c5)
  • add logger (e35a348)
  • add multiValueHeader and multiValueQueryStringParameters (7199aa5)
  • add respondWithErrors config (53cf974)
  • add stripBasePath for custom domain names (3a5c7ed)
  • auto-detect binary response and add binarySettings (64a99dc)
  • call Express directly instead of via a proxy server running on a local socket (a468c72)
  • lay groundwork for different event sources (2db86f2)
  • refactor and expose a new interface (7de5d45)
  • remove middleware and expose getCurrentLambdaInvoke method (b56c13b)
  • use multiValueHeaders for requests and responses (c5ce62f)
  • use promise resolution by default (a9c01a3)

BREAKING CHANGES

  • The new interface is backwards incompatible and includes new and simpler ways of configuring and using the package.

3.3.5 (2018-08-20)

Bug Fixes

3.3.4 (2018-08-19)

Bug Fixes

  • update example to use 3.3.3 (bc7bdaf)

3.3.3 (2018-08-16)

Bug Fixes

  • add src/ to package.json files (a412ec7)

3.3.0 (2018-08-16)

Features

  • add option of specifying resolveMode (#173) (582b88d)