Swift Lambda Runtime Versions Save

⚠️ Deprecated AWS Lambda Runtime - please use https://github.com/swift-server/swift-aws-lambda-runtime instead

v0.6.0

4 years ago

This is release brings support for Swift 5.2.

Thanks so much to @alfavata for moving this forward.

v0.5.0

4 years ago

Breaking change

Renamed the class LambdaRuntime to just Runtime. Since we used LambdaRuntime for the library as well as the main class LambdaRuntime there was no way for the compiler to know if we speak about the class or the namespace. Therefore using the swift namespace was completely broken. (#26)

I was made aware of the problem here: https://github.com/fabianfett/swift-lambda-runtime/pull/25

This also needs to be fixed in swift-aws-sdk: https://github.com/swift-aws/aws-sdk-swift/issues/218

With LambdaRuntime and AWSSDKSwift working in the same problem space, issues are very likely in the room of naming. For this reason this needs to be addressed as soon as possible, which is why I decided to do the breaking sooner rather than later.

v0.4.0

4 years ago
  • New Library: LambdaRuntimeTestUtils Use this target to create your own Invocation and Context for testing (#21, #20) Thanks so much @mr-j-tree for your contribution.
  • New Library: LambdaEvents All predefined events now live here. They are imported into LambdaRuntime with the @_exported keyword. Therefore it is not necessary as a consumer of LambdaRuntime to also import LambdaEvents. (#22, #15)
  • Body parsing in multiple events is now implemented through the DecodableBody protocol. The payload method in APIGatway.Request and SNS.Message is now deprecated and will be removed before 1.0.0. (#19 #17)
  • New supported event: S3.Event (#14, #18)
  • Renamed examples folder (it is now lowercase)

v0.3.0

4 years ago

This release improves the number of ready to use events. Please try them out.

Added the following Event types (#5):

  • ALB Event
  • Cloudwatch Event
  • SQS Event
  • SNS Event
  • DynamoDB Event

Improvements to:

  • APIGateway handling

Added multi purpose type:

  • Added AWSNumber (Thanks for the idea @ro-m.)

Improved documentation (#12). Thanks @mr-j-tree and welcome to this effort!

v0.2.0

4 years ago

This Version changes everything. Sorry. But growing up always comes with a pain.

  • New package name: swift-lambda-runtime. The library is now called LambdaRuntime (#11)
  • The Runtime now only has one handler function. This is more in line with the go sdk. The developer still has the option to specify different handler methods by using the env variable _HANDLER
  • The runtime is now intended to be used with the amazonlinux-swift project. That is why the makefile to extract Swift libraries from the Ubuntu Swift Dockerimage has been removed.
  • swift-base64-kit has been added as a dependency to support future Event types.
  • It is possible now to not return a result from the function (#10)
  • The synchronous interface has been removed.
  • The documentation has been changed to reflect the changes.
  • The documentation explains how to create a development image (#9)

v0.1.0

4 years ago

The very first release! Feedback highly welcome.