draw 0.3.0 copy "draw: ^0.3.0" to clipboard
draw: ^0.3.0 copied to clipboard

outdated

A Reddit API wrapper for Dart, inspired by PRAW.

Change Log #

Version 0.3.0 (2018/05/05) #

Major breaking changes: #

Dropped support for Dart 1.x. Flutter has moved to enable Dart 2 by default which required some changes in DRAW that are not compatible with Dart 1.x. Some of these changes required some method signatures to be modified, but this shouldn't require any changes for users.

If running in a command-line script, that script must be run using a dev SDK while passing the --preview-dart-2 flag.

If used in a Flutter application, --preview-dart-2 is enabled by default as of the Flutter Beta 2 release.

Functionality: #

  • Basic Multireddit functionality:
    • Added Multireddit.parse(reddit, data) constructor that will create an instance of a Multireddit, given the correct Map of data.
    • Added add(subreddit) method to add the corresponding subreddit to the instance of Multireddit. subreddit can be of type Subreddit or String.
    • Added delete() method to delete the multireddit.
    • Added copy() and copy(multiName), this will create a copy of the Multireddit for for the currently authenticated user and return an instance of the new Multireddit encapsulated as a Future. When multiName is provided it will set the display name of the new Multireddit to multiName.
    • Added getters for the following properties: keyColor, iconName, subreddits, author displayName, visibility, weightingScheme, canEdit, over18.
  • Comment and Submission moderation.
  • Miscellaneous bug fixes.

Version 0.2.1 (2018/04/17) #

  • Added Reddit.comment, which allows for the creation of CommentRef objects from a comment ID or url.
  • Added CommentRef.populate and Comment.refresh.
  • Added likes getter to Submission.
  • Miscellaneous fixes for minor bugs related to CommentForest.

Version 0.2.0 (2018/04/13) #

Breaking changes:

  • Subreddit.submissions has been removed as the Reddit API endpoint no longer exists. See this post for context.

Miscellaneous:

  • Added initial support for Fuchsia. draw.ini configurations are not yet supported on this platform.
  • Loosened some version restrictions for pub packages.

Version 0.1.6 (2018/04/08) #

  • Added the property Reddit.front, which exposes methods to retrieve content from the Reddit front page.

Version 0.1.5 (2018/04/03) #

  • Added Reddit.restoreAuthenticatedInstance, which can be used to create a Reddit instance from previously cached credentials.
  • Documentation improvements.
  • Various bug fixes.

Version 0.1.4 (2018/03/31) #

  • Added SubredditModeration, a class which implements moderator functionality for Subreddits.
  • Fixed issue #46 which was causing WebAuthenticator.url to hit an assertion when compactLogin was set to true.

Version 0.1.3 (2018/03/22) #

  • Added additional convenience accessors to various classes, including Comment, Redditor, Submission, and Subreddit.
  • Added classes SubredditFilters and SubredditQuarantine.

Version 0.1.2 (2018/03/04) #

Breaking changes:

  • Removed property method. Properties of initialized objects that do not yet have convenience accessors can be accessed through the data property
  • Removed fullname, id, and data fields from lazily initialized objects
  • Removed refresh() from lazily initialized objects

Miscellaneous:

  • Improved documentation
  • Various internal refactoring

Version 0.1.1 (2018/03/03) #

Minor bug fix:

  • Fixed issue where DRAWConfigContext would throw an exception on Android and iOS.

Version 0.1.0 (2018/03/03) #

Breaking changes:

  • Created separate classes for lazily initialized and initialized instances
  • Deprecated the property method. Will be completely removed in the near future

Major changes and bug fixes:

  • Added Inbox and Message functionality
  • Added convenience accessors for common properties. Properties without an accessor can be accessed through the data map in each object
  • Additional fixes to DRAWConfigContext
  • Rolled package:quiver forward to version 0.28.0 to match that used by flutter_test

Version 0.0.3 (2018/01/22) #

Minor changes and bug fixes:

  • Fixed bug that caused authentication to fail when using draw.ini with the ScriptAuthenticator
  • Refactored DRAWConfigContext

Version 0.0.2 (2017/12/15) #

Minor updates:

  • Added CHANGELOG.md
  • Formatted sample code in README.md
  • Renamed .analysis_options to analysis_options.yaml
  • Documentation added for classes and methods that had none
  • Commented out currently unimplemented functionality to clean up generated documents

Version 0.0.1 (2017/12/08) #

Initial release with basic functionality, including:

  • OAuth2 support for login
  • Comment, Redditor, and Subreddit interfaces
20
likes
0
points
112
downloads

Publisher

unverified uploader

Weekly Downloads

A Reddit API wrapper for Dart, inspired by PRAW.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, color, http, ini, oauth2, path, quiver

More

Packages that depend on draw