Skip to content

Releases: badgateway/ketting

v7.0.0-beta.0

22 Feb 02:51
1458b19
Compare
Choose a tag to compare
v7.0.0-beta.0 Pre-release
Pre-release
  • Note: this release has a number of BC breaks, which will only affect you if
    you wrote custom format parsers. See the wiki for more details.
  • #326: State objects now have follow() and followAll() methods.
  • #322: Add type, status, detail, instance properties to Problem
    class, for better support of [application/problem+json][6]. (@sazzer).
  • #327: If a response is received with a Content-Location header, the
    response will now immediately get stored in the cache.
  • Support for [draft-dalal-deprecation-header][7]. Ketting will now emit
    warnings if a Deprecation header is detected, and will also provide
    information from the Sunset header and include the uri of the deprecation
    link relation.
  • Support for the latest [HAL-Forms][5] features, including target, step,
    min, max, type, minLength, maxLength, placeholder, cols, rows.
  • Support multiple HAL Forms, as per the latest spec updates. Before only a
    'default' form was supported.
  • Add textarea form field type.
  • #324: Only use {cache: 'no-cache'} with .refresh(), not .get().
  • Fixed a subtle URL resolving bug in browsers. (Node was not affected).

v6.2.0

20 Dec 23:45
b5d81e6
Compare
Choose a tag to compare
  • Updated fetch-mw-oauth2, which has a few new features:
    • Fixed a race condition where two 401's in quick succession could result
      in two OAuth2 refresh requests, ultimately causing 1 to fail.
    • Preemptively refresh if we know when the access token will expire.

v6.1.4

30 Nov 21:56
29baead
Compare
Choose a tag to compare
  • #302: Templated links without template data don't work.

v6.1.3

20 Nov 03:25
09938c0
Compare
Choose a tag to compare
  • Add a getCache() function to Resource, which allows a user to get the
    latest Resource State in a synchronous manner.
  • #292: Parse Siren's 'value' property in action fields.
  • fetch-mw-oauth2 dependency had a bug related to refreshing tokens. This
    release ships with a version without that bug.

v6.1.2

09 Nov 21:25
e1c4a11
Compare
Choose a tag to compare
  • Update the fetch-mw-oauth2 dependency, which adds an onAuthError event.

v6.1.1

06 Nov 05:12
89a0aad
Compare
Choose a tag to compare
  • state.links.delete() can now take a href argument to delete a specific
    link from its list.
  • Improvements in error messaging.
  • Upgrade to Webpack 5

v6.1.0

05 Oct 00:49
85c2a22
Compare
Choose a tag to compare
  • Large changes in the actions/form system. This should still be considered
    experimental and could cause some minor BC breaks.
  • Actions are now effectively a serialization of a HTML form, and it's now
    possible to introspect information such as the target, method,
    contentType, etc.
  • Some refactoring in the State objects, simplifiying these significantly.

v6.0.4

04 Oct 04:42
76f2e5e
Compare
Choose a tag to compare
  • State objects now have an actions() method that return all defined
    actions.

v6.0.3

30 Sep 17:11
9d20af4
Compare
Choose a tag to compare
  • #241: Add application/prs.hal-forms+json to Accept header and treat as
    HAL (@reda-alaoui).
  • #260: action() could not be successfully called on a HAL action.
    (@reda-alaoui).
  • Add action() function to State interface.

v6.0.2

29 Sep 00:13
6b253d4
Compare
Choose a tag to compare
  • #248: Parse JSON objects that have an array at the top-level.
  • #257: ETag and Last-Modified are now treated as 'Content headers', which
    means they will get returned from getContentHeaders().