Skip to content

Commit f4592b2

Browse files
committed
update libraries
1 parent d8b6576 commit f4592b2

File tree

4 files changed

+42
-46
lines changed

4 files changed

+42
-46
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ dist
6262

6363
# coverage
6464
coverage
65+
66+
.vscode

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
<img src="https://flat.badgen.net/packagephobia/install/serverless-prune-versions"></a>
1515
<a href="https://www.npmjs.com/package/serverless-prune-versions">
1616
<img src="https://flat.badgen.net/npm/license/serverless-prune-versions"></a>
17-
</p>
18-
19-
<p align="center">
17+
<br/>
2018
<a href="https://circleci.com/gh/manwaring/serverless-prune-versions">
2119
<img src="https://flat.badgen.net/circleci/github/manwaring/serverless-prune-versions/master?icon=circleci"></a>
2220
<a href="https://flat.badgen.net/dependabot/manwaring/serverless-prune-versions">
@@ -25,6 +23,7 @@
2523
<img src="https://flat.badgen.net/david/dep/manwaring/serverless-prune-versions"></a>
2624
<a href="https://david-dm.org/manwaring/serverless-prune-versions?type=dev">
2725
<img src="https://flat.badgen.net/david/dev/manwaring/serverless-prune-versions/?label=dev+dependencies"></a>
26+
<img height="0" width="0" src="https://b7z7o7y5fi.execute-api.us-east-1.amazonaws.com/v1/readme/visits/github/manwaring/serverless-prune-versions?style=flat-square">
2827
</p>
2928

3029
# Serverless prune versions
@@ -37,15 +36,15 @@ _Feedback appreciated! If you have an idea for how this library can be improved
3736

3837
# Overview
3938

40-
This plugin for the Serverless Framework removes old versions of AWS Lambda functions - important because if left to it's own devices each time the Serverless Framework is used to update your Lambda or Lambda Layer code in AWS it creates a new version. But if you aren't using the old versions then no harm, no foul - right? Unfortunately not, because for each and every version that's created AWS Lambda stores the source code used by that version for you - and there's a hard limit of only 75GB available per account for storage of this source code. By removing old versions this plugin keeps you from hitting this storage limit, letting you worry about features instead of account limits.
39+
This plugin for the Serverless Framework removes old versions of AWS Lambda functions - important because if left to it's own devices each time the Serverless Framework is used to update your Lambda or Lambda Layer code in AWS it creates a new version. But if you aren't using the old versions then no harm, no foul - right? Unfortunately not, because for each and every version that's created AWS Lambda stores the source code used by that version for you, and there's a hard limit of only 75GB available per account for storage of this source code. By removing old versions this plugin keeps you from hitting this storage limit, letting you worry about features instead of account limits.
4140

4241
# Installation and setup
4342

44-
Install the plugin as a dev dependency in your project
43+
Install the plugin as a dev dependency in your project:
4544

4645
`npm i serverless-prune-versions -D` or `yarn add serverless-prune-versions -D`
4746

48-
Add the plugin to the `plugins` block of your `serverless.yml` file
47+
Add the plugin to the `plugins` block of your `serverless.yml` file:
4948

5049
```yml
5150
plugins:
@@ -56,7 +55,7 @@ plugins:
5655
5756
Because this plugin will delete deployed versions of your Lambda functions it is disabled by default and you must explicitly enable it.
5857
59-
This plugin uses the following default configuration
58+
This plugin uses the following default configuration:
6059
6160
| Property | Description | Default value |
6261
| -------------- | ---------------------------------------------------------------------------------- | ------------- |
@@ -65,7 +64,7 @@ This plugin uses the following default configuration
6564
| Number | Numeric, how many versions to retain | `5` |
6665

6766

68-
All properties can be changed by overriding values in the `custom` block of your `serverless.yml`. In this example the plugin will automatically run after every deployment and will remove all Lambda and Lambda Layers except for the 3 most recent.
67+
All properties can be changed by overriding values in the `custom` block of your `serverless.yml`. In this example the plugin will automatically run after every deployment and will remove all Lambda and Lambda Layer versions except for the 3 most recent.
6968

7069
```yml
7170
custom:
@@ -75,12 +74,10 @@ custom:
7574
number: 3
7675
```
7776

78-
This is the minimal configuration needed for the plugin to run automatically after every deployment - it will only remove Lambda versions (not Lambda Layer versions) and will retain the last 5 versions since those defaults weren't overriden.
77+
This is the minimal configuration needed for the plugin to run automatically after every deployment - it will only remove Lambda versions (not Lambda Layer versions) and will retain the last 5 versions (since those defaults weren't overriden).
7978

8079
```yml
8180
custom:
8281
prune:
8382
automatic: true
8483
```
85-
86-
<img height="0" src="https://b7z7o7y5fi.execute-api.us-east-1.amazonaws.com/v1/readme/visits/github/manwaring/serverless-prune-versions?style=flat-square">

package-lock.json

Lines changed: 29 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-prune-versions",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Serverless plugin to delete old versions of deployed functions from AWS",
55
"scripts": {
66
"build": "rimraf dist && tsc -p tsconfig.build.json",
@@ -15,10 +15,10 @@
1515
"@babel/preset-env": "^7.11.5",
1616
"@babel/preset-typescript": "^7.10.4",
1717
"@types/jest": "^26.0.13",
18-
"@types/node": "^14.6.4",
18+
"@types/node": "^14.10.1",
1919
"babel-jest": "^26.3.0",
2020
"codecov": "^3.7.2",
21-
"husky": "^4.2.5",
21+
"husky": "^4.3.0",
2222
"jest": "^26.4.2",
2323
"publish-please": "^5.5.1",
2424
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)