Skip to content

Releases: swisnl/json-api-client

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

1.3.2

28 Oct 12:02
89943d7
Compare
Choose a tag to compare

Fixed

  • The service provider will not set the base uri if it's empty. This allows you to set it in a custom container binding without using the config file.

1.3.1

22 Oct 07:58
97600c0
Compare
Choose a tag to compare

Fixed

  • Do not prepend the base uri if the endpoint is already absolute #82.

1.3.0

25 Sep 14:54
78423d2
Compare
Choose a tag to compare

Added

  • Added factory methods to DocumentClient, ResponseParser and DocumentParser. This will make it easier to use these without an IOC container. See the (updated) readme for usage instructions. #79

1.2.0

16 Sep 13:19
1357cac
Compare
Choose a tag to compare

Added

  • Added support for Laravel 8 #81.

1.1.1

05 Aug 17:12
bebca08
Compare
Choose a tag to compare

Fixed

  • Document, Jsonapi, Links and Meta classes will be serialized as object when empty.
  • Properly handle relations without data #78.

1.1.0

06 Mar 11:02
ce8fe8f
Compare
Choose a tag to compare

Added

  • Added support for Laravel 7 #75.

1.0.2

02 Dec 13:55
19694c7
Compare
Choose a tag to compare

Fixed

  • Do not break out of loop when hydrating relations #71.

1.0.1

21 Nov 13:41
53f5d74
Compare
Choose a tag to compare

Fixed

  • Do not require error links object to contain an about member #69.