Skip to content

Releases: swisnl/json-api-client

2.4.0

15 May 07:18
d1a8e31
Compare
Choose a tag to compare

Added

  • Added the ability to send headers through repositories #103 (thanks @rapkis).

2.3.2

05 Mar 08:09
190554f
Compare
Choose a tag to compare

Added

  • Added support for Laravel 11 #101.

2.3.1

04 Sep 14:48
3997963
Compare
Choose a tag to compare

Added

2.3.0

14 Feb 19:54
33ae6d3
Compare
Choose a tag to compare

Added

  • Added support for Laravel 10 #99.

Removed

  • Dropped PHP <7.4 support.
  • Dropped Laravel <8 support #99.

2.2.0

08 Sep 07:18
295d69c
Compare
Choose a tag to compare

Added

  • Added getData method on relationships to get the relationship data #97.

Fixed

  • Fix relationship data meta issue #97.

2.1.0

17 Aug 10:00
5eed90e
Compare
Choose a tag to compare

Changed

  • The Repository is split up into one trait per action #91. This allows you to build your own repository by extending the BaseRepository and including just the actions/traits you need. See the (updated) readme for usage instructions. The Repository now uses these new traits and should be fully backwards compatible.

Fixed

  • Fix ParamNameMismatch issue #96.

2.0.1

08 Feb 19:52
746a431
Compare
Choose a tag to compare

Added

  • Added support for Laravel 9.

Fixed

  • Temporarily suppress PHP 8.1 notices about inconsistencies with interfaces.

2.0.0

04 Jan 08:03
b353de4
Compare
Choose a tag to compare

Please also check the changes in 2.0.0-beta and see UPGRADING for details on how to upgrade.

Changed

  • All classes now use strict typing #93.
  • All JSON-actions (json_encode and json_decode) will throw JsonExceptions on error #94.

Removed

  • Dropped PHP <7.3 support.

2.0.0-beta

01 Jul 17:52
29f1d15
Compare
Choose a tag to compare
2.0.0-beta Pre-release
Pre-release

Please see UPGRADING for details on how to upgrade.

Added

  • Added Item::mergeAppends, Item::mergeCasts, Item::mergeFillable and Item::mergeGuarded.

Changed

  • Renamed Item::addHidden to Item::makeHidden.
  • Merged Item::addVisible and Item::withHidden into Item::makeVisible.
  • Changed visibility of Item::getAttributeValue to public.
  • The item's toArray method will now cast any attributes that implement Illuminate\Contracts\Support\Arrayable to an array.
  • The item's newInstance method will now copy the type of the original item.

Removed

  • Dropped Laravel <6 and PHP <7.2 support.
  • Removed jenssegers/model dependency and added the classes into the package.
  • Removed unintended array access to internal properties on the item (e.g. $item['attributes']).
  • Extracted Laravel parts (config, service provider and facades) into swisnl/json-api-client-laravel.

1.3.3

18 Jan 09:45
f005d0c
Compare
Choose a tag to compare

Fixed