CHANGELOG.md in rmagick-4.2.1 vs CHANGELOG.md in rmagick-4.2.2

- old
+ new

@@ -1,16 +1,36 @@ # Change Log All notable changes to this project are documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## RMagick 4.2.2 + +Bug Fixes: + +- Remove deprecation warning about block syntax (#1272) + +You are still recommended to use the block parameter instead of `self.` but +we're silencing the deprecation warning until we can get RMagick's code up to +that standard. + ## RMagick 4.2.1 Bug Fixes: - Fix compilation with optimization on glibc (#1263) ## RMagick 4.2.0 + +This adds a deprecation warning when using a block for image operations. +Instead of setting properties on `self`, you should accept a block argument and +modify that instead. In a future version we we no longer be binding the block +to the image. + +```diff +- img.to_blob { self.quality = 75 } ++ img.to_blob { |image| image.quality = 75 } +``` Improvements: - Updated error messages if runtime ImageMagick version was not matched with when installed rmagick (#1213) - Improve Image#resize performance with ImageMagick 7 (#1240)