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
andPUTFile
into a new\Crackle\Requests\Files
namespace. - Renamed
\Crackle\Requests\Files\File::factory()
tofromPath()
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 tosys_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.