Skip to content

Releases: MarcinOrlowski/laravel-api-response-builder

v7.1.2

12 Jul 21:18
51c11d8
Compare
Choose a tag to compare
  • [RB-141] Fixed JsonSerializableConverter to deal non-string return data (reported by Jonatan Fekete)

v7.1.1

12 Jul 01:43
ed908d8
Compare
Choose a tag to compare
  • Added more tests.
  • Updated dependencies.

v7.1.0

05 Mar 04:28
b30b827
Compare
Choose a tag to compare
  • Added support for Laravel v7

v7.0.3

05 Mar 04:28
3cd203b
Compare
Choose a tag to compare
  • Fixed composer.json file.

v7.0.2

29 Dec 23:31
6fbff1b
Compare
Choose a tag to compare
  • 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

26 Nov 01:57
7b9d4fd
Compare
Choose a tag to compare
  • 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

22 Nov 16:10
bb6c145
Compare
Choose a tag to compare
  • 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. Separate ExceptionHandler::TYPE_HTTP_NOT_FOUND_KEY
    and all related stuff, incl. localization key http_not_found, configuration is now replace with more
    flexible generic code that provides error messages for all supported HTTP codes from in range 400-599.
  • Added support for external data converters (related part of config changed too).
  • Config key classes is now (partially) converter. Its method key is gone and handler.
    needs to be added now, pointing to the class implementing ConverterContract acting as delegate worker.
  • Data converter now handles objects implementing JsonSerializable and Arrayable contracts as well.

v6.3.2

07 Nov 05:53
724ebd4
Compare
Choose a tag to compare
  • Added ResponseBuilder::successWithMessage() method.
  • Entries in classes config array can now have pri (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

06 Nov 06:19
7a440c7
Compare
Choose a tag to compare
  • Fixed config merging helper causing certain user settings to be lost.
  • No longer exposes exception class name for message-less exceptions. Fixes #107
  • Added test ensuring that user provided config overshadows built-in params.

v6.3.0

02 Nov 18:39
65b5b35
Compare
Choose a tag to compare
  • BACKWARD INCOMPATIBLE CHANGES (more info)
  • Signature of ResponseBuilder::buildResponse() changed to allow customization of final message 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.