Skip to content

Commit

Permalink
[Feature] Update dependencies to add new features
Browse files Browse the repository at this point in the history
Schema model classes can now be parent classes or interfaces.
Closes #58

Custom field hydrators for Eloquent fields (set via the
`fillUsing()` method) now receive all the validated data as their
fourth argument. This allows the custom hydrator to calculate a
value to fill into the model based on multiple JSON:API field
values.
Closes #65
  • Loading branch information
lindyhopchris committed Apr 7, 2021
1 parent 05d307b commit 0a969b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file. This project adheres to
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).

## Unreleased

### Added

- [#65](https://github.com/laravel-json-api/laravel/issues/65) **BREAKING** The `fill()` method on Eloquent fields has
been updated to receive all the validated data as its third argument. This change was made to allow fields to work out
the value to fill into the model based on other JSON:API field values. If you have written any custom fields, you will
need to update the `fill()` method on your field class.
- [#58](https://github.com/laravel-json-api/laravel/issues/58) Schema model classes can now be a parent class or an
interface.

## [1.0.0-beta.1] - 2021-03-30

### Added
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"require": {
"php": "^7.4|^8.0",
"ext-json": "*",
"laravel-json-api/core": "^1.0.0-beta.1",
"laravel-json-api/eloquent": "^1.0.0-beta.1",
"laravel-json-api/core": "^1.0.0-beta.2",
"laravel-json-api/eloquent": "^1.0.0-beta.2",
"laravel-json-api/encoder-neomerx": "^1.0.0-beta.1",
"laravel-json-api/exceptions": "^1.0.0-beta.1",
"laravel-json-api/spec": "^1.0.0-beta.1",
"laravel-json-api/validation": "^1.0.0-beta.1",
"laravel/framework": "^8.0"
},
"require-dev": {
"laravel-json-api/hashids": "^1.0.0-beta.1",
"laravel-json-api/hashids": "^1.0.0-beta.2",
"laravel-json-api/testing": "^1.0.0-beta.1",
"orchestra/testbench": "^6.9",
"phpunit/phpunit": "^9.5"
Expand Down

0 comments on commit 0a969b1

Please sign in to comment.