Releases: mmikkel/Retcon-Craft
Releases · mmikkel/Retcon-Craft
Retcon v. 2.7.4
2.7.4 - 2023-10-19
Fixed
- Fixed an issue where the
retconSrcset
filter could use the wrong height value for the base64 placeholdersrc
attribute
Retcon v. 2.7.3
2.7.3 - 2023-08-01
Fixed
- Fixed a regression introduced in Retcon 2.7.0, where Retcon would return unparsed reference tags from Redactor/CKEditor output, in cases where there were no nodes matching the given selector.
Retcon v. 2.7.2
2.7.2 - 2023-07-30
Fixed
- Fixed a regression introduced in Retcon 2.7.0, where Imager/Imager X would fail to transform external images, if the image URL contained a query string or was missing a file extension
Retcon v. 2.7.1
2.7.1 - 2023-07-23
Fixed
- Fixed a PHP exception that could occur if Retcon operated on markup containing
<svg>
nodes - Fixed an issue where the
retconRemoveEmpty
filter could remove<svg>
,<iframe>
and<object>
tags
Changed
- Retcon now requires
symfony/dom-crawler
v. 4.4.0 or later - Retcon now requires
symfony/css-selector
v. 3.4.0 or later - Retcon now requires
masterminds/html5
v. 2.6.0 or later
Retcon v. 2.7.0.1
2.7.0.1 - 2023-07-23
Fixed
- Fixed a regression introduced in 2.7.0, that could remove text content from nodes returned by the
retconOnly
filter
Retcon v. 2.7.0
2.7.0 - 2023-07-22
Added
- Added a new
retconDimensions
filter, which can be used to set missingwidth
andheight
attributes for image nodes. - Added a new
$allowFilenameAsAltText
parameter to theretconAutoAlt
filter (defaulttrue
; will be defaultfalse
in Retcon 3.0). - Added
RetconTransformedImage
model.
Improved
- Improved support for CKEditor.
Changed
- The
autoAlt
filter now uses the nativealt
attribute if it has a value (Craft 4 only). - When using Imager (X) to transform images, the
retconTransform
andretconSrcset
filters now respect Imager'ssafeFileFormats
configuration setting, i.e. these filters will only attempt to transform jpgs, gifs and pngs out of the box, unless additional formats have been added in Imager's config file.
Fixed
- Fixed an issue where the
retconRemoveEmpty
filter would remove self-closing tags. - Fixed an issue where DOMDocument could wrap text nodes in
<p>
tags. - Fixed an issue where the
retconUnwrap
filter could unwrap root nodes. - Fixed an issue where the
autoAlt
filter was unable to retrieve alt value from the source asset. - Fixed an issue where the
retconAutoAlt
filter could use base64src
placeholders could be used for the alt value. - Fixed a PHP exception that would occur if using
retconTransform
orretconSrcset
with Imager X named transforms, if the named transform consisted of multiple transforms. Retcon will now use the first transform whenever Imager returns multiple transforms. - Fixed an issue where the
retconTransform
andretconSrcset
filters could upscale images even if Craft'supscaleImages
setting was set tofalse
.
Retcon v. 2.6.1
2.6.1 - 2023-02-17
Fixed
- Fixes a PHP exception that would be thrown when using the
retconChange
filter on empty DOM nodes
Retcon v. 2.6.0
2.6.0 - 2022-10-12
Changed
- Updated version constraints for the
symfony/dom-crawler
andsymfony/css-selector
dependencies, allowing their 6.0 packages
Retcon v. 2.5.0
2.5.0 - 2022-08-23
Fixed
- Fixed a PHP exception that could occur when Retcon was unable to get the dimensions for an image being transformed
- Fixed a bug where the
retconTransform
filter would not apply missingwidth
andheight
attributes to theimg
tags being transformed
Added
- The
retconSrcset
filter now setsimg
tagswidth
andheight
attributes, if they are missing in the markup and Retcon is able to read out the dimensions
Retcon v. 2.4.3
2.4.3 - 2022-08-17
Changed
- The
selector
,sizes
,base64src
,className
,attributeName
,imagerTransformDefaults
andimagerConfigOverrides
parameters are now nullable for theretconTransform
,retconLazy
andretconSrcset
filters