Skip to content

Releases: badgateway/ketting

v5.0.0

18 Dec 19:32
b722319
Compare
Choose a tag to compare
  • This version is the exact same as the previous alpha.

v5.0.0-alpha.7

18 Dec 19:33
83b7349
Compare
Choose a tag to compare
  • Added hasLink on Resources and Representations.

v5.0.0-alpha.6

18 Dec 19:34
584a18d
Compare
Choose a tag to compare
  • Fixed a bug in getOptions()

v5.0.0-alpha.5

18 Dec 19:34
5c0b148
Compare
Choose a tag to compare
  • Added a preferPush() method to 'Follower' objects, allowing you to
    automatically send [Prefer-Push][3] headers when following links.
  • Moved all functionality related to the 'Repreprentor' in a utility class,
    making both the Ketting and Resource classes simpler.
  • Simplified Resource.refresh(), making it easier to read and do less work.
  • When calling .post(), the function will only return a new resource if the
    HTTP response code was 201.
  • If the HTTP response code to a post() call was 205, it will now return
    the current resource.
  • Removed the logic for automatically adding Prefer-Push headers. This was
    unreliable, and usually did the wrong thing. The new system is 100% opt-in
    and developer-driven.
  • Added Ketting.getOptions() to return a list of options that were passed to
    Ketting. The options will be enhanced with OAuth2 refresh and access tokens
    as they become available, meaning that it can be used to place in
    LocalStorage to remember sessions. This feature is experimental and
    incomplete. It might change even in minor versions.

5.0.0-alpha.4

17 Feb 22:44
21d4eac
Compare
Choose a tag to compare
  • This version is identical to the last, but fixes an issue on npmjs.com.
    Updating is not needed.

5.0.0-alpha.3

03 Mar 23:33
dc584a0
Compare
Choose a tag to compare
5.0.0-alpha.3 Pre-release
Pre-release
  • It's now possible to tell Ketting to prefetch every resource when following
    links via Resource.follow('foo').preFetch().
  • Link and LinkNotFound are now both exported.
  • Documentation overhaul.

v4.0.4

29 Sep 00:19
493610e
Compare
Choose a tag to compare
  • This version is identical to the last, but fixes an issue on npmjs.com.
    Updating is not needed.

4.0.3

11 Sep 14:10
13bea41
Compare
Choose a tag to compare
  • The internal resource cache will now evict items for any non-safe HTTP
    method.

4.0.0

04 Sep 22:37
c3d398a
Compare
Choose a tag to compare
  • #129: Using the package in non-typescript node.js now wortks with a simple
    const Ketting = require('ketting').
  • #129: Fixed the browser distribution. the Ketting constructor is
    registered globally again.

Included from alpha release:

  • The old format for OAuth2 setup is now no longer supported.
  • It's now possible to specify per-domain authentication using wildcards.
    This allows you to set up specific authentication credentials for specific
    domains. This might be useful in case you talk to multiple API's with a
    single client.

3.0.0

18 Mar 17:31
Compare
Choose a tag to compare
  • Switched OAuth2 implementation from client-oauth2 to fetch-mw-oauth2.
    This adds support for authorization_code auth, removes 11 dependencies and
    reduces the minified Ketting build from 69KB to 28KB.
  • OAuth2 options now have a new format. The old format is still supported, but
    will be removed from a future version.
  • The baseHref propertyname was renamed to Context on the Link type. The
    new name matches the name from RFC8288. This is a small BC break.