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
+36-8Lines changed: 36 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,30 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
6
+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+
## [Unreleased]
9
+
10
+
-**New class-based API.** More ergonomic for managing large resource definitions and
11
+
inheriting/overriding behavior. Complex fields can be extracted into their own classes and
12
+
reused across resources.
13
+
14
+
-**Typed attributes.** Implementations of typed attributes are provided to match the data types
15
+
in the OpenAPI specification. Attributes can be marked as required and nullable.
16
+
17
+
-**Customizable endpoints.** Each endpoint is now opt-in for each resource and can be configured
18
+
and implemented separately. Also adds the ability for custom endpoints to be added.
19
+
20
+
-**Restructured internals.** The codebase is cleaner and easier to reason about, especially the
21
+
serialization process.
22
+
23
+
Still to come:
24
+
25
+
- Implementation of Laravel stuff (currently it is documented but not implemented)
26
+
- Ability to generate OpenAPI definitions
27
+
- Additional attribute types (array, object)
28
+
- Benchmarks
7
29
8
30
## [0.2.0] - 2022-06-21
9
31
@@ -27,7 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
49
28
50
### Fixed
29
51
30
-
-`Laravel\rules()`: Fix regression disallowing use of advanced validation rules like callbacks and `Rule` instances. (@SychO9)
52
+
-`Laravel\rules()`: Fix regression disallowing use of advanced validation rules like callbacks
53
+
and `Rule` instances. (@SychO9)
31
54
32
55
## [0.2.0-beta.4] - 2021-09-05
33
56
@@ -36,19 +59,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
59
-`Laravel\rules()`: Replace `{id}` placeholder in rules with the model's key.
37
60
- This is useful for the `unique` rule, for example: `unique:users,email,{id}`
38
61
-`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)`
62
+
- This is needed to use policy methods without models, for example:
63
+
`can('create', Post::class)`
40
64
41
65
### Changed
42
66
43
67
- 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
68
+
- Respond with `400 Bad Request` when attempting to filter on an attribute of a polymorphic
69
+
relationship
45
70
46
71
## [0.2.0-beta.3] - 2021-09-03
47
72
48
73
### Fixed
49
74
50
75
- 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
76
+
- Change `EloquentAdapter` to load relationships using `load` instead of `loadMissing`, as they
77
+
may need API-specific scopes applied
52
78
53
79
## [0.2.0-beta.2] - 2021-09-01
54
80
@@ -80,7 +106,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
80
106
### Added
81
107
82
108
- Preliminary support for Extensions
83
-
- Support filtering by nested relationships/attributes (eg. `filter[relationship.attribute]=value`)
109
+
- Support filtering by nested relationships/attributes (eg.
110
+
`filter[relationship.attribute]=value`)
84
111
- Add new methods to Context object: `getApi`, `getPath`, `fieldRequested`, `meta`
85
112
- Eloquent adapter: apply scopes when including polymorphic relationships
86
113
- Laravel validation helper: support nested validation messages
@@ -89,7 +116,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
89
116
90
117
### Changed
91
118
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.
119
+
- Change paradigm for eager loading relationships; allow fields to return `Deferred` values to be
120
+
evaluated after all other fields, so that resource loading can be buffered.
0 commit comments