Skip to content

Releases: badgateway/ketting

2.5.1

18 Mar 17:30
Compare
Choose a tag to compare
  • #120: The system that de-duplicates identical requests will cache failures
    forever. This is now fixed. Highly recommended update.

2.5.0

22 Jan 19:16
Compare
Choose a tag to compare
  • Basic JSON:API support. Currently only links appearing in the top-level
    document are supported.
  • #113: Support for Typescript environments that don't have esModuleInterop
    set to true.
  • Added a 'go' function for easily getting resources based on relative uris.

2.4.0

05 Nov 19:48
Compare
Choose a tag to compare
  • The Resource class is now a generic typescript type. This allows a user
    of the library to define specific 'types of resources' and leverage static
    typing for GET and PUT requests.
  • A few documentation updates.

2.3.0

10 Oct 22:09
Compare
Choose a tag to compare
  • Better handling of Content-Types. When following HAL links that have a
    type parameter, the type is rememebered and used in Accept and
    Content-Type headers, for GET, PUT and POST requests.
  • If no type was provided, it will use the last Content-Type header from
    GET response.
  • If that GET request never happened, it uses the first 'default'
    Content-Type from client.contentTypes, and enumerates all mime-types from
    that list for Accept headers.
  • No longer incorrectly sends text/plain Content-Types.
  • Optimization: If multiple calls are made to ask for a Resource's current
    representation, all these calls are coalesced into one. The big benefit is
    that there are no longer multiple parallel GET requests.
  • Webpack browser build is set to 'production' mode.
  • Fixed: After refreshing an OAuth2 token, the new access token wasn't used.

2.2.1

10 Oct 22:09
Compare
Choose a tag to compare
  • Refreshing OAuth2 tokens without having a refresh_token.
    client_credentials in particular shouldn't return a refresh_token, so
    for these cases, new access tokens are acquired using a new
    client_credentials request.

2.1.0

14 Sep 14:56
45ebb15
Compare
Choose a tag to compare
  • No longer ships with cross-fetch and whatwg-fetch. To use this library
    in a browser, you must run this in a browser that supports fetch or
    provide your own polyfill.
  • Updated dependencies, including an upgrade to typescript 3.

2.0.4

14 Sep 14:54
Compare
Choose a tag to compare
  • Fixed bug: HAL title values weren't parsed.

2.0.3

14 Sep 14:53
Compare
Choose a tag to compare
  • Exporting 'Resource' for TS purposes.

2.0.2

14 Sep 14:53
Compare
Choose a tag to compare
  • Updated dependencies
  • Fixed a typescript definition problem.

2.0.1

14 Sep 14:50
Compare
Choose a tag to compare
  • Same as last build.