Skip to content

2.0.0

Compare
Choose a tag to compare
@beuss beuss released this 22 Nov 19:57
· 2 commits to main since this release

Breaking changes

  • FilterParam is renamed to FilterParams for the sake of consistency
  • HalFormsResource::content is not optional anymore to reduce need of optional chaining in calling chain. This leads to a behavior change: HalResponse::hal() does not return a resource without content on 204 response code. This was silly anyway since we return a response and caller can validate such condition before calling hal() or use filters to return a document.

New features

  • Templates invoke message can now take an object as first argument, it will be serialized to JSON if target expects application/json (otherwise you'll get into troubles)

Bug Fixes

  • Templates consuming multipart/form-data are now handled properly (no content type forcing anymore which was causing invalid requests)

Full Changelog: v1.2.0...v2.0.0