serverless-autoprune-plugin
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -295,4 +295,4 @@ 'use strict'; | ||
return BbPromise.join( | ||
persistentRequest( () => _this.aws.request('Lambda', 'listAliases', { FunctionName: lambdaName }, _this.evt.options.stage, _this.evt.options.region) ), | ||
persistentRequest( () => _this.aws.request('Lambda', 'listVersionsByFunction', { FunctionName: lambdaName }, _this.evt.options.stage, _this.evt.options.region) ) | ||
persistentRequest( () => _this.aws.request('Lambda', 'listAliases', { FunctionName: lambdaName }, _this.evt.options.stage, region) ), | ||
persistentRequest( () => _this.aws.request('Lambda', 'listVersionsByFunction', { FunctionName: lambdaName }, _this.evt.options.stage, region) ) | ||
).spread((aliases, versions) => { | ||
@@ -340,3 +340,3 @@ S.utils.sDebug( `Pruning ${func.name}, found ${aliases.Aliases.length} aliases and ${versions.Versions.length} versions` ); | ||
Qualifier: v.Version | ||
}, _this.evt.options.stage, _this.evt.options.region) ); | ||
}, _this.evt.options.stage, region) ); | ||
} | ||
@@ -343,0 +343,0 @@ else { |
{ | ||
"name": "serverless-autoprune-plugin", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=4.0" |
@@ -78,4 +78,8 @@ # serverless-autoprune-plugin | ||
### 0.2.1 | ||
* You can run the plugin without specifying a target region now. It will automatically prune | ||
your Lambda functions in all deployed regions. | ||
### 0.2.0 | ||
* Finally the plugin deserves it's name: Auto-Pruning! Passin in `--prune` to your | ||
* Finally the plugin deserves it's name: Auto-Pruning! Passing `--prune` to your | ||
`serverless function deploy` will automatically delete previous Lambda versions. | ||
@@ -98,3 +102,2 @@ * Handle AWS Rate Limit responses using a temporary fix until Serverless 0.5.6 is released | ||
### To Dos | ||
* Optionally prune during `function deploy` | ||
* Pruning of API Gateway Deploments (https://github.com/Nopik/serverless-lambda-prune-plugin/pull/6) | ||
* Pruning of API Gateway Deployments (https://github.com/Nopik/serverless-lambda-prune-plugin/pull/6) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13789
102
0