From e223ee1d247bf9e30057cc5dcbab58b2155fb6c6 Mon Sep 17 00:00:00 2001 From: Vartan Benohanian Date: Sun, 24 Jan 2021 23:03:51 -0500 Subject: [PATCH] Edit change log, move it to root directory of repo Signed-off-by: Vartan Benohanian --- reddit/CHANGELOG.md => CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename reddit/CHANGELOG.md => CHANGELOG.md (83%) diff --git a/reddit/CHANGELOG.md b/CHANGELOG.md similarity index 83% rename from reddit/CHANGELOG.md rename to CHANGELOG.md index 198273b..46099e3 100644 --- a/reddit/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## [v2.0.0] - 2021-01-24 - The underlying `*http.Client` is now passed as an option when initializing a client. -- Add `DefaultClient()` method which returns a valid, read-only client with limited access to the Reddit API. +- Use value type instead of pointer for credentials when initializing a client. +- Add `DefaultClient()` method which returns a valid, read-only client with limited access to the Reddit API. To create a custom one, `NewReadonlyClient()` can be used. - Remove the `before` anchor from responses. - The decoding process for a listing response has been revamped, and the `after` anchor is now included in the `*Response` object. For example, when fetching a user's comments, instead of getting a struct containing the list of comments, and the `after` value, you now get the list of comments directly, and the `after` can be obtained from the `*Response`. - Create `WikiService`, `LiveThreadService`, and `WidgetService`.