# Changelog ## [2.2.5] - 2023-11-13 ### [Changed] - Added exception handling to the responsive image generation to help catch some image read errors. ## [2.2.4] - 2023-09-26 ### [Changed] - Added a new line to the end of the function body when bundling JS. This fixes an issue where the last line of code is single line comment. This previously would comment out the closing curly bracket of the function. This new line fixes this. When minified, the comment and new line will be removed. ## [2.2.3] - 2023-08-22 ### [Changed] - Changed auto setting config values for minify JS and CSS for core Magento features. This should allow disabling minification in PageSpeed to use default Magento minification. ## [2.2.2] - 2023-08-17 ### [Changed] - Changed webp replacement method selection to allow manually selecting direct replacement via the config. ## [2.2.0] - 2023-03-22 ### [Added] - Added PHP 8.2 support. ## [2.1.8] - 2022-09-01 ### [Fixed] - Fixed configurable option swatches not displaying on product view page. ## [2.1.7] - 2022-08-24 ### [Fixed] - Mass action selection when JS mocks are enabled. ## [2.1.6] - 2022-08-24 ### [Fixed] - Fixed issue that broke images with data-mage-init parameters. These images are no longer lazyloaded. ## [2.1.5] - 2022-06-08 ### [Changed] - Changed minification of CSS files in media directory to be controlled via a config option. You can now enable or disable the minification of these files. Default is enabled, so files in media will be minified. ## [2.1.4] - 2022-06-17 ### [Fixed] - PHP 8.1 type issues. ## [2.1.3] - 2022-05-23 ### [Added] - Added check for for cwebp at bin/cwebp ## [2.1.2] - 2022-05-17 ### [Fixed] - Added fix for isMixins ## [2.1.1] - 2022-04-28 ### [Changed] - pub/media minified CSS files only deleted if original .css file exists. This stops files that were originally minified from being deleted. ## [2.1.0] - 2022-04-27 ### [Added] - Auto flushing of Port config CSS after saving Porto config. ## [2.0.16] - 2022-04-14 ### [Fixed] - Added an extra plugin for the MediaStorage App when the Mirasvit\Seo module is installed as this replaces this object. ## [2.0.15] - 2022-03-6 ### [Changed] - Added mixin for srcset when not using webp. ## [2.0.12] - 2022-03-11 ### [Changed] - Removed srcset on product listing images when selecting a swatch. This fixes the issue where the src is changed but the srcset is still used, which is the old image URL. ## [2.0.11] - 2022-02-21 ## [Removed] - Removed debugging code that created bn.log in Magento root directory if JS bundling was enabled. ## [2.0.10] - 2022-02-16 ### [Fixed] - Stopped canonical URL from being changed to a relative URL when 'Remove base URL from HTML' is enabled. ## [2.0.9] - 2022-02-10 ### [Fixed] - Stopped isVarnish from always returning true. This fixes an issue where some images didn't convert to webp. ## [2.0.8.15] - 2022-02-02 ### [Fixed] - Bundle.js and bundle.min.js created during compilation. ## [2.0.8.14] - 2022-01-28 ### [Added] - Ability to minify CSS files in media directory. ## [2.0.8.12] - 2021-12-06 ### [Changed] - Defer CSS method now mimics M2 defer method. - Webp conversion now works with uppercase extensions (eg. image.PNG) ## [2.0.8.11] - 2021-11-19 ### Added - Option to disable WebP mixins for Fotorama gallery ## [2.0.8.10] - 2021-11-09 ### Added - Automatic preloading of merged JS and CSS files ## [2.0.8.9] - 2021-09-03 ### Fixed - Preload error when unable to find any current tag ## [1.0.0.51] - 2020-05-17 ### Added - WebP fallback for product images in mini cart. ## [1.0.0.50] - 2020-05-16 ### Fixed - JS minification bug in checkout. ## [1.0.0.48] - 2020-05-16 ### Added - Support for using Varnish as the cache backend for the Magento 2 native FPC. ## [1.0.0.44] - 2020-05-13 ### Fixed - Webp conversion fallback when using native Magento 2 FPC and having HTML minification enabled. Image URLs that had been made relative were not converted back to their original URL but now they are. ## [1.0.0.43] - 2020-05-10 ### Added - Webp conversion now occurs in customer section data. This converts minicart images to Webp ## [1.0.0.42] - 2020-05-10 ### Fixed - Fixed issue when not using pub as Magento directory and running from the root with multiple stores on subdomains. ## [1.0.0.40] - 2020-05-09 ### Added - New CSS Webp fallback system. The system now creates a copy of your minified CSS file and converts all images it can to webp and saves this with the extension .webp.min.css and includes this file. If Webp is not supported, all occurrences of .webp.min.css are changed for .min.css and this file contains the original URLs. ## [1.0.0.39] - 2020-05-09 ### Changed - Webp fallback system has been rewritten to use the HTTP Accept header. If image/webp is allowed, that is all that is displayed. If not allowed, the original images are used. This supports FishPig_Bolt and the Magento built in FPC (including Varnish). ### Removed - Webp conversion in CSS files. This will be added back in the next release using the new Webp fallback system. This will be cleaner and faster. ## [1.0.0.38] - 2020-05-07 ### Fixed - Static resource minification in Magento 2.2.*. ## [1.0.0.37] - 2020-05-06 ### Fixed - Fixed issue on Magento 2.2.* that caused a fatal error because of a missing class. This class is not available in Magento 2.2.* so the features that require (product image conversion to Webp) are now automatically disbled. ## [1.0.0.36] - 2020-05-06 ### Fixed - Lazy loading of images that were created by cloning img tags pre lazy load. This means the clones have the data-src set but were not included in the internal img array. ## [1.0.0.35] - 2020-05-01 ### Changed - Lazy loading JS file has been rewritten to be cleaner and should now correctly lazy load images in sliders that are positioned offscreen. This is done by loading images that are in the viewport or the side of the current viewport. ## [1.0.0.34] - 2020-05-01 ### Fixed - Bug that caused lazyloading to fail on the checkout ## [1.0.0.33] - 2020-04-29 ### Fixed - Content-Security-Policy issue with Magento 2.3.5 that triggered a JS error when image lazyloading was enabled because of the use of a base 64 encoded 1px transparent image. ## [1.0.0.32] - 2020-04-26 ### Fixed - Inline minification doesn't run anymore on pages marked as cacheable=false ## [1.0.0.31] - 2020-04-26 ### Added - Better JSON minification. This now includes data-mage-init and data-post HTML element parameters. ## [1.0.0.29] - 2020-04-21 ### Fixed - Javascript minification bug that caused the double slash in a URL to be treated like a comment ## [1.0.0.28] - 2020-04-20 ### Fixed - data-mage-init issue that caused errors during HTML minification ## [1.0.0.27] - 2020-04-20 ### Fixed - Script tag base URL removal ## [1.0.0.26] - 2020-04-20 ### Added - New 'Remove Base URL' feature for HTML minification - New 'Remove HTML Element Defaults' feature for HTML minification ### Changed - Improve HTML minification algorithm