Skip to content

Latest commit

 

History

History
246 lines (202 loc) · 8.13 KB

CHANGELOG.md

File metadata and controls

246 lines (202 loc) · 8.13 KB

1.x branch

1.12 branch

1.12.0

  • requires at least PHP 8.1, CakePHP 5.0 and PHPUnit 10;
  • added tests for PHP 8.3.

1.11 branch

1.11.3

  • removed some exception classes already deprecated or scheduled for deprecation.

1.11.2

  • no longer needs the me-tools package;
  • no longer uses the Exceptionist class;
  • added tests for PHP 8.2.

1.11.1

  • updated for me-tools 2.24.

1.11.0

  • the ThumbCreator class has been revised;
  • ThumberCreator::getImageInstance() and ThumberCreator::save() methods have been, because they would now coincide with the methods of the extended class;
  • all methods of TestCase class have been moved to the new TestTrait;
  • minor code, test, and documentation improvements;
  • added tests for ThumbManager class.

1.10 branch

1.10.2

  • updated for CakePHP 4.4;
  • little fixes for phpstan, psalm and for the composer.json file.

1.10.1

  • ready for CakePHP 4.4.

1.10.0

  • requires at least PHP 7.4;
  • little fixes.

1.9 branch

1.9.9

  • added tests for PHP 8.1;
  • little fixes.

1.9.8

  • fixed the bootstrap.

1.9.7

  • ready for CakePHP 4.3. The ThumbnailMiddleware was moved from Thumber\Cake\Routing\Middleware to Thumber\Cake\Middleware.

1.9.6

  • migration to github actions.

1.9.5

  • updated for php-thumber 1.4;
  • improvement of function descriptions and tags.

1.9.4

  • updated for php-thumber 1.3;
  • ready for php 8;
  • extensive improvement of function descriptions and tags. The level of phpstan has been raised.

1.9.3

  • updated for php-tools 1.4.5;
  • added phpstan, so fixed some code.

1.9.2

  • updated for me-tools 2.19.7 and php-thumber 1.2.

1.9.1

  • fixed locales and added tests.

1.9.0

  • updated for cakephp 4 and phpunit 8.

1.8 branch

1.8.1

  • little fixes;
  • APIs are now generated by phpDocumentor and no longer by apigen.

1.8.0

  • much of the code will be moved into the php-thumber package, so that it becomes a php library independent from CakePHP. This plugin will continue to exist and all classes and methods will remain unchanged, but it will only include the code closely related to CakePHP (commands, helpers, middlewares, etc);
  • the namespace prefix is now Thumber\Cake and no longer Thumber;
  • the ThumbsPathTrait no longer exists. The getPath() method no longer exists, use instead the THUMBER_TARGET constant. The resolveFilePath() method has been moved to the ThumbManager class.

1.7 branch

1.7.7

  • it self-determines which driver to use, if not set manually.

1.7.6

  • ThumbCreator can throw a BadMethodCallException or a NotWritableException;
  • ThumbHelper throws a BadMethodCallException if a method doesn't exist;
  • fixed little bug for ThumbsPathTrait::getPath() method.

1.7.5

  • fixed little bug for ThumbsPathTrait::resolveFilePath() method;
  • added tests for lower dependencies;
  • no longer uses File and Folder classes.

1.7.4

  • little fixes.

1.7.3

  • fixed little bug for composer.json.

1.7.2

  • little fixes;
  • updated for php-tools 1.2.

1.7.1

  • renamed commands. Now they are thumber.clear and thumber.clear_all;
  • requires me-tools package for dev;
  • removed ConsoleIntegrationTestTrait, because it is now sufficient to use the same trait provided by me-tools;
  • updated for CakePHP 3.7.1 and php-tools 1.1.12;
  • added API.

1.7.0

  • ThumberShell has been replaced with console commands. Every method of the previous class is now a Command class;
  • ConsoleIntegrationTestCase and IntegrationTestCase have been replaced by ConsoleIntegrationTestTrait and IntegrationTestTrait;
  • TestCaseTrait has been removed and its methods moved to TestCase;
  • removed THUMBER constant;
  • updated for CakePHP 3.7.

1.6 branch

