Skip to content

Crackle v2.6.0

Latest
Compare
Choose a tag to compare
@gebn gebn released this 24 Feb 23:24

This release includes two important bug fixes and several tweaks. It is largely compatible with previous releases of Crackle, however users of POSTFile or PUTFile will need to update these namespaces and use the renamed method (see below).

Improvements

  • Switched to semantic versioning.
  • \Crackle\Response::writeTo() can now be passed a single file path to write the response to. Additionally, if a permission error occurs, the relevant path is now included in the exception message.
  • Added Composer autoloader.

Changes

  • Moved POSTFile and PUTFile into a new \Crackle\Requests\Files namespace.
  • Renamed \Crackle\Requests\Files\File::factory() to fromPath() to be more descriptive.
  • Tweaked \Crackle\Requests\Files\PUTFile to always use memory for temporary files, regardless of size (previous limit was 1 MiB before being moved to sys_get_temp_dir()).
  • Increased the number of concurrent requests issued by the ChanThreadDownloader example from 10 to 20.

Bug fixes

  • Fixed class not found error if a dependency was unsatisfied.
  • Fixed \Crackle\Response::writeTo() failing if a filename was not passed and one couldn't be determined from the request. It will now throw \Crackle\Exceptions\IOException under these circumstances.
  • Fixed incorrect PHPDoc array notation.
  • Fixed various typos in documentation.