Ketting Versions Save

The HATEOAS client for javascript

v8.0.0-alpha.3

11 months ago
  • #476: When cache: no-store is specified on fetch() functions, Ketting will now no longer store responses with a Content-Location in its internal cache.
  • #477: When storing responses with Content-Location, bodies are now cloned before storing so callees can still read the data.
  • Testing Node 20.

v8.0.0-alpha.2

1 year ago
  • Added HAL 'name' property to links.
  • Updates for changes in Typescript strictness.

v8.0.0-alpha.1

1 year ago
  • Ketting requires Node 16 now.
  • No longer using node-fetch, as fetch() is natively supported on Node 18. If you are using Ketting with Node 16, you should install node-fetch or run node with the --experimental-fetch option.
  • Upgraded OAuth2 dependency to [@badgateway/oauth2-client][8].
  • Submitting actions with missing required fields will now throw an exception.
  • Actions that have pre-filled values will auto submit those values unless they are explicitly overridden.
  • #459: Now uses the correct spelling of 'placeholder' in HAL forms (@dayre).
  • Export the FetchMiddleware type.
  • #444: Allow multiple query parameters to be set with the same key when specifying template variables. (@qmachard)
  • Upgrade to Typescript 5

v7.5.1

1 year ago
  • Typescript 4.8 support!

v7.5.0

1 year ago
  • #401: The mechanism that de-duplicates identical requests is now a bit smarter, and will not de-duplicate requests that are significantly different such as a different Accept header. (@hugothomas @reda-alaoui)
  • #450: value field for some HAL inputs were ignored (color, checkbox, radio).

Special acknowledgement to @hugothomas and @reda-alaoui . I'm sorry it took so long to get this feature out.

v7.4.2

2 years ago
  • Added support for minLength and maxLength attributes on textarea fields in HAL Forms. (@dayre).

v7.4.1

2 years ago
  • #433: Fixed race condition when processing nested _embedded resources and emiting update events. The order at which they happen is now consistent. When the update event happens, the entire cache should be up to date.
  • #328: Resource.go() and Client.go() can now take a Link object as the argument.

v7.4.0

2 years ago
  • #426: Setting up cache dependencies through inv-by links is now possible via HAL _links and in embedded resources, as well as links from all the other formats.
  • #425: Fewer warnings related to 'Max listeners exceeded'. The default of 10 is too low for typical Ketting applications.

v7.3.0

2 years ago
  • #416: Cache-dependencies setup with inv-by links are now respected when manually clearing resource caches.
  • #414: Don't attempt to parse the response if it had a 204 status, even if there was a Content-Type header.
  • #408: Emit a warning when an _embedded HAL item is missing a good self link.

v7.2.0

2 years ago
  • #395: relative uris in embedded hal documents are now resolved using the 'self' link in the embedded document, instead of the parent. although not explicitly said in the hal standards, i feel this is the right behavior. most users will not see a difference, but if you relied on the old behavior this could cause some subtle bc breaks.