⚠️ Deprecated AWS Lambda Runtime - please use https://github.com/swift-server/swift-aws-lambda-runtime instead
This is release brings support for Swift 5.2.
Thanks so much to @alfavata for moving this forward.
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.
LambdaRuntimeTestUtils
Use this target to create your own Invocation
and Context
for testing (#21, #20) Thanks so much @mr-j-tree for your contribution.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)DecodableBody
protocol. The payload method in APIGatway.Request and SNS.Message is now deprecated and will be removed before 1.0.0
. (#19 #17)S3.Event
(#14, #18)This release improves the number of ready to use events. Please try them out.
Added the following Event types (#5):
Improvements to:
Added multi purpose type:
Improved documentation (#12). Thanks @mr-j-tree and welcome to this effort!
This Version changes everything. Sorry. But growing up always comes with a pain.
swift-lambda-runtime
. The library is now called LambdaRuntime
(#11)_HANDLER
swift-base64-kit
has been added as a dependency to support future Event types.The very first release! Feedback highly welcome.