From 5c0b1481df0a4adc8464bfbc3c91b08cde6e24da Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Wed, 6 Nov 2019 16:19:58 -0500 Subject: [PATCH] Update changelog + bump version --- changelog.md | 23 +++++++++++++++++++++++ package.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index c62770a9..c2ce557f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,28 @@ ChangeLog ========= +5.0.0-alpha.5 (2019-11-06) +-------------------------- + +* 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 (2019-10-31) -------------------------- @@ -499,3 +521,4 @@ ChangeLog [1]: https://github.com/kevinswiber/siren [2]: https://tools.ietf.org/html/draft-nottingham-linked-cache-inv-04 +[3]: https://tools.ietf.org/html/draft-pot-prefer-push diff --git a/package.json b/package.json index d2d68ab0..f8c1d72f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ketting", - "version": "5.0.0-alpha.4", + "version": "5.0.0-alpha.5", "description": "Opiniated HATEAOS / Rest client.", "main": "dist/index.js", "browser": "browser/ketting.min.js",