Skip to content

Releases: MarcinOrlowski/laravel-api-response-builder

v6.1.1

02 Oct 15:15
Compare
Choose a tag to compare
  • Fixed ResponseBuilderServiceProvider using unreferenced Arr class method (reported by yassir3wad).

v6.0.0

21 Sep 05:49
2c4e07d
Compare
Choose a tag to compare
  • BACKWARD INCOMPATIBLE CHANGES (more info)
  • Requires Laravel 6.0+ and PHP 7.2+ (see docs for legacy support hints).
  • All API codes are now withing defined code range, incl. built-in codes.
  • Reserved code range lowered from former 63 down to 19.
  • Added type hints to all method arguments and return values
  • ExceptionHandler returns Exception-type related HTTP codes now as per configuration.
  • Fixed ResponseBuilder::errorWithMessageAndData() not passing data properly.
  • Fixed exception message of ApiCodesHelpers::getMaxCode().
  • Corrected test cases list in testSuccess_DataAndHttpCode().
  • Fixed error code fallback in testRender_HttpException() test.
  • Fixed testError_DebugTrace() not containing any asserts.
  • Reformatted code to not exceed 132 columns, for better on-line readability.
  • ResponseBuilder::errorWithDataAndHttpCode() accepts now null as http code.
  • ResponseBuilder::errorWithHttpCode() accepts now null as http code.
  • Fixed ExceptionHandlerHelper replacing HTTP codes above 499 with 400.
  • Changed default built-in message for HTTP_NOT_FOUND error.
  • ExceptionHandler now falls back to EX_UNCAUGHT_EXCEPTION for all the cases.
  • Simplified ExceptionHandlerHelperTest::testRender_HttpException() test.
  • Removed exception_handler.use_exception_message_first feature.
  • Removed ResponseBuilder::DEFAULT_API_CODE_OK constant.
  • Removed getReservedMinCode(), getReservedMinCode(), getReservedMessageKey() methods.
  • Removed internal API code constants. Use corresponding methods to get proprt code value.
  • Reimplemented Laravel config merger to support multi-dimensional configuration arrays too.
  • Removed response_key_map configuration option.
  • You can now return HTTP codes from 5xx range with all error responses.

v4.1.9

08 Sep 19:44
Compare
Choose a tag to compare
  • Fixed ApiCodesHelpers::getMaxCode() exception message
  • Fixed ResponseBuilder::errorWithMessageAndData() not passing args properly

v4.1.8

07 Sep 19:40
38f0953
Compare
Choose a tag to compare
  • Added Laravel 6 to testing setup

v4.1.7

04 Mar 05:34
f2d2282
Compare
Choose a tag to compare
  • Added PHP 7.3 to testing setup
  • Added Laravel 5.7 and Laravel 5.8 to testing setup
  • Corrected test env setup for Laravel 5.5, 5.6
  • Removed tests on HHVM from Travis config

v4.1.6

20 Jul 20:29
85aeca2
Compare
Choose a tag to compare
  • Documentation updated

v4.1.5

20 Jul 20:28
Compare
Choose a tag to compare
  • Fixed version in composer.json file

v4.1.4

20 Jul 20:28
494d867
Compare
Choose a tag to compare
  • Updated tests to run on PHP 5.6 too
  • Corrected docs

v4.1.3

22 Oct 22:07
Compare
Choose a tag to compare
  • Corrected docs

v4.1.2

10 Sep 16:53
Compare
Choose a tag to compare
  • Corrected docs
  • Fixed version in composer.json file
  • [RB-70] Added support for Laravel 5.5's auto-discovery feature