All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- Bug where we would attempt to re-process folders when using
processImageFolders
if the main export from this package was called multiple times, even with the same options. - Bug where we would always download an external image, even if we had already done so.
- Bug where options were not reset to defaults bewtween calls to
getPreprocessor
- Optionally process entire folders of images, regardless of image references in your svelte components
- Documented actual behavior of "/" at the start of an image path
- If an image is set to be optimized, but the destination (optimized) file exists, it is skipped
- Broken tests
- Missing
await
inreplaceInImg
- Option for fetching remote images
publicDir
prop for non-Sapper projects
- Lazy prop to enable disabling Waypoint.
class
,placeholderClass
,wrapperClass
props.
- Error message when building AST.
- Filtering out node types before processing.
- Bug where inlining on
<img>
failed and caused missing assets. - Fixed node attributes undefined error. issues/32
- Catch exception when src is not provided.
- Added main.js to included files.
- Fixed reversed srcset. issues/28
- Upgraded svelte.
- Removed smelte from deps.
- Extension filtering.
<img>
tags would incorrectly try to process files that were not processable, such as SVGs. Added an overridable list of file extensions for the image tag and Image Component to check against before attempting to process. - Tests! Added a few tests for the extension filtering.
- Performance optimization: preprocessor won't parse file contents if it doesn't contain image tags.
- Resizing an image that was smaller than any of the given sizes would fail
- Feature: Option for size of potrace placeholder
- Feature: Image/img src may now start with a "/" (and they all probably should)
- Development: tooling to automate releases
- Changelog format update.
- Images smaller than smallest size returning null meta
- Feature: Image processing preserves nested folder structure within /static dir
- Images or imgs without src will not crash the server.
- Bugfix from previous release.
- Changelog
- Improved src checking to allow
<img/>
tags (not<Image/>
components) to use external paths. They will not be processed (as usual), but they also will not crash the server.
- Safari display bug
- Calculate ratio for images passed through Image component
- Styling bug
- Pass options directly to Sharp's
webp
function throughoptions.webpOptions