Serverless image optimizer for S3, Lambda, and Cloudfront
Notable changes include changing Lambda runtime to Node 14 and updating Sharp
Syncing up versions - no functional changes.
Fix tests & npm doesn't like patch versions.
SLS_VALID_PATH_REGEX
setting to explicitly control what paths are allowed (Thanks @bs-thomas) (#52)DEFAULT_CACHE_CONTROL
to allow settings a cache control value when one isn't set on the source objectsettings.js
helperar
param, allowing an aspect ratio (16:9) to be suppliedencodeURIComponent
on each part of the requested URL, we are now calling a modified encodeURIComponent
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
SLS_IGNORE
with default value of favicon.ico