Skip to content

Releases: Lanred-Dev/justreddit

v5.2.3

27 Oct 05:50

Choose a tag to compare

This version fixes references to the reply() method in the README.

v.5.2.2

27 Oct 05:46

Choose a tag to compare

v5.2.1 and v5.2.2 both bring some small improvements and bug fixes.

What’s been fixed

  • randomPost() now uses the correct method when no subreddit is provided

What's been improved

  • A error will now be thrown when randomPost() is unable to find a valid post
  • fetchEndpoint() error messages have been improved for consistency and clarity

Full Changelog: v5.2.1...v5.2.2

v5.2.0

13 Oct 18:43

Choose a tag to compare

This update should fix the broken methods (hopefully 😓) introduced in v5.0.0 and bring a few improvements (such as doc comments)!

What’s been fixed

  • user() now returns the user data instead of erroring

What’s been changed

  • sortingOption in randomPost() has been replaced with RandomPostSortingMethod
  • subReddit() and randomSubReddit() have been renamed to sub() and randomSub()
  • Added support for sorting method (RandomSubSortingMethod) parameter in randomSub()
  • All references of subReddit or subreddit have been changed to just sub

What’s new

  • Added tests for core methods
  • Added doc comments to all public facing methods and private util methods

Full Changelog: v5.1.0...v5.2.0

v5.1.0

07 May 21:39

Choose a tag to compare

I know its been ~2 years since the last release and that this package (while it never had much of a following to begin with) has died off but I still decided to give it a rewrite, mainly just for fun. So here is everything I did!

The new stuff

  • subreddit() method for getting subreddit metadata
  • post() method for getting post metadata
  • comment() method for getting post comment metadata
  • user() method for getting user metadata

What’s being said goodbye to

  • randomImage() and randomPostFromSub() are no longer methods. Instead call randomPost() (which is what randomPostFromSub() did behind the scenes) until the image property is not null

What’s been changed

  • The package now uses the native fetch method instead of node-fetch
  • Errors will now be thrown instead of returned (keep this in mind when upgrading!)
  • Improved type handling (property names have changed!)
  • randomSubreddit() now returns the subreddit metadata instead of just the name and uses the most popular subreddits instead of a predefined list
  • randomPost() now returns a popular post from the entirety of Reddit if no subreddit is provided

Full Changelog: v4.2.0...v5.1.0

v4.0.2

07 Feb 04:13

Choose a tag to compare

a rewrite of some code. fixes to random image functions. new subreddit info command.

Full Changelog: v4.0.1...v4.0.2

v3.0.0

20 May 02:21
8de921b

Choose a tag to compare

A major release with the module being re-written.

New

  • Types
  • randomSub

Changes

  • re-written in TS