Releases: Josh-McFarlin/remix-image
Releases · Josh-McFarlin/remix-image
Release 0.3.15
Fix
- Verify resolvers throw errors on empty result and error is thrown on failed transformations
Changed
- Simplify loader implementation for easier readability
- Move resolver error throwing from loader into resolver
Release 0.3.14
Fix
- Retrieve content type for cached assets
Changed
- Replaced built-in LRU cache with npm package
lru-cache
Release 0.3.13
Fix
- Remove
remix-image
from dependencies (added accidentally through automation)
Release 0.3.12
Fix
- Update
js-image-lib
to fix incorrect size used for resizing
Changed
- Replaced
utif
withdecode-tiff
for smaller size - Update
mime-tree
to0.1.4
to fix incorrect mime detection
Release 0.3.11
Added
- Added
basePath
property toLoaderConfig
andResolver
to allow custom base paths for assets
Changed
- Replaced
hybrid-disk-cache
package with the updated version@next-boost/hybrid-disk-cache
Documentation
- Added Vercel deployment example
- Replaced functions in examples with best practices (file cache, sharp)
Release 0.3.10
Documentation
- Mark package as side-effect free
Release 0.3.9
Changed
- Replaced built-in
pureTransformer
code with the libraryjs-image-lib
(which is the same code, but moved to its own library for better developer experience.) - Replaced built-in mime type detector code with the library
mime-tree
Release 0.3.8
Added
- Added
crop
parameter toTransformOptions
to allow cropping of images. - Added
flip
parameter toTransformOptions
to allow mirroring of images. - Added
rotation
parameter toTransformOptions
to allow rotation of images. - Added
blurRadius
parameter toTransformOptions
to allow Gaussian blur of images.
Release 0.3.7
Added
- Added
options
parameter to resolver type to enable external API transformations
Release 0.3.6
Added
- Added an optional
fallbackTransformer
parameter toLoaderConfig
. Set topureTransformer
by default, this option lets you choose which transformer the loader will fall back to if your custom transformer fails or if the content type is not supported. - Added an optional
skipFormats
parameter toLoaderConfig
. This is a set of mime types that should be returned without transformation. Defaults toSet([MimeType.SVG])
.
Changed
- Made
null
a valid option for thetransformer
parameter ofLoaderConfig
. If this parameter is set to null, image transformation will be skipped.
Docs
- Added documentation for
LoaderConfig
parameters:defaultOptions
,redirectOnFail
, andskipFormats
. - Added default (
pureTransformer
) supported file types to documentation.