1.0.0-dev.29 (2023-05-17)
- respect the time range when getting top posts (cdba4cd)
1.0.0-dev.28 (2023-04-02)
- deps: update dependency tslib to ^2.5.0 (7577950)
1.0.0-dev.27 (2022-12-27)
- deps: update dependency got to ^11.8.6 (82e6310)
1.0.0-dev.26 (2022-12-04)
- deps: update dependency tslib to ^2.4.1 (afecdcf)
1.0.0-dev.25 (2022-12-04)
1.0.0-dev.24 (2022-11-12)
1.0.0-dev.23 (2022-10-14)
- make BaseControls::namespace() public (f13d40b)
1.0.0-dev.22 (2022-05-02)
Client.users.fetchMe()
is nowClient.me.fetch()
.
- add MyUserControls::getContributorSubreddits() (48f41c0)
- add MyUserControls::getModeratedSubreddits() (291c74f)
- add MyUserControls::getSubscribedSubreddits() (2ff0f50)
- add SubredditControls::getDefault() (1d170a4)
- add SubredditControls::getNew() (49be5ca)
- add SubredditControls::getPopular() (cc91c08)
- add SubredditControls::getPremium() (5a1274b)
- add UserControls::isUsernameAvailable() (3a56e77)
- add separate controls for MyUser (57adf74)
1.0.0-dev.21 (2022-04-10)
getRandomPost()
replaced withgetRandomPostId()
.
- add a way to get the last-known rate limit status for a client (20f285f)
- add debug logging for rate limit status (7ef9e83)
- make calls to /random go entirely through OAuth (87c9640)
- replace getRandomPost() with getRandomPostId() (8f56359)
- fix formatting of debug print (3630026)
- prevent race condition when updating rate limit data (0d1b3b7)
1.0.0-dev.20 (2022-03-27)
- add a way to get banned users (de2f41b)
- add a way to get muted users (f4d9500)
- add a way to get subreddit contributors (b0f7cef), closes #49
- add a way to get the list of moderators (7cad99f)
- add a way to get wiki contributors (03ab9ef)
- add a way to get wikibanned users (7e4e603)
1.0.0-dev.19 (2022-03-27)
- Removed the following methods from Subreddit and SubredditControls pending finding a way to make them work:
- getContributors()
- getWikiContributors()
- getMutedUsers()
- getWikibannedUsers()
- getModerators()
- getBannedUsers()
- make stubbed listings actually work (a89c115)
- make SubredditControls::getSortedComments() work (bf0518e)
- remove broken methods for now (aedc8bc)
1.0.0-dev.18 (2022-03-27)
- add a method to get the approved contributors in a subreddit (c1edba2), closes #49
- add a way to get the approved wiki contributors for a subreddit (aaf06e7)
- add a way to get the list of moderators in a subreddit (8e1fea9)
- add a way to get the users banned from a subreddit (85831df)
- add a way to manage wikibanned users in a subreddit (8abe658)
- add controls to managing muted users in a subreddit (d057dc0)
1.0.0-dev.17 (2022-03-05)
- Renamed type
Capcha
->Captcha
(fixed typo).
- add Client.getAuthorizedScopes() (1cdcac2), closes #43
- allow getting and setting a post's suggested sort (b6235b8)
- allow locking and unlocking comments (766726b)
- fix typo (Capcha -> Captcha) (774866d)
1.0.0-dev.16 (2022-02-12)
- add optional debugging via the
debug
module (fbb7bb3)
1.0.0-dev.15 (2022-02-04)
Post.thumbnailHeight
andPost.thumbnailWidth
have been temporarily removed. They were not yet supposed to be exposed, but they slipped through the cracks.- There is no longer a default export. If you are using
TypeScript or ESM switch from using
import Client from "snoots"
to usingimport { Client } from "snoots"
. If you are using CommonJS switch fromconst Client = require("snoots")
toconst { Client } = require("snoots")
, or toconst Client = require("snoots").Client
. - All internal usages of
null
have been replaced withundefined
. This includes mappingnull
toundefined
in Reddit's API responses. If you were checking any values for existence with=== null
you should replace that check with=== undefined
(or== null
or== undefined
). Client.authFromCode()
has been replaced withClient.fromAuthCode()
.Client.getAuthUrl()
has been renamed toClient.makeAuthUrl()
.
- docs: update typedoc to 0.22 (a8260d7)
- move all Reddit REST api interaction into new Gateway classes (8c0856a)
- remove default export (3df8d41)
- rename Client.getAuthUrl() -> Client.makeAuthUrl() (ba87fdf)
- replace
null
withundefined
(5ab17b6) - replace Client.authFromCode() with Client.fromAuthCode() (8fa90b8)
- export Replyable (8fc0ddf)
- remove unused properties (17a5f36)
- update camelcase to 6.3.0 (72ee276)
- update got to 11.8.3 (2ba1587)
- update tslib to 2.3.1 (076e4ab)
1.0.0-dev.14 (2021-05-29)
1.0.0-dev.13 (2021-05-14)
- make empty listings actually empty (f8467ca)
1.0.0-dev.12 (2021-05-14)
- add a helper to get the first item from a Listing (61e8e35)
- add a default sort to User(Controls).getPosts() (7a20a03)
1.0.0-dev.11 (2021-05-14)
- add initial support for interacting with users (bd0fc8b)
1.0.0-dev.10 (2021-04-14)
- fetch extra comments one page at a time (d80b32a)
1.0.0-dev.9 (2021-04-13)
- This renames Listing.each to Listing.forEach, and
it is now no longer the preferred method of iteration. Instead you
should probably use
for await
loops.
- make Listings iterable (868d58d)
1.0.0-dev.8 (2021-04-13)
- use the correct kind of Comment (6e88c7e)
1.0.0-dev.7 (2021-04-12)
- make tslib a runtime dependency (239a415)
1.0.0-dev.6 (2021-04-12)
- add getters for moderation listings (1c3876e)
- export Subreddit (1f6041d)
1.0.0-dev.5 (2021-04-09)
- add a method to (re)authorize a client (d86550d)
- add a way to get the refresh token (e55b9e2)
- add OAuth flow (7029a16)
1.0.0-dev.4 (2021-04-08)
- add a helper function for crossposting (19b7fc5)
- add a way to search posts (00c48ec)
- add blockAuthor() (58feff1)
- add initial support for Subreddits (b5f09ea)
1.0.0-dev.3 (2021-03-26)
- add a function to approve an item (11cde28)
- add a helper to check if any items match (3f9403d)
- add a way to execute a function on each page of a listing (313c4af)
- add a way to reply to content (f5cbf7e)
- add partial support for Posts (808df45)
1.0.0-dev.2 (2021-03-14)
- store and use the given refresh token (47be0af)
- the initial (dev) release!