1.6.1

  • added ConsoleIntegrationTestCase class;
  • updated for CakePHP 3.7.

1.6.0

  • the plugin now uses the ThumbnailMiddleware instead of a controller to "serve" thumbnails. The ThumbsController has therefore been deleted;
  • updated for CakePHP 3.6 and 3.7;
  • fixed little bug for PHP 5.6.

1.5 branch

1.5.2

  • fixed little bug for PHP 5.6.

1.5.1

  • added ThumbCreator::getUrl() method;
  • added getThumbCreatorInstance() and getThumbCreatorInstanceWithSave() methods to the Thumber\TestSuite\TestCase class. This simplifies tests.

1.5.0

  • the plugin has been migrated to CakePHP 3.6;
  • added TestCase::skipIfDriverIs() method;
  • ThumbTrait becomes ThumbsPathTrait and it has no more getDriver(), getExtension() and getUrl() methods;
  • the ThumbCreator::getDefaultSaveOptions() method now can take the $path optional argument;
  • removed ThumbTrait::getSupportedFormats() method, added ThumbManager::$supportedFormats static property;
  • InternalErrorException exception has been replaced with RuntimeException.

1.4 branch

1.4.1

  • ThumbNotFoundException extends the RuntimeException and now is located below the Thumber\Http\Exception namespace. This ensures compability with CakePHP 3.6.
  • removed assertFileExtension(), assertImageSize() and assertMime() methods provided by Thumber\TestSuite\TestCase class.

1.4.0

  • removed all methods provided previously by the ThumbHelper. These methods are now called dynamically by the __call() magic method;
  • tests have been simplified. The library to be tested is set by the tests/bootstrap.php file, using the THUMBER_DRIVER environment variable. By default, Imagick is used;
  • full support for Windows, added tests for Appveyor;
  • added Thumber\TestSuite\TestCase::assertThumbUrl() method;
  • now it uses the mirko-pagliai/php-tools package. This also replaces mirko-pagliai/reflection.

1.3 branch

1.3.1

  • added ThumbCreator::resizeCanvas() method;
  • added ThumbHelper::resizeCanvas() and ThumbHelper::resizeCanvasUrl() methods.

1.3.0

  • the name of the thumbnails (when automatically generated) now contains a prefix with the checksum of the path of the original image and a suffix with the checksum of all the arguments used to create the thumbnail. Using the prefix of a thumbnail, it will be possible to identify the original image from which it was generated;
  • the Last-Modified header is set up and sent to the client. It indicates the date and time at which the thumbnail file was modified for the last time;
  • added ThumbManager and ThumbShell classes;
  • resolveFilePath() method moved from ThumbCreator to ThumbTrait, because this method can be used in different contexts.

1.2 branch

1.2.0

  • updated for intervention/image 2.4;
  • some little fixes. This package requires at least CakePHP 3.4.

1.1 branch

1.1.1

  • fixed bug when using similar format name, , as jpeg or tif;
  • added TestCase::assertFileExtension() and TestCase::assertThumbPath() methods;
  • added ThumbTrait;
  • added Thumber\TestSuite\IntegrationTestCase class;
  • removed thumbUrl() global function. Use instead ThumbTrait::getUrl();
  • significantly improved and simplified all tests;
  • the MIT license has been applied.

1.1.0

  • configuration parameters have the name of the plugin (Thumber) as prefix. So now they are Thumber.driver and Thumber.target;
  • the target directory is created automatically, if it does not exist;
  • added rtr() global function;
  • added THUMBER constant.

1.0 branch

1.0.4

  • added ThumbNotFoundException class. This exception is thrown when you request a thumb that is not available;
  • methods that have been deprecated with CakePHP 3.4 have been replaced;
  • updated for CakePHP 3.4.

1.0.3

  • little code fixes;
  • improved tests.

1.0.2

  • support for bmp, ico, psd and tiff formats;
  • checks for formats supported by GD driver.

1.0.1

  • added fit() method for ThumbCreator and ThumbHelper classes;
  • the save() method can save thumbnails with a different format;
  • the save() method has the quality option (default: 90);
  • by default, the ThumbHelper returs "full base" URLs;
  • by default, the ThumbHelper creates jpg thumbnails.

1.0.0

  • first release.