Releases: MarcinOrlowski/laravel-api-response-builder
Releases · MarcinOrlowski/laravel-api-response-builder
v11.0.0
v10.0.0
- Added support for Laravel v10.
v9.4.0
- BACKWARD INCOMPATIBLE CHANGES (more info).
- Removed redundant PHPDocs entries for type-hinted elements.
- Fixed exception handler helper not properly handling iterating over mismatched configuration
items. - Fixed missing dependency entry in
composer.json
(development tools). - Reworked tests to use strict object representation of API response stricture to reduce overall
LoC. - Removed
assertValidResponse()
test helper method due to introduction ofApiResponse
class.
v9.3.2
- Laravel 9.x is now included in test matrices.
- PHP 8.1 is now included in test matrices.
- Simplified some logic by removing redundant checks.
v9.3.1
- Default
composer.json
also includes development packages now. - Updated examples in docs (thanks to @jcmcclorey).
- Small code cleanup.
v9.3.0
- Added
data_always_object
config option that, when enabled enforces responsedata
node to always be JSON object (forNULL
it will return empty object{}
). - Updated project logo
- Improved code quality (fully pass on PHPStan's strict mode)
- Updated code style to match standard ruleset.
- Fixed floats being rejected as direct primitive payload.
- Fixed
Converter
unit tests for primitives-as-payload. - Fixed
ResponseBuilderProvider
throwing incorrect Exception in case of invalid config file. - Added
Validator::assertIsObjectOrExistingClass()
method. Validator::assertIsInt()
throws nowNotIntegerException
as expected.- Corrected
Validator
class tests to check agains specific exceptions thrown, not base class. - Improved error handling in
JsonSerializableConverter
- Switched Composer's autoload to follow
psr-4
instead of plainclassmap
(thanks to Viktor Szépe). - Added
TestingHelpers::getResponseContent()
,TestingHelpers::langGet()
to satisfy static analyzers. - Updated and corrected PHPDocs (incl. some type hints).
- Added missing type hint to
success()
. - Added strict type header to classes.
- Removed
dev
block from defaultcomposer.json
. See.config/README.md
for details. - Updated documentation.
v9.2.3
- [RB-194] Changed signature of ExceptionHandlers'
handle()
method to expectcThrowable
instead ofException
(reported by @genesiscz).
v9.2.2
- [RB-190] Fixed converting resource and resource collection (reported by @achinkumar121).
v9.2.1
ExceptionHandler
now expects\Throwable
instead of\Exception
.
v9.2.0
- Updated Travis config to run tests on PHP 8 too.
- Added Arabic translation (thanks to @mustafa-online)
- Added Turkish translation (thanks to @victorioustr)