Skip to content

Releases: beuss/simple-hal-client

v2.1.0

30 Nov 19:53
Compare
Choose a tag to compare
  • HalFormsTemplate has been parametrized to allow finer control over invoke possible parameters

Full Changelog: v2.0.0...v2.1.0

2.0.0

22 Nov 19:57
Compare
Choose a tag to compare

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

1.2.0

22 Nov 07:23
Compare
Choose a tag to compare
  • 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

17 Nov 21:25
Compare
Choose a tag to compare

Minor improvements to ease usage:

  • add fetchHal and followHal methods on SimpleHalClient and HalLink
  • defaults all generics to any

Full Changelog: v1.0.0...v1.1.0

First public version

14 Nov 21:44
Compare
Choose a tag to compare

Base features to work with an HAL-compliant backend

Full Changelog: https://github.com/beuss/simple-hal-client/commits/v1.0.0