diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ef1247..0d4b8c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ +# 0.3.0 (13.03.2018) +- Support for SNS events + # 0.2.0 (08.03.2018) -- Replace reference to Lambda function `$Latest` version for alias in `EventSourceMapping` resources +- Support for Stream based events (Kinesis and DynamoDB Streams) - Add end-to-end tests # 0.1.0 (24.02.2018) diff --git a/lib/CfTemplateGenerators/Sns.js b/lib/CfTemplateGenerators/Sns.js index e4d9860..382d611 100644 --- a/lib/CfTemplateGenerators/Sns.js +++ b/lib/CfTemplateGenerators/Sns.js @@ -8,7 +8,7 @@ function replaceTopicSubscriptionFunctionWithAlias(snsTopic, functionAlias, func return funcName ? funcName === functionName : false; }; - const restOfSubscriptions = subscriptions.filter(subscription => !isTargetSubscription(subscription)); + const restOfSubscriptions = subscriptions.filter(s => !isTargetSubscription(s)); const subscriptionWithAlias = { Endpoint: { Ref: functionAlias }, Protocol: 'lambda' }; const newSubscriptions = [...restOfSubscriptions, subscriptionWithAlias]; diff --git a/package.json b/package.json index 1f02ee8..c11c047 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-plugin-canary-deployments", - "version": "0.2.0", + "version": "0.3.0", "description": "A Serverless plugin to implement canary deployment of Lambda functions", "main": "serverless-plugin-canary-deployments.js", "scripts": { @@ -8,6 +8,7 @@ "watch": "NODE_ENV=test ./node_modules/mocha/bin/mocha -w $(find ./ -name '*.test.js' -not -path '*/node_modules/*')" }, "author": "David GarcĂ­a ", + "contributors": ["Carlos Castellanos (https://github.com/ccverak/)"], "license": "ISC", "repository": { "url": "https://github.com/davidgf/serverless-plugin-canary-deployments.git",