🚀 Project Update:

Lambda API: v0.3.0 released

A couple of late nights and some research into typical serverless use cases has yielded some pretty cool new features. v0.3 takes another step forward toward becoming a full-featured web framework for serverless applications. ⚡🤘🏻

Breaking Change 😲

There is a breaking change in v0.3 that was necessary to add flexibility with future releases. Lambda API takes advantage of ES6 Classes and was initially requiring the new keyword in order to instantiate an instance. This has been change so that lambda-api now returns a function instead of a Class. This means it can be instantiated in one line now with the ability to pass options as well.

If you have functions that are instantiating Lambda API with the new keyword, you will need to either remove new or switch to the one-line instantiation method. I don’t expect any more breaking changes before v1.

JSONP Support

You can now use the jsonp() convenience method to return JSON content wrapped in a callback. Support has been added to allow callback specification through a customizable query parameter.

Cookie Support

Lambda API now has convenience methods for setting and clearing cookies. In addition, non-string values are automatically serialized and encoded, allowing you to easily store JSON strings, arrays, and more in cookies. The REQUEST object now has the cookies property that reads, parses, and decodes cookies for you.

Release Notes:

Feature Update

v0.3 of Lambda API adds additional features to handle more serverless application use case including JSONP support and cookie management.

There is also a breaking change in this release that requires a minor update to the way Lambda API is instantiated. This is to ensure future flexibility with the framework.

Full Release Notes: https://github.com/jeremydaly/lambda-api/releases/tag/v0.3.0

NPM: https://www.npmjs.com/package/lambda-api
GitHub: 
https://github.com/jeremydaly/lambda-api

Tags: , , , ,


Did you like this post? 👍  Do you want more? 🙌  Follow me on Twitter or check out some of the projects I’m working on. You can sign up for my WEEKLY newsletter too. You'll get links to my new posts (like this one), industry happenings, project updates and much more! 📪

Sign Up for my WEEKLY email newsletter


I respect your privacy and I will NEVER sell, rent or share your email address.

Learn more about Lambda API or check out the other projects I'm working on.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.