Skip to content

Releases: praw-dev/asyncpraw

v7.2.0

25 Feb 07:16
Compare
Choose a tag to compare

7.2.0 (2021/02/25)

Added

  • :class:.Reddit keyword argument token_manager.
  • :class:.FileTokenManager and its parent abstract class :class:.BaseTokenManager.

Deprecated

  • The configuration setting refresh_token is deprecated and its use will result in a
    :py:class:DeprecationWarning. This deprecation applies in all ways of setting
    configuration values, i.e., via praw.ini, as a keyword argument when initializing
    an instance of :class:.Reddit, and via the PRAW_REFRESH_TOKEN environment
    variable. To be prepared for Async PRAW 8, use the new :class:.Reddit keyword
    argument token_manager. See :ref:refresh_token in Async PRAW's documentation for
    an example.
  • :meth:.me will no longer return None when called in :attr:.read_only mode
    starting in Async PRAW 8. A :py:class:DeprecationWarning will be issued. To switch
    forward to the Async PRAW 8 behavior set praw8_raise_exception_on_me=True in your
    asyncpraw.Reddit(...) call.

v7.1.1

11 Feb 19:44
Compare
Choose a tag to compare

7.1.1 (2021/02/11)

Added

  • Add method :meth:~.Subreddits.premium to reflect the naming change in Reddit's API.
  • Ability to submit image galleries with :meth:.submit_gallery.
  • Ability to pass a gallery url to :meth:.Reddit.submission.
  • Ability to specify modmail mute duration.
  • Add method :meth:.invited to get invited moderators of a subreddit.
  • Ability to submit text/self posts with inline media.
  • Add method :meth:~.Submission.award and :meth:~.Comment.award with the ability to
    specify type of award, anonymity, and message when awarding a submission or comment.
  • Ability to specify subreddits by name using the subreddits parameter in
    :meth:.Reddit.info.
  • Added :meth:.Reddit.close to close the requestor session.
  • Ability to use :class:.Reddit as an asynchronous context manager that automatically
    closes the requestor session on exit.

Changed

  • :class:~.BoundedSet will now utilize a Last-Recently-Used (LRU) storing mechanism,
    which will change the order in which elements are removed from the set.
  • Improved :meth:.submit_image and :meth:.submit_video performance in slow
    network environments by removing a race condition when establishing a
    websocket connection.

Deprecated

  • :meth:~.Subreddits.gold is superseded by :meth:~.Subreddits.premium.
  • :meth:~.Submission.gild is superseded by :meth:~.Submission.award.
  • :meth:~.Comment.gild is superseded by :meth:~.Comment.award.
  • PRAWException is superseded by :class:.AsyncPRAWException.

Fixed

  • An issue where leaving as a moderator fails if you are using token auth.
  • An issue where an incorrect error was being raised due to invalid submission urls.
  • A bug where if you call .parent() on a comment it clears its replies.
  • An issue where performing a deepcopy on an :class:.RedditBase object will fail.
  • Some cases where streams yield the same item multiple times. This cannot be
    prevented in every case.
  • An issue where streams could get stuck on a deleted item and never pull new items.
  • Fix subreddit style asset uploading.

v7.1.0

17 Jul 00:53
438ce77
Compare
Choose a tag to compare

First official Async PRAW release!

v7.1.0.pre1

16 Jul 05:48
07c1063
Compare
Choose a tag to compare
v7.1.0.pre1 Pre-release
Pre-release
Bump version correctly

Signed-off-by: LilSpazJoekp <[email protected]>