Skip to content

Commit

Permalink
Merge branch 'release/4.0.11' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 14, 2025
2 parents 0a177a4 + bcbb211 commit a428037
Show file tree
Hide file tree
Showing 25 changed files with 3,905 additions and 3,479 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ImageOptimize Changelog

## 4.0.11 - 2025.01.13
## Fixed
* Don't try to apply filters to assets that are seemingly corrupt, and have a `0` width or `0` height ([#383](https://github.com/nystudio107/craft-imageoptimize/issues/383))
* Fixed `srcset` width filtering ([](https://github.com/nystudio107/craft-imageoptimize/pull/416))

## 4.0.10 - 2024.10.21
## Changed
* Allow for empty `alt` tags for screen readers as per WCAG ([411](https://github.com/nystudio107/craft-imageoptimize/issues/411))
Expand Down
2 changes: 1 addition & 1 deletion buildchain/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TAG=20-alpine
FROM node:$TAG

RUN npm install -g npm@^10.0.0
RUN npm install -g npm@^11.0.0

WORKDIR /app/buildchain/

Expand Down
854 changes: 397 additions & 457 deletions buildchain/package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-imageoptimize",
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like imgix, with zero template changes.",
"type": "craft-plugin",
"version": "4.0.10",
"version": "4.0.11",
"keywords": [
"craft",
"cms",
Expand Down Expand Up @@ -55,6 +55,10 @@
"yiisoft/yii2-composer": true
},
"optimize-autoloader": true,
"platform": {
"php": "8.0.2"
},
"platform-check": false,
"sort-packages": true
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TAG=20-alpine
FROM node:$TAG

RUN npm install -g npm@^10.0.0
RUN npm install -g npm@^11.0.0

WORKDIR /app/

Expand Down
12 changes: 6 additions & 6 deletions docs/docs/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Which will generate the following HTML markup for you:
>
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

###### Using `.loadingStrategy('lazySizes')`

Expand Down Expand Up @@ -333,7 +333,7 @@ It’s expected that you will have loaded the lazysizes library already on the f
{{ craft.imageOptimize.renderLazySizesJs() }}
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

###### `.loadingStrategy('lazySizesFallback')`

Expand Down Expand Up @@ -374,7 +374,7 @@ Then you just need to include the [lazysizes fallback script](https://web.dev/ar
{{ craft.imageOptimize.renderLazySizesFallbackJs() }}
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

##### The `.placeholder()` Parameter

Expand Down Expand Up @@ -582,7 +582,7 @@ Which will generate the following HTML markup for you:
</picture>
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

###### Using `.loadingStrategy('lazySizes')`

Expand Down Expand Up @@ -636,7 +636,7 @@ It’s expected that you will have loaded the lazysizes library already on the f
{{ craft.imageOptimize.renderLazySizesJs() }}
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

###### `.loadingStrategy('lazySizesFallback')`

Expand Down Expand Up @@ -691,7 +691,7 @@ Then you just need to include the [lazysizes fallback script](https://web.dev/ar
{{ craft.imageOptimize.renderLazySizesFallbackJs() }}
```

Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, sp the placeholder image will be visible until the actual image loads.
Note that it sets the background image to the OptimizedImage’s placeholder via the `style` attribute, so the placeholder image will be visible until the actual image loads.

##### The `.placeholder()` Parameter

Expand Down
Loading

0 comments on commit a428037

Please sign in to comment.