2.0.0
Breaking changes
FilterParam
is renamed toFilterParams
for the sake of consistencyHalFormsResource::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 callinghal()
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 expectsapplication/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