Skip to content

@ember-responsive-image/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Jan 16:24
· 1446 commits to main since this release

Major Changes

  • #547 fe2b113 Thanks @simonihmig! - Major rewrite as a v2 addon

    The main addon is now a fully static v2 addon. No more broccoli, all processing of local images has moved to Webpack-native loaders, invoked by ember-auto-import for classic builds or Embroider.

    The main breaking change here is that when using the <ResponsiveImage/> component you don't refer to the image by a string-based reference anymore. In the pull-based world of v2 addons, you need to explicitly import the image file. This triggers the Webpack loaders, applying the image processing. This has t he benefit of only processing what is actually used, and being able to apply specific image processing options per import.

    For organizational purposes, the different concerns (image processing, image CDN providers etc.) have been split into separate packages that you need to add as dependencies if you make use of them:

    • @ember-responsive-image/webpack for local image processing
    • @ember-responsive-image/cloudinary for supporting the Cloudinary image CDN
    • @ember-responsive-image/imgix for supporting the Imgix image CDN
    • @ember-responsive-image/blurhash for BlurHash LQIP support

    The configuration of the addon has been moved from ember-cli-build.js to separate configurations for each of the above packages. Please refer to their respective documentation.

Patch Changes