yarn serverless 0.1.3
v0.1.3

latest releases: 4.4.10, 4.4.9, 4.4.8...
8 years ago

No breaking changes. We are committed to not introducing any further breaking changes for several months.

Updates

Templates

You can now specify templates in your project root folder by creating files that start with s-template.... For example, you can have project/s-templates-cloudFormation.json or project/s-templates-apiGateway.json. You can still have templates in the root of your module folders. However, this syntax is no longer supported for module-level templates $${moduleName.template}. Instead, you specify both Project and Module templates like this: $${template}. If a template key is duplicated in a Project template and a Module template, the module template will not replace, but extend the project level template, increasing reusability and customization. The documentation on this has been updated on our website.

ServerlessState

Added a setAsset() method which allows you to automagically pass in an instance of a Project, Component, Module, Function or Endpoint and it will set it in the right location of the project instance that is within the state instance. /cc @ryansb @joostfarla

DashDeploy

You can now use this in your project's root folder. It shows different content depending on which folder you are in.

StageCreate, RegionCreate

Automatically deploy resources on creation (like we used to).

Region ENV Variable

A SERVERLESS_REGION variable is now auto-created whenever you create a new Stage/Region

Bug Fixes

  • Improved readability for people using terminals with white backgrounds
  • Runtime properties have been removed from s-function.json and s-module.json

Other Notes

Serverless-Starter

Serverless Projects are now shareable and this is the first. Serverless-Starter is a simple boilerplate project that showcase a couple different ways you can organize your REST API. It's also preloaded with the Optimizer plugin and other useful things like templates.

Serverless-Optimizer-Plugin

The babel support has been finished. You can now use the serverless-optimizer-plugin to bring ES6 to your Lambda functions via Babel!

Don't miss a new serverless release

NewReleases is sending notifications on new releases.