You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+60-39Lines changed: 60 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -6,78 +6,99 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
8
## [0.2.0] - 2022-06-21
9
+
9
10
### Fixed
10
-
- Fix `EloquentAdapter::filterByIds()` getting key name from query model instead of adapter model
11
-
- Fix deprecation notice on PHP 8.1
11
+
12
+
- Fix `EloquentAdapter::filterByIds()` getting key name from query model instead of adapter model
13
+
- Fix deprecation notice on PHP 8.1
12
14
13
15
## [0.2.0-beta.6] - 2022-04-22
16
+
14
17
### Changed
15
-
- Add support for `doctrine/inflector:^2.0`
18
+
19
+
- Add support for `doctrine/inflector:^2.0`
16
20
17
21
## [0.2.0-beta.5] - 2022-01-03
22
+
18
23
### Added
19
-
-`Context::getBody()` method to retrieve the parsed JSON:API payload from the request
20
-
-`Context::sortRequested()` method to determine if a sort field has been requested
24
+
25
+
-`Context::getBody()` method to retrieve the parsed JSON:API payload from the request
26
+
-`Context::sortRequested()` method to determine if a sort field has been requested
21
27
22
28
### Fixed
23
-
-`Laravel\rules()`: Fix regression disallowing use of advanced validation rules like callbacks and `Rule` instances. (@SychO9)
29
+
30
+
-`Laravel\rules()`: Fix regression disallowing use of advanced validation rules like callbacks and `Rule` instances. (@SychO9)
24
31
25
32
## [0.2.0-beta.4] - 2021-09-05
33
+
26
34
### Added
27
-
-`Laravel\rules()`: Replace `{id}` placeholder in rules with the model's key.
28
-
- This is useful for the `unique` rule, for example: `unique:users,email,{id}`
29
-
-`Laravel\can()`: Pass through additional arguments to Gate check.
30
-
- This is needed to use policy methods without models, for example: `can('create', Post::class)`
35
+
36
+
-`Laravel\rules()`: Replace `{id}` placeholder in rules with the model's key.
37
+
- This is useful for the `unique` rule, for example: `unique:users,email,{id}`
38
+
-`Laravel\can()`: Pass through additional arguments to Gate check.
39
+
- This is needed to use policy methods without models, for example: `can('create', Post::class)`
31
40
32
41
### Changed
33
-
- Get a fresh copy of the model to display after create/update to ensure consistency
34
-
- Respond with `400 Bad Request` when attempting to filter on an attribute of a polymorphic relationship
42
+
43
+
- Get a fresh copy of the model to display after create/update to ensure consistency
44
+
- Respond with `400 Bad Request` when attempting to filter on an attribute of a polymorphic relationship
35
45
36
46
## [0.2.0-beta.3] - 2021-09-03
47
+
37
48
### Fixed
38
-
- Fix dependency on `http-accept` now that a version has been tagged
39
-
- Change `EloquentAdapter` to load relationships using `load` instead of `loadMissing`, as they may need API-specific scopes applied
49
+
50
+
- Fix dependency on `http-accept` now that a version has been tagged
51
+
- Change `EloquentAdapter` to load relationships using `load` instead of `loadMissing`, as they may need API-specific scopes applied
40
52
41
53
## [0.2.0-beta.2] - 2021-09-01
54
+
42
55
### Added
43
-
- Content-Type validation and Accept negotiation
44
-
- Include `jsonapi` object with `version` member in response
45
-
- Validate implementation-specific query parameters according to specification
46
-
- Added `Location` header to `201 Created` responses
47
-
- Improved error responses when creating and updating resources
48
-
-`Context::filter()` method to get the value of a filter
49
-
-`ResourceType::applyScope()`, `applyFilter()` and `applySort()` methods
50
-
-`ResourceType::url()` method to get the URL for a model
51
-
-`Forbidden` error details for CRUD actions, useful when running Atomic Operations
52
-
-`JsonApi::getExtensions()` method to get all registered extensions
53
-
-`ConflictException` class
56
+
57
+
- Content-Type validation and Accept negotiation
58
+
- Include `jsonapi` object with `version` member in response
59
+
- Validate implementation-specific query parameters according to specification
60
+
- Added `Location` header to `201 Created` responses
61
+
- Improved error responses when creating and updating resources
62
+
-`Context::filter()` method to get the value of a filter
63
+
-`ResourceType::applyScope()`, `applyFilter()` and `applySort()` methods
64
+
-`ResourceType::url()` method to get the URL for a model
65
+
-`Forbidden` error details for CRUD actions, useful when running Atomic Operations
66
+
-`JsonApi::getExtensions()` method to get all registered extensions
67
+
-`ConflictException` class
54
68
55
69
### Changed
56
-
- Renamed `$linkage` parameter in `AdapterInterface` methods to `$linkageOnly`
57
-
- Renamed `Type::newModel()` to `model()` to be consistent with Adapter
70
+
71
+
- Renamed `$linkage` parameter in `AdapterInterface` methods to `$linkageOnly`
72
+
- Renamed `Type::newModel()` to `model()` to be consistent with Adapter
58
73
59
74
### Fixed
60
-
- Properly respond with meta information added to `Context` instance
75
+
76
+
- Properly respond with meta information added to `Context` instance
61
77
62
78
## [0.2.0-beta.1] - 2021-08-27
79
+
63
80
### Added
64
-
- Preliminary support for Extensions
65
-
- Support filtering by nested relationships/attributes (eg. `filter[relationship.attribute]=value`)
66
-
- Add new methods to Context object: `getApi`, `getPath`, `fieldRequested`, `meta`
67
-
- Eloquent adapter: apply scopes when including polymorphic relationships
68
-
- Laravel validation helper: support nested validation messages
69
-
- Allow configuration of sort and filter visibility
70
-
- Add new `setId` method to `AdapterInterface`
81
+
82
+
- Preliminary support for Extensions
83
+
- Support filtering by nested relationships/attributes (eg. `filter[relationship.attribute]=value`)
84
+
- Add new methods to Context object: `getApi`, `getPath`, `fieldRequested`, `meta`
85
+
- Eloquent adapter: apply scopes when including polymorphic relationships
86
+
- Laravel validation helper: support nested validation messages
87
+
- Allow configuration of sort and filter visibility
88
+
- Add new `setId` method to `AdapterInterface`
71
89
72
90
### Changed
73
-
- Change paradigm for eager loading relationships; allow fields to return `Deferred` values to be evaluated after all other fields, so that resource loading can be buffered.
74
-
- Remove `on` prefix from field event methods
91
+
92
+
- Change paradigm for eager loading relationships; allow fields to return `Deferred` values to be evaluated after all other fields, so that resource loading can be buffered.
93
+
- Remove `on` prefix from field event methods
75
94
76
95
### Removed
77
-
- Removed `load` and `dontLoad` field methods
96
+
97
+
- Removed `load` and `dontLoad` field methods
78
98
79
99
### Fixed
80
-
- Fix pagination next link appearing when it shouldn't
100
+
101
+
- Fix pagination next link appearing when it shouldn't
0 commit comments