Skip to content

Releases: MarcinOrlowski/laravel-api-response-builder

v11.0.0

06 May 14:07
Compare
Choose a tag to compare
  • Added support for Laravel v11.
  • Corrected documentation (thanks to Ehsan Soleimanian)

v10.0.0

20 Feb 16:27
5a1ca08
Compare
Choose a tag to compare
  • Added support for Laravel v10.

v9.4.0

18 Feb 19:41
fd13279
Compare
Choose a tag to compare
  • 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 of ApiResponse class.

v9.3.2

13 Feb 07:29
4964aa6
Compare
Choose a tag to compare
  • 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

23 Oct 14:41
Compare
Choose a tag to compare
  • Default composer.json also includes development packages now.
  • Updated examples in docs (thanks to @jcmcclorey).
  • Small code cleanup.

v9.3.0

21 Jun 23:05
cf7289a
Compare
Choose a tag to compare
  • Added data_always_object config option that, when enabled enforces response data node to always be JSON object (for NULL 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 now NotIntegerException 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 plain classmap (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 default composer.json. See .config/README.md for details.
  • Updated documentation.

v9.2.3

21 Apr 14:42
8e63e23
Compare
Choose a tag to compare
  • [RB-194] Changed signature of ExceptionHandlers' handle() method to expectc Throwable instead of Exception (reported by @genesiscz).

v9.2.2

05 Mar 07:04
1295fdc
Compare
Choose a tag to compare
  • [RB-190] Fixed converting resource and resource collection (reported by @achinkumar121).

v9.2.1

05 Mar 07:04
d464dd4
Compare
Choose a tag to compare
  • ExceptionHandler now expects \Throwable instead of \Exception.

v9.2.0

18 Jan 11:43
4d306c6
Compare
Choose a tag to compare
  • Updated Travis config to run tests on PHP 8 too.
  • Added Arabic translation (thanks to @mustafa-online)
  • Added Turkish translation (thanks to @victorioustr)