Skip to content

v5.11.0

Latest

Choose a tag to compare

@bkoelman bkoelman released this 22 May 23:36
4f39936

New features and enhancements

This release adds more ways to use functions in filter query strings (see #1881). Additionally, the request pipeline is optimized to eliminate COUNT(*) SQL queries when pagination is disabled, while the new JsonApiResourceService.CanIncludeTotalResourceCount virtual method enables skipping these SQL queries based on additional user-defined logic.

OpenAPI preview 8 comes with support for [DisableQueryString] and [HasMany(DisablePagination = true)].

Breaking changes

  • As a result of request pipeline optimization, the order in which resource definition callbacks execute has changed slightly (see #1915).
  • The incorrect [DisallowNull] on the id parameter of IResourceWriteRepository.GetForCreateAsync has been removed.
  • The relaxed variants of JSON:API media types have been deprecated, now that both NSwag and Kiota can properly handle JSON:API extensions. While they are still accepted, they are no longer emitted when generating OpenAPI documents. Our extension spec has been updated.

Bugfixes

  • Fixed an incorrect HTTP 415 response in content negotiation with JSON:API extensions.
  • When the AllowView capability on HasOne is turned off, HTTP GET requests to secondary/relationship endpoints are now blocked.
  • OpenAPI: Links for filter/page/sort are no longer generated for endpoints that return a single resource/identifier.
  • OpenAPI: Not all relationship capabilities were properly reflected in the generated OpenAPI document.

Merged PRs

New Contributors

Full Changelog: v5.10.0...v5.11.0