4.1 KiB
4.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.0 - 2022-06-21
Fixed
- Fix
EloquentAdapter::filterByIds()getting key name from query model instead of adapter model
0.2.0-beta.6 - 2022-04-22
Changed
- Add support for
doctrine/inflector:^2.0
0.2.0-beta.5 - 2022-01-03
Added
Context::getBody()method to retrieve the parsed JSON:API payload from the requestContext::sortRequested()method to determine if a sort field has been requested
Fixed
Laravel\rules(): Fix regression disallowing use of advanced validation rules like callbacks andRuleinstances. (@SychO9)
0.2.0-beta.4 - 2021-09-05
Added
Laravel\rules(): Replace{id}placeholder in rules with the model's key.- This is useful for the
uniquerule, for example:unique:users,email,{id}
- This is useful for the
Laravel\can(): Pass through additional arguments to Gate check.- This is needed to use policy methods without models, for example:
can('create', Post::class)
- This is needed to use policy methods without models, for example:
Changed
- Get a fresh copy of the model to display after create/update to ensure consistency
- Respond with
400 Bad Requestwhen attempting to filter on an attribute of a polymorphic relationship
0.2.0-beta.3 - 2021-09-03
Fixed
- Fix dependency on
http-acceptnow that a version has been tagged - Change
EloquentAdapterto load relationships usingloadinstead ofloadMissing, as they may need API-specific scopes applied
0.2.0-beta.2 - 2021-09-01
Added
- Content-Type validation and Accept negotiation
- Include
jsonapiobject withversionmember in response - Validate implementation-specific query parameters according to specification
- Added
Locationheader to201 Createdresponses - Improved error responses when creating and updating resources
Context::filter()method to get the value of a filterResourceType::applyScope(),applyFilter()andapplySort()methodsResourceType::url()method to get the URL for a modelForbiddenerror details for CRUD actions, useful when running Atomic OperationsJsonApi::getExtensions()method to get all registered extensionsConflictExceptionclass
Changed
- Renamed
$linkageparameter inAdapterInterfacemethods to$linkageOnly - Renamed
Type::newModel()tomodel()to be consistent with Adapter
Fixed
- Properly respond with meta information added to
Contextinstance
0.2.0-beta.1 - 2021-08-27
Added
- Preliminary support for Extensions
- Support filtering by nested relationships/attributes (eg.
filter[relationship.attribute]=value) - Add new methods to Context object:
getApi,getPath,fieldRequested,meta - Eloquent adapter: apply scopes when including polymorphic relationships
- Laravel validation helper: support nested validation messages
- Allow configuration of sort and filter visibility
- Add new
setIdmethod toAdapterInterface
Changed
- Change paradigm for eager loading relationships; allow fields to return
Deferredvalues to be evaluated after all other fields, so that resource loading can be buffered. - Remove
onprefix from field event methods
Removed
- Removed
loadanddontLoadfield methods
Fixed
- Fix pagination next link appearing when it shouldn't