Skip to content

Releases: Josh-McFarlin/remix-image

Release 0.3.15

01 Mar 19:28
Compare
Choose a tag to compare

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

23 Feb 20:23
Compare
Choose a tag to compare

Fix

  • Retrieve content type for cached assets

Changed

  • Replaced built-in LRU cache with npm package lru-cache

Release 0.3.13

23 Feb 03:36
Compare
Choose a tag to compare

Fix

  • Remove remix-image from dependencies (added accidentally through automation)

Release 0.3.12

23 Feb 03:32
Compare
Choose a tag to compare

Fix

  • Update js-image-lib to fix incorrect size used for resizing

Changed

  • Replaced utif with decode-tiff for smaller size
  • Update mime-tree to 0.1.4 to fix incorrect mime detection

Release 0.3.11

22 Feb 20:46
Compare
Choose a tag to compare

Added

  • Added basePath property to LoaderConfig and Resolver 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

18 Feb 04:31
Compare
Choose a tag to compare

Documentation

  • Mark package as side-effect free

Release 0.3.9

18 Feb 01:33
Compare
Choose a tag to compare

Changed

  • Replaced built-in pureTransformer code with the library js-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

17 Feb 02:14
Compare
Choose a tag to compare

Added

  • Added crop parameter to TransformOptions to allow cropping of images.
  • Added flip parameter to TransformOptions to allow mirroring of images.
  • Added rotation parameter to TransformOptions to allow rotation of images.
  • Added blurRadius parameter to TransformOptions to allow Gaussian blur of images.

Release 0.3.7

14 Feb 19:51
Compare
Choose a tag to compare

Added

  • Added options parameter to resolver type to enable external API transformations

Release 0.3.6

14 Feb 19:10
Compare
Choose a tag to compare

Added

  • Added an optional fallbackTransformer parameter to LoaderConfig. Set to pureTransformer 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 to LoaderConfig. This is a set of mime types that should be returned without transformation. Defaults to Set([MimeType.SVG]).

Changed

  • Made null a valid option for the transformer parameter of LoaderConfig. If this parameter is set to null, image transformation will be skipped.

Docs

  • Added documentation for LoaderConfig parameters: defaultOptions, redirectOnFail, and skipFormats.
  • Added default (pureTransformer) supported file types to documentation.