Releases: FriendsOfCake/crud-json-api
Releases · FriendsOfCake/crud-json-api
2.0.0
CakePHP 5 compatible release
What's Changed
- Call setConfig() instead of config() in docs by @berarma in #179
- More config()/setConfig() fixes by @berarma in #180
- Bump requests from 2.20.1 to 2.31.0 in /docs by @dependabot in #181
- Bump urllib3 from 1.26.5 to 1.26.17 in /docs by @dependabot in #184
- Bump urllib3 from 1.26.17 to 1.26.18 in /docs by @dependabot in #185
- Prepare for CakePHP 5.x by @kevindecapite in #194
New Contributors
- @berarma made their first contribution in #179
- @kevindecapite made their first contribution in #194
Full Changelog: 1.1.0...2.0.0
1.1.0
1.0.3
What's Changed
- Add Missing Square Bracket in JSON Example by @amayer5125 in #168
- Update Docs to Only use denyList Verbiage by @amayer5125 in #167
- Clean Up Code Examples by @amayer5125 in #166
- Removed lies ;) by @geoidesic in #165
- Document validators by @amayer5125 in #169
- Maintenance by @ADmad in #175
- Bump jinja2 from 2.10.1 to 2.11.3 in /docs by @dependabot in #153
- Bump pygments from 2.3.0 to 2.7.4 in /docs by @dependabot in #154
- Bump urllib3 from 1.25.2 to 1.26.5 in /docs by @dependabot in #158
- Bump babel from 2.3.4 to 2.9.1 in /docs by @dependabot in #161
- Fix db config usage in tests. by @ADmad in #176
- Bump certifi from 2018.11.29 to 2022.12.7 in /docs by @dependabot in #177
New Contributors
- @amayer5125 made their first contribution in #168
- @ADmad made their first contribution in #175
- @dependabot made their first contribution in #153
Full Changelog: 1.0.2...1.0.3
1.0.2
This release fixes two issues.
- Multi-word sparse fieldsets now work as expected
- All fields that begin with
_will now be ignored when generating the response (Previously only_joinDataand_matchingDatawere ignored, this caused certain things like translations to break)
1.0.1
1.0.0
1.0.0-RC3
1.0.0-RC2
This release adds support for /relationships/ endpoints as defined by the JSON:API specification (fetching relationships and updating relationships). It also adds support for related (i.e. /countries/1/currency) endpoints. A helper JsonApiRoutes class was also added to automatically create JSON:API compliant routes.
In order to make use of the new relationships endpoints, you need to add the CrudJsonApi.Relationships CRUD action. In order to get full support for related endpoints, you need to make use of the CrudJsonApi.View action, instead of the default Crud.View one.
Breaking changes
- Whitelist and blacklist for includes have been renamed as allowList and denyList.
- Default inflection has been changed to
variable(GeneratingcamelBackedattribute and relationship names) jsonApiBelongsToLinksconfig option has been removed.- All relationships will now be listed in the response, however only those with data loaded will have the data member populated, otherwise only links (where valid routes exist) will be populated.
- The
selflink for relationships will always be a/relationships/route (Where such a route exists) - The
relatedlink for relationships will be in the form of/{model}/{id}/{relationshipName}where such routes exist, otherwise it will be a direct link to the related entity view (if such a route exists)
1.0.0-RC1
Make compatible with the latest beta of FriendsOfCake/crud
1.0.0-beta5
- Fix issue with single entities when a ResultSetDecorator is used