Skip to content

2.0.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@JaZo JaZo released this 01 Jul 17:52
· 62 commits to master since this release
29f1d15

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.