Skip to content

Releases: MarcinOrlowski/laravel-api-response-builder

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)

v9.1.1

30 Oct 16:51
Compare
Choose a tag to compare

Please see CHANGELOG for detailed information.

v9.1.0

30 Oct 08:07
75e0c47
Compare
Choose a tag to compare
  • [RB-175] Paginator and LengthAwarePaginator support is now included in default converter configuration (reported by @kcaj-burr)
  • Fixed testConfigClassesMappingEntriesUnwantedConfigKeys() testing trait not supporting null keys in converter config.

v9.0.3

28 Oct 14:43
9a15037
Compare
Choose a tag to compare
  • Validator type related exceptions must now implement InvalidTypeExceptionContract.
  • converter config key element now accepts null to indicate you want no key to be used.

v9.0.2

25 Oct 09:11
2fb8544
Compare
Choose a tag to compare
  • Corrected tests to use regular ServiceProvider.
  • Corrected primitive converter tests.
  • Presence of configuration "converter/classes" array is now mandatory (reported by Raja)
  • Extensive documentation overhaul

v9.0.1

22 Oct 13:22
87e00f5
Compare
Choose a tag to compare
  • Fixed auto-discovery failing due to broken ServiceProvider (reported by Efriandika Pratama).
  • Corrected documentation and usage examples.