Releases: badgateway/ketting
Releases · badgateway/ketting
2.5.1
- #120: The system that de-duplicates identical requests will cache failures
forever. This is now fixed. Highly recommended update.
2.5.0
- 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
- 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
- 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
- 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
- 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
- Fixed bug: HAL title values weren't parsed.
2.0.3
- Exporting 'Resource' for TS purposes.
2.0.2
- Updated dependencies
- Fixed a typescript definition problem.