Skip to content

Commit

Permalink
Prepare v5 beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jan 5, 2024
1 parent 20277f2 commit fe2b113
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["test-app"]
}
22 changes: 22 additions & 0 deletions .changeset/slimy-coats-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@ember-responsive-image/blurhash': major
'@ember-responsive-image/cloudinary': major
'ember-responsive-image': major
'@ember-responsive-image/imgix': major
'@ember-responsive-image/webpack': major
---

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.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ For the remainder of this documentation we will assume you will be dealing with

## Getting started

### Migration

If you were previously using an older version (<2.x) of this addon, there is a [Migration Guide](docs/MIGRATION.md) to help you go through the (many!) breaking changes.

### Installation

In your application's directory:
Expand Down
37 changes: 0 additions & 37 deletions docs/MIGRATION.md

This file was deleted.

0 comments on commit fe2b113

Please sign in to comment.