Releases: MarcinOrlowski/laravel-api-response-builder
Releases · MarcinOrlowski/laravel-api-response-builder
v7.1.2
- [RB-141] Fixed JsonSerializableConverter to deal non-string return data (reported by Jonatan Fekete)
v7.1.1
- Added more tests.
- Updated dependencies.
v7.1.0
- Added support for Laravel v7
v7.0.3
- Fixed
composer.json
file.
v7.0.2
- Updated Travis config to cover Laravel 6.5, 6.6, 6.7 and 6.8
- Updated Travis config to cover PHP 7.4
v7.0.1
- v7.0.1 (2019-11-25)
- Disabled Scrutinizer's "false positive" in Builder class.
- Added more tests to improve overall coverage.
- Updated PHPDocs
- Code cleanup
v7.0.0
- BACKWARD INCOMPATIBLE CHANGES (more info)
- New, flexible API based on
Builder
pattern (see docs for details). - Reworked
ExceptionHandlerHelper
configuration. Now, you will be able to easily configure every
HttpException for each HTTP status code you want. SeparateExceptionHandler::TYPE_HTTP_NOT_FOUND_KEY
and all related stuff, incl. localization keyhttp_not_found
, configuration is now replace with more
flexible generic code that provides error messages for all supported HTTP codes from in range400-599
. - Added support for external data converters (related part of config changed too).
- Config key
classes
is now (partially)converter
. Itsmethod
key is gone andhandler
.
needs to be added now, pointing to the class implementingConverterContract
acting as delegate worker. - Data converter now handles objects implementing
JsonSerializable
andArrayable
contracts as well.
v6.3.2
- Added
ResponseBuilder::successWithMessage()
method. - Entries in
classes
config array can now havepri
(default 0) to enforce order while
merging config with built-in configuration. - Persian translation (Thanks to @FaridAghili).
- Added Laravel 6.5 to Travis-CI unit tests.
v6.3.1
v6.3.0
- BACKWARD INCOMPATIBLE CHANGES (more info)
- Signature of
ResponseBuilder::buildResponse()
changed to allow customization of finalmessage
entry (@hawezo). - Moved all code that produces messages for API codes to
ResponseBuilder::getMessageForApiCode()
. - Added
Validator::assertType()
helper method that validates var against set of allowed types. - Added
Validator::assertString()
helper.