Skip to content

Releases: mmikkel/Retcon-Craft

Retcon v. 2.7.4

19 Oct 08:07
Compare
Choose a tag to compare

2.7.4 - 2023-10-19

Fixed

  • Fixed an issue where the retconSrcset filter could use the wrong height value for the base64 placeholder src attribute

Retcon v. 2.7.3

01 Aug 14:28
Compare
Choose a tag to compare

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

30 Jul 15:23
Compare
Choose a tag to compare

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

23 Jul 22:34
Compare
Choose a tag to compare

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

23 Jul 21:13
Compare
Choose a tag to compare

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

21 Jul 22:11
Compare
Choose a tag to compare

2.7.0 - 2023-07-22

Added

  • Added a new retconDimensions filter, which can be used to set missing width and height attributes for image nodes.
  • Added a new $allowFilenameAsAltText parameter to the retconAutoAlt filter (default true; will be default false in Retcon 3.0).
  • Added RetconTransformedImage model.

Improved

  • Improved support for CKEditor.

Changed

  • The autoAlt filter now uses the native alt attribute if it has a value (Craft 4 only).
  • When using Imager (X) to transform images, the retconTransform and retconSrcset filters now respect Imager's safeFileFormats 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 base64 src placeholders could be used for the alt value.
  • Fixed a PHP exception that would occur if using retconTransform or retconSrcset 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 and retconSrcset filters could upscale images even if Craft's upscaleImages setting was set to false.

Retcon v. 2.6.1

17 Feb 07:56
Compare
Choose a tag to compare

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

12 Oct 07:59
Compare
Choose a tag to compare

2.6.0 - 2022-10-12

Changed

  • Updated version constraints for the symfony/dom-crawler and symfony/css-selector dependencies, allowing their 6.0 packages

Retcon v. 2.5.0

23 Aug 15:57
Compare
Choose a tag to compare

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 missing width and height attributes to the img tags being transformed

Added

  • The retconSrcset filter now sets img tags width and height attributes, if they are missing in the markup and Retcon is able to read out the dimensions

Retcon v. 2.4.3

17 Aug 21:25
Compare
Choose a tag to compare

2.4.3 - 2022-08-17

Changed

  • The selector, sizes, base64src, className, attributeName, imagerTransformDefaults and imagerConfigOverrides parameters are now nullable for the retconTransform, retconLazy and retconSrcset filters