Skip to content

Releases: lbovet/hybind

v1.7.0

Choose a tag to compare

@lbovet lbovet released this 11 Feb 10:10

Features:

  • Save and Delete should return the payload of the response if there is one

v1.6.0

Choose a tag to compare

@lbovet lbovet released this 12 Sep 08:08

Features:

  • Added hooks
    • $onBind(cb) called when object is bound.
    • $onLoadItem(cb) called when collection items are loaded.

Fixes:

  • Depth of objects in collections is limited in order to circumvent potential problems in backends (e.g. spring-data-rest)

v.1.5.0

Choose a tag to compare

@lbovet lbovet released this 20 May 15:20

Now can be used in modern browsers without framework (with the help of window.fetch and window.Promise).

v1.4.3

Choose a tag to compare

@lbovet lbovet released this 29 Mar 14:56

Do not bind properties that are explicitely set to null. Fixes #18.

v1.4.2

Choose a tag to compare

@lbovet lbovet released this 09 Jan 16:10

$bind uses now URL encoding. Fixes #17.

v1.4.1

Choose a tag to compare

@lbovet lbovet released this 27 Dec 12:09

$load also binds content of inline collections, e.g. those returned in Spring Data Rest projections.

v1.4.0

Choose a tag to compare

@lbovet lbovet released this 27 Dec 12:07

$create and $save can now save children associations in the same request.

  • $create passes all children associations of the object to create.
  • $save uses an optional array parameter to select which children associations must be passed. An empty array means all associations.

v1.3.2

Choose a tag to compare

@lbovet lbovet released this 06 Nov 15:02

Rebinding will now use a stored reference, not a constructed URL, to be fully HATEOAS.

v1.3.1

Choose a tag to compare

@lbovet lbovet released this 06 Nov 12:10

Fixed rebinding to not reuse previous reference

v1.3.0

Choose a tag to compare

@lbovet lbovet released this 31 Oct 22:46

Improved:

  • All promises revolving to objects
  • No more need to explicitely bind arrays
  • Optional query string parameters and HTTP options to all methods issuing requests