Skip to content

Commit cfa7ae2

Browse files
authored
Merge branch 'master' into feature/acm_certificate_arn
2 parents fc40d25 + 98a0124 commit cfa7ae2

File tree

1,519 files changed

+41904
-97294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,519 files changed

+41904
-97294
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
node-version: ${{ matrix.node-version }}
2727
- run: npm ci
2828
- run: npm test
29+
- run: cp settings.example.yml settings.yml

CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
# Changelog
2-
All notable changes to this project will be documented in this file.
32

4-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3+
## [Unreleased]
4+
5+
### Changed
6+
- ImageRequest exceptions now throw S3Exception instead of generic Error (@marco-primiceri)
7+
- No longer require serverless-apiw-binary and serverless-apigwy-binary (@tyrauber)
8+
- Responses now include a Last-Modified header with the generation time for an image (@tyrauber)
9+
- Security hash is no longer case-sensitive
10+
- Index function now always returns a response to support middleware applications (@tyrauber)
11+
- Lambda timeout increased from default (6 seconds) to 10 seconds
12+
- Improve CI workflow (@dashmug)
13+
- Update to Sharp 0.27.2
14+
15+
### Fixed
16+
- Fix potential issue processing font expectations (@tyrauber)
17+
- Properly capture S3 exceptions (@marco-primiceri)
18+
- pngquant was not working properly
19+
- fit=max was not working properly (@kylecotter)
20+
- Fix config for custom CloudFormation Outputs. (@dashmug)
21+
- Don't process SVGs in format=auto (@kylecotter)
622

723
## [2.0.6] - 2020-05-13
824

data/SCHEMA_SOURCE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The Imgix schema is adapted from this BSD Licensed repository:
2+
https://github.com/imgix/imgix-url-params

docs/deployment.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
# Deployment
22

3+
## New Deployment
34
Ensure your settings yml file is properly configured as shown in the Quick Start and Configuration sections
45

56
Run: `serverless deploy [--stage=dev] [--settings=settings.yml]`
67

78
If you need to deploy using a specific AWS profile, you should run:
89

910
`AWS_SDK_LOAD_CONFIG=true serverless deploy [--stage=dev] [--settings=settings.yml] --aws-profile PROFILE_NAME `
11+
12+
## Deploying Updates
13+
14+
Keeping your Serverless stacks up to date is critical to ensuring you have the fewest bugs and most secure
15+
environment. We follow [Semantic Versioning](https://semver.org/) to help users understand compatibility and changes.
16+
17+
### Updating Serverless Sharp
18+
Start by downloading the latest code that's compatible with your previous version (check your package.json file to
19+
see the current version.)
20+
21+
Once you've downloaded the new version and ensured you've made any necessary configuration changes, you have two
22+
options:
23+
24+
1) You can simply run the standard deployment:
25+
26+
```shell script
27+
sls deploy --settings ./settings.yml --stage <stage>
28+
```
29+
30+
This will deploy the entire application.

lambdaLayers/SharpLayer/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
Reference: https://github.com/lovell/sharp/issues/1702#issuecomment-499331245
1+
The Sharp Lambda Layer is procured from this repository:
2+
https://github.com/bubblydoo/lambda-layer-sharp
23

3-
1. docker run --rm -v "$PWD":/var/task lambci/lambda:build-nodejs12.x npm install sharp
4-
2. Copy new node_modules into nodejs folder
5-
3. In a temporary directory, run `npm install --no-cache --arch=x64 --platform=linux --target=8.10.0 sharp`
6-
4. Locate libvips.so.42.xx.x and libvips-cpp.so.xx.x and copy to lib folder
4+
That repository is automatically updated when a new version of Sharp is released.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/detect-libc

Lines changed: 0 additions & 18 deletions
This file was deleted.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/mkdirp

Lines changed: 0 additions & 33 deletions
This file was deleted.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/prebuild-install

Lines changed: 0 additions & 85 deletions
This file was deleted.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/rc

Lines changed: 0 additions & 4 deletions
This file was deleted.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/semver

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)