Releases: golchha21/ReSmushIt
v1.3.4 – Reliability improvements and safer error handling
This release improves the reliability of image optimization without changing how the package is used.
Fixed
- Prevented fatal errors when the reSmush.it API is unreachable or returns invalid responses
- Restored file size validation to reject oversized images before upload
- Gracefully handle cURL, SSL, and JSON decoding failures
Improved
- Image optimization now always returns a structured array instead of triggering runtime errors
- Batch optimization (
paths()) no longer fails entirely if a single file cannot be optimized - Internal request flow refactored to improve reliability and testability
Tests
- Added unit test to validate file size rejection behavior
- Strengthened coverage around error handling paths
Documentation
- Updated README with explicit error handling and return value guarantees
- Added a Troubleshoot guide for common environment-specific issues
Backward Compatibility
This release does not change the public API.
Existing usage of path(), paths(), and the Optimize facade continues to work as before.
In failure scenarios, structured error arrays are returned instead of fatal errors, allowing applications to handle issues gracefully.
v1.3.3 – Graceful error handling & improved reliability
This release improves reliability and stability when interacting with the reSmush.it API, without changing how the package is used.
Fixed
- Prevented fatal errors when the reSmush.it API is unreachable or returns invalid responses
- Gracefully handle cURL and JSON decoding failures
Improved
- Image optimization now always returns a structured array instead of triggering runtime errors
- Batch optimization (
paths()) no longer fails entirely if a single file cannot be optimized - Internal HTTP call refactored to improve testability and reliability
Documentation
- Updated README with explicit error handling guidance
- Clarified return value guarantees for both single and batch optimization
Backward Compatibility
This release does not change the public API.
Existing usage of path(), paths(), and the Optimize facade continues to work as before.
In failure scenarios, structured error arrays are returned instead of fatal errors, allowing applications to handle issues gracefully.
Added Laravel 12 support and Version bump
v1.3.2 Added Laravel 12 support and Version bump
Added Laravel 11 support and Version bump
v1.3.1 Added Laravel 11 support and Version bump
Merged pull request from @atastycookie and version bump
v1.3.0 Merged pull request from @atastycookie and version bump
Added support for Laravel 10 and version bump.
v1.2.9 Added support for Laravel 10 and version bump.
Moved Laravel/framework from require-dev to require.
v1.2.8 Moved Laravel/framework from require-dev to require.
Updated const version
v1.2.7 Updated const version
Version Bump
- Version bump
- Updated Readme.md & Changelog.md
Version Bump
v1.2.5 Version Bump