Skip to content

Commit

Permalink
Merge branch 'release/4.0.0' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Jun 28, 2022
2 parents 6cd7633 + ecc174a commit 15c83da
Show file tree
Hide file tree
Showing 61 changed files with 1,906 additions and 1,839 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# ImageOptimize Changelog

## 4.0.0 - 2022.06.28
### Changed
* If there's no transform requested, and we're not using some external service for image transforms, return `null` so other plugins have a crack at it

### Fixed
* Set the variant format to the current asset format if it is left empty, otherwise Craft recursively calls `getTransformUrl()` and hangs the queue ([#329]https://github.com/nystudio107/craft-imageoptimize/issues/329) ([#343](https://github.com/nystudio107/craft-imageoptimize/issues/343))
* Fixed an issue where variants would not resave under certain circumstance due to a typing issue ([#335](https://github.com/nystudio107/craft-imageoptimize/issues/335))
* Make the properties in the `OptimizedImage` nullable to avoid null property values throwing an exception ([#345](https://github.com/nystudio107/craft-imageoptimize/issues/345))
* Fixed an issue that caused sub-folders to not appear in the OptimizedImages field settings ([#333](https://github.com/nystudio107/craft-imageoptimize/issues/333))
* Fixed an issue that could cause JavaScript errors for newly created OptimizedImages fields, and in slideouts ([#344](https://github.com/nystudio107/craft-imageoptimize/issues/344))

## 4.0.0-beta.3 - 2022.04.08
### Fixed
* Fix `ImageTransform::getAssetUri()` to properly handle S3 and other volume sub-directories
Expand Down
2,499 changes: 1,322 additions & 1,177 deletions buildchain/package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions buildchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
"tailwindcss": "^3.0.0",
"vue-eslint-parser": "^8.0.0",
"vite": "^2.7.0",
"vite-plugin-eslint": "^1.3.0",
"vite-plugin-eslint": "1.3.0",
"vite-plugin-compression": "^0.4.0",
"vite-plugin-externals": "^0.3.2",
"vite-plugin-manifest-sri": "^0.1.0",
"vite-plugin-restart": "0.0.2",
"vite-plugin-vue2": "^1.9.0"
},
Expand Down
2 changes: 0 additions & 2 deletions buildchain/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {createVuePlugin} from 'vite-plugin-vue2'
import ViteRestart from 'vite-plugin-restart';
import {viteExternalsPlugin} from 'vite-plugin-externals'
import viteCompression from 'vite-plugin-compression';
import manifestSRI from 'vite-plugin-manifest-sri';
import {visualizer} from 'rollup-plugin-visualizer';
import eslintPlugin from 'vite-plugin-eslint';
import {nodeResolve} from '@rollup/plugin-node-resolve';
Expand Down Expand Up @@ -45,7 +44,6 @@ export default defineConfig(({command}) => ({
viteCompression({
filter: /\.(js|mjs|json|css|map)$/i
}),
manifestSRI(),
visualizer({
filename: '../src/web/assets/dist/stats.html',
template: 'treemap',
Expand Down
12 changes: 6 additions & 6 deletions 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.0-beta.3",
"version": "4.0.0",
"keywords": [
"craft",
"cms",
Expand All @@ -29,11 +29,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"craftcms/cms": "^4.0.0-beta.4",
"nystudio107/craft-plugin-vite": "^4.0.0-beta.1",
"nystudio107/craft-imageoptimize-imgix": "^4.0.0-beta.1",
"nystudio107/craft-imageoptimize-sharp": "^4.0.0-beta.1",
"nystudio107/craft-imageoptimize-thumbor": "^4.0.0-beta.1",
"craftcms/cms": "^4.0.0",
"nystudio107/craft-plugin-vite": "^4.0.0",
"nystudio107/craft-imageoptimize-imgix": "^4.0.0",
"nystudio107/craft-imageoptimize-sharp": "^4.0.0",
"nystudio107/craft-imageoptimize-thumbor": "^4.0.0",
"ksubileau/color-thief-php": "^1.3",
"mikehaertl/php-shellcommand": "~1.2"
},
Expand Down
884 changes: 448 additions & 436 deletions docs/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"textlint-rule-stop-words": "^2.0.8",
"textlint-rule-terminology": "^2.1.4",
"textlint-rule-write-good": "^1.6.2",
"vitepress": "latest"
"vitepress": "^0.22.4"
}
}
8 changes: 0 additions & 8 deletions src/assetbundles/imageoptimize/dist/css/styles.css

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions src/assetbundles/imageoptimize/dist/js/field.js

This file was deleted.

1 change: 0 additions & 1 deletion src/assetbundles/imageoptimize/dist/js/field.js.map

This file was deleted.

Binary file not shown.
10 changes: 0 additions & 10 deletions src/assetbundles/imageoptimize/dist/js/imageoptimize.js

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions src/assetbundles/imageoptimize/dist/js/runtime.js

This file was deleted.

Loading

0 comments on commit 15c83da

Please sign in to comment.