Releases: swisnl/json-api-client
Releases · swisnl/json-api-client
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.0
Changed
- The
Repository
is split up into one trait per action #91. This allows you to build your own repository by extending theBaseRepository
and including just the actions/traits you need. See the (updated) readme for usage instructions. TheRepository
now uses these new traits and should be fully backwards compatible.
Fixed
- Fix ParamNameMismatch issue #96.
2.0.1
2.0.0
2.0.0-beta
Please see UPGRADING for details on how to upgrade.
Added
- Added
Item::mergeAppends
,Item::mergeCasts
,Item::mergeFillable
andItem::mergeGuarded
.
Changed
- Renamed
Item::addHidden
toItem::makeHidden
. - Merged
Item::addVisible
andItem::withHidden
intoItem::makeVisible
. - Changed visibility of
Item::getAttributeValue
to public. - The item's
toArray
method will now cast any attributes that implementIlluminate\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.