Releases: beuss/simple-hal-client
Releases · beuss/simple-hal-client
v2.1.0
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
1.2.0
- Allow to resolve a link to an absolute URI using
myLink.resolve({ uriVariable: value})
- Added a shortcut to fetch and resolve self link using
myResource.selfHref()
Full Changelog: v1.1.0...v1.2.0
1.1.0
Minor improvements to ease usage:
- add
fetchHal
andfollowHal
methods on SimpleHalClient and HalLink - defaults all generics to any
Full Changelog: v1.0.0...v1.1.0
First public version
Base features to work with an HAL-compliant backend
Full Changelog: https://github.com/beuss/simple-hal-client/commits/v1.0.0