Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Latest commit

 

History

History
336 lines (185 loc) · 16.7 KB

CHANGELOG.md

File metadata and controls

336 lines (185 loc) · 16.7 KB

1.0.0-dev.29 (2023-05-17)

Bug Fixes

  • respect the time range when getting top posts (cdba4cd)

1.0.0-dev.28 (2023-04-02)

Bug Fixes

  • deps: update dependency tslib to ^2.5.0 (7577950)

1.0.0-dev.27 (2022-12-27)

Bug Fixes

  • deps: update dependency got to ^11.8.6 (82e6310)

1.0.0-dev.26 (2022-12-04)

Bug Fixes

  • deps: update dependency tslib to ^2.4.1 (afecdcf)

1.0.0-dev.25 (2022-12-04)

Bug Fixes

  • unbreak search()ed post comments yet again (09876c6), closes #71

1.0.0-dev.24 (2022-11-12)

Bug Fixes

1.0.0-dev.23 (2022-10-14)

Features

  • make BaseControls::namespace() public (f13d40b)

Bug Fixes

  • handle posts with no default comments (3f48474), closes #67

1.0.0-dev.22 (2022-05-02)

⚠ BREAKING CHANGES

  • Client.users.fetchMe() is now Client.me.fetch().

Features

  • 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)

Code Refactoring

  • add separate controls for MyUser (57adf74)

1.0.0-dev.21 (2022-04-10)

⚠ BREAKING CHANGES

  • getRandomPost() replaced with getRandomPostId().

Features

  • 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)

Bug Fixes

  • fix formatting of debug print (3630026)
  • prevent race condition when updating rate limit data (0d1b3b7)

1.0.0-dev.20 (2022-03-27)

Features

  • 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)

⚠ BREAKING CHANGES

  • Removed the following methods from Subreddit and SubredditControls pending finding a way to make them work:
  • getContributors()
  • getWikiContributors()
  • getMutedUsers()
  • getWikibannedUsers()
  • getModerators()
  • getBannedUsers()

Bug Fixes

  • 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)

Features

  • 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)

⚠ BREAKING CHANGES

  • Renamed type Capcha -> Captcha (fixed typo).

Features

  • add Client.getAuthorizedScopes() (1cdcac2), closes #43
  • allow getting and setting a post's suggested sort (b6235b8)
  • allow locking and unlocking comments (766726b)

Bug Fixes

  • fix typo (Capcha -> Captcha) (774866d)

1.0.0-dev.16 (2022-02-12)

Features

  • add optional debugging via the debug module (fbb7bb3)

1.0.0-dev.15 (2022-02-04)

⚠ BREAKING CHANGES

  • Post.thumbnailHeight and Post.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 using import { Client } from "snoots". If you are using CommonJS switch from const Client = require("snoots") to const { Client } = require("snoots"), or to const Client = require("snoots").Client.
  • All internal usages of null have been replaced with undefined. This includes mapping null to undefined 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 with Client.fromAuthCode().
  • Client.getAuthUrl() has been renamed to Client.makeAuthUrl().

Features

  • 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 with undefined (5ab17b6)
  • replace Client.authFromCode() with Client.fromAuthCode() (8fa90b8)

Bug Fixes

1.0.0-dev.14 (2021-05-29)

Bug Fixes

  • populate Post.removed when missing (#32) (4c7ba39)

1.0.0-dev.13 (2021-05-14)

Bug Fixes

  • make empty listings actually empty (f8467ca)

1.0.0-dev.12 (2021-05-14)

Features

  • add a helper to get the first item from a Listing (61e8e35)

Bug Fixes

  • add a default sort to User(Controls).getPosts() (7a20a03)

1.0.0-dev.11 (2021-05-14)

Features

  • add initial support for interacting with users (bd0fc8b)

1.0.0-dev.10 (2021-04-14)

Performance Improvements

  • fetch extra comments one page at a time (d80b32a)

1.0.0-dev.9 (2021-04-13)

⚠ BREAKING CHANGES

  • 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.

Features

1.0.0-dev.8 (2021-04-13)

Bug Fixes

  • use the correct kind of Comment (6e88c7e)

1.0.0-dev.7 (2021-04-12)

Bug Fixes

  • make tslib a runtime dependency (239a415)

1.0.0-dev.6 (2021-04-12)

Features

  • add getters for moderation listings (1c3876e)

Bug Fixes

1.0.0-dev.5 (2021-04-09)

Features

  • 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)

Features

  • 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)

Features

  • 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)

Bug Fixes

  • batch comments 75 at a time (d3cad93)
  • mark the 'approved' boolean as optional (0d71a50)

1.0.0-dev.2 (2021-03-14)

Bug Fixes

  • store and use the given refresh token (47be0af)

1.0.0-dev.1 (2021-03-14)

Features

  • the initial (dev) release!