Skip to content

Commit 40ef2af

Browse files
author
apoca
committed
new version 2.0
2 parents 22782cd + 9d13f2e commit 40ef2af

File tree

17 files changed

+11145
-15712
lines changed

17 files changed

+11145
-15712
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: node_js
22

33
node_js:
4-
- '8'
4+
- '10'
5+
- '12'
56

67
install:
78
- npm install

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.0.0] - 2020-04-30
11+
12+
### Changed
13+
14+
- Fixed a lot of vulnerabilities
15+
- Updated handler.js to return binary images not redirects
16+
- Updated webpack.config.js to better "bundle" the package to Lambda AWS amazon
17+
- Improved serverless.yml
18+
1019
## [1.3.3] - 2019-04-24
1120

1221
### Changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,21 @@ An AWS Lambda Function to resize images automatically with API Gateway and S3 fo
3535

3636
## Requirements
3737

38-
- Node.js - AWS Lambda supports versions of **8.10** or above.
38+
- Node.js - AWS Lambda supports versions of **10.20.1** or above (Recommended: **12.X**).
39+
40+
## New version 2.0
41+
42+
We've changed our approache to remove redirects from our responses. Then, we are returning a binary file base 64 image file.
43+
44+
### Steps to version 2.0
45+
46+
You must have AWS CLI installed to execute a command from your console:
47+
48+
`aws apigateway update-integration-response --rest-api-id <API_ID> --resource-id <RESOURCE_ID> --http-method GET --status-code 200 --patch-operations '[{"op" : "replace", "path" : "/contentHandling", "value" : "CONVERT_TO_BINARY"}]'`
49+
50+
In API GW -> Settings -> Binary Media Types and add:
51+
52+
`*/*`
3953

4054
## What is it?
4155

@@ -137,7 +151,7 @@ or with you own Custom Domain Names:
137151

138152
## Environment variables
139153

140-
- URL - AWS URL S3 bucket or your CDN url to the BUCKET. (required)
154+
- URL - AWS URL S3 bucket or your CDN url to the BUCKET. (not required in version 2.0)
141155
- BUCKET - AWS S3 bucket. (required)
142156

143157
### Environment variables for serverless

0 commit comments

Comments
 (0)