Releases: Lanred-Dev/justreddit
Releases · Lanred-Dev/justreddit
v5.2.3
v.5.2.2
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
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
sortingOptioninrandomPost()has been replaced withRandomPostSortingMethodsubReddit()andrandomSubReddit()have been renamed tosub()andrandomSub()- Added support for sorting method (
RandomSubSortingMethod) parameter inrandomSub() - All references of
subRedditorsubreddithave been changed to justsub
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
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 metadatapost()method for getting post metadatacomment()method for getting post comment metadatauser()method for getting user metadata
What’s being said goodbye to
randomImage()andrandomPostFromSub()are no longer methods. Instead callrandomPost()(which is whatrandomPostFromSub()did behind the scenes) until theimageproperty is notnull
What’s been changed
- The package now uses the native
fetchmethod instead ofnode-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 listrandomPost()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
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
A major release with the module being re-written.
New
- Types
- randomSub
Changes
- re-written in TS