v0.9.0
Thank you to all who contributed to this release! JRAW v0.9.0 contains several breaking changes as well as many bug fixes and enhancements.
Breaking API changes
Class definitions
- Moved Dimension, JrawUtils, NoSuchEnumConstantException, and Version classes into new package
net.dean.jraw.util
- Award renamed to Trophy
- Removed CompoundSubredditPaginator (merged with SubredditPaginator)
- Captcha related methods in RedditClient can moved to
net.dean.jraw.managers.CaptchaHelper
- RelatedPaginator removed as the reddit API no longer supports it
Method definitions
getCreatedUtc()
methods have been removed.getCreated()
now returns UTC dates and functions the same way asgetCreatedUtc()
- SubredditPaginator constructor takes varargs in order to fulfill the functionality of the now-removed CompoundSubredditPaginator
AccountManager.updateSelfpost
renamed toupdateContribution
, now takes a PublicContribution rather than aSubmission
to allow for comment editing- AccountPreferencesEditor simplified down to key-value pairs instead of methods for each property
InboxManager.setRead()
now supports multiple messages to mark as read.RedditClient.getPreferences()
now accepts a List instead of varargsHttpLogger.Component.RESPONSE_BODY_ALWAYS_FULL
is now implemented as a property (setResponseBodyAlwaysFull()
)
New features
- Captcha support for private messages (thanks to @rubenmayayo)
- Added
getSuggestedSort()
,isLocked()
, andgetThumbnails()
to Submission - Fluent API: Added AuthenticatedUserReference and InboxReference
- UserSubredditsPaginator now has two
accumulateMergedAll()
methods for easily gathering a list of all of a user's subreddits (thanks to @worker8) - Added CloudSearch support to SubmissionSearchPaginator
- Added missing Q&A comment sort
- Added
Sorting.GILDED
Internal changes
- Script and application-only apps now authenticate with less network overhead (thanks to @fbis251)
- OkHttpClient timeout set to 10 seconds by default
- Updated to OkHttp 3
- Gradle wrapper updated to 2.13 (thanks to @fbis251)
Bug fixes
- Fixed multireddit URL detection regex (thanks to @rubenmayayo)
- Fixed
RedditClient.getTrophies()
(thanks to @rubenmayayo) Submission.getThumbnailType()
now properly handles a null thumbnail (thanks to @zglazer)- Fixed loading a thread continuation on some instances
- Fixed multireddit sorting (thanks to @ccrama)
RedditClient.getSubreddit()
now throws an IllegalArgumentException when the subreddit is not viewable instead of failing later when trying to access JSON data- Handle HTTP 204 No Content responses that don't have Content-Type headers (thanks to @zglazer)