- ImageRequest exceptions now throw S3Exception instead of generic Error (@marco-primiceri)
- No longer require serverless-apiw-binary and serverless-apigwy-binary (@tyrauber)
- Responses now include a Last-Modified header with the generation time for an image (@tyrauber)
- Security hash is no longer case-sensitive
- Index function now always returns a response to support middleware applications (@tyrauber)
- Lambda timeout increased from default (6 seconds) to 10 seconds
- Improve CI workflow (@dashmug)
- Fix potential issue processing font expectations (@tyrauber)
- Properly capture S3 exceptions (@marco-primiceri)
- pngquant was not working properly
- fit=max was not working properly (@kylecotter)
- Fix config for custom CloudFormation Outputs. (@dashmug)
- Fixed bug where an image that is rotated with EXIF data loses its rotation (#67)
No changes
No changes
- Fixed bug with Serverless not excluding dev-dependencies and failing to deploy due to large file size
- Fixed bug with Sharp binaries (Thanks @bs-thomas) (#63)
- Started new docs!
- Add
SLS_VALID_PATH_REGEX
setting to explicitly control what paths are allowed (Thanks @bs-thomas) (#52) - Add support for deploying to custom region (#61)
- Added support for SSL & custom domain (Thanks @bs-thomas) (#47)
- Added
DEFAULT_CACHE_CONTROL
to allow settings a cache control value when one isn't set on the source object - Added
settings.js
helper
- Error that could occur when cropping via focalpoint and a non-integer is encountered
- Errors would always return 500 instead of correct error code (#45)
- Update platform from Node 10 to Node 12 (#59)
- Update Sharp from 0.23.4 to 0.25.2
- The proper response code is now returned on error
- checkHash now throws a 400 HashException when a security hash is not present
- Update Standard from 14.3.1 to 14.3.3
- Update Serverless from 1.60.5 to 1.69.0
- Update serverless-offline from 5.12.1 to 6.1.4
- Update Jest from 24.9.0 to 25.5.4
- Update aws-sdk from 2.600.0 to 2.668.0
- Update aws-sdk-mock from 4.5.0 to 5.1.0
- Improved speed of input buffering for
pngquant
by skipping compression
pngquant
speed can now be configured in settings, defaults to fastest speed
fill-color
for hex color codes now supports 3-,4-,6-, and 8-digit formats- Incoming image size limitations can now be configured and enforced with environment variables, preventing large images from timing out
- Sharp is now bundled as its own layer, removing the need for swapping between platforms for local development
- Updated to latest version of Sharp (0.23.4)
- Added support for
ar
param, allowing an aspect ratio (16:9) to be supplied
- Fixed a potential bug with automatic webp formatting in non-webp-supporting browsers
- A breaking change has been introduced in the way URLs are generated. Previously we were calling
encodeURIComponent
on each part of the requested URL, we are now calling a modifiedencodeURIComponent
that excludes some characters to be compliant with Imgix's official php SDK:
$path = preg_replace_callback("/([^\w\-\/\:@])/", function ($match) {
return rawurlencode($match[0]);
}, $path);
See https://locutus.io/php/url/rawurlencode/ for details
- Added environment variable
SLS_IGNORE
with default value offavicon.ico
- Issue with Imgix compatibility regarding URL encoding. See Changed section
- Added support for
dpr
- Updated dependencies
- Added MIT license
- Values outside of explicit rule min and max will now normalize to that min or max
- Fixed an error in RegEx hex color matching that could cause some colors to fail (#0000)
- Initial stable release
- Update Imgix schema 11.0.0 -> 11.1.1
- Security will now allow images without security hashes to passthrough if there are no edits
- Fixed issue where errors wouldn't properly pass-through to image
- Changelog
- Dropped support for the
MAX_OUTPUT_HEIGHT
andMAX_OUTPUT_WIDTH
to better adhere to the schema.json spec - Remove unused dependency
serverless-plugin-simulate
to resolve security issue
- Ensure all file extensions are switched to lowercase before processing