Skip to content

Commit 9a233d6

Browse files
authored
0.4.0 Release (#101)
* Added preview property to Submission; prepped for 0.4.0 release * Updated Travis and dart_coveralls config
1 parent 6846e84 commit 9a233d6

File tree

6 files changed

+256
-179
lines changed

6 files changed

+256
-179
lines changed

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
language: dart
2-
sudo: false
3-
4-
os:
5-
- linux
6-
7-
dart:
8-
- dev
9-
10-
script:
11-
- ./tools/travis.sh
12-
- dart test/test_all.dart
13-
- dartfmt -n --set-exit-if-changed .
14-
- dartanalyzer --strong --fatal-warnings --fatal-lints lib/ test/
1+
language: dart
2+
sudo: false
3+
4+
os:
5+
- linux
6+
7+
dart:
8+
- dev
9+
10+
script:
11+
- ./tool/travis.sh
12+
- dart test/test_all.dart
13+
- dartfmt -n --set-exit-if-changed .
14+
- dartanalyzer --strong --fatal-warnings --fatal-lints lib/ test/

CHANGELOG.md

Lines changed: 164 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,164 @@
1-
Change Log
2-
=================================
3-
## Version 0.3.4 (2018/06/12)
4-
### Deprecation Notice:
5-
`Reddit.createInstance` has been deprecated and will be removed in the 0.4.0 release. Please use one of the following static methods instead:
6-
7-
* `createReadOnlyInstance`
8-
* `createScriptInstance`
9-
* `createUntrustedReadOnlyInstance`
10-
* `createWebFlowInstance`
11-
* `restoreAuthenticatedInstance`
12-
13-
### Other changes:
14-
* Added the following static methods to `Reddit`:
15-
* `createWebFlowInstance`
16-
* Added live tests to exercise the web implicit grant flow authentication mode.
17-
18-
19-
## Version 0.3.3 (2018/06/08)
20-
* Added the following static methods to `Reddit`:
21-
* `createReadOnlyInstance`
22-
* `createScriptInstance`
23-
* `createUntrustedReadOnlyInstance`
24-
25-
This should make creating `Reddit` instances simpler and easier to debug.
26-
* Added live tests to exercise the read-only and script authentication modes.
27-
28-
## Version 0.3.2 (2018/05/07)
29-
Bug fixes:
30-
* Fixed additional Dart 2 runtime type errors.
31-
32-
## Version 0.3.1 (2018/05/06)
33-
Bug fixes:
34-
* Fixed exception thrown from `WebAuthenticator` when running in Dart 2.
35-
36-
## Version 0.3.0 (2018/05/05)
37-
### Major breaking changes:
38-
Dropped support for Dart 1.x. Flutter has moved to enable Dart 2 by default
39-
which required some changes in DRAW that are not compatible with Dart 1.x.
40-
Some of these changes required some method signatures to be modified, but
41-
this shouldn't require any changes for users.
42-
43-
If running in a command-line script, that script must be run using a dev SDK
44-
while passing the `--preview-dart-2` flag.
45-
46-
If used in a Flutter application, `--preview-dart-2` is enabled by default as
47-
of the Flutter Beta 2 release.
48-
49-
### Functionality:
50-
* Basic `Multireddit` functionality:
51-
* Added `Multireddit.parse(reddit, data)` constructor that will create an instance of
52-
a `Multireddit`, given the correct `Map` of `data`.
53-
* Added `add(subreddit)` method to add the corresponding `subreddit` to the
54-
instance of `Multireddit`. `subreddit` can be of type `Subreddit` or `String`.
55-
* Added `delete()` method to delete the multireddit.
56-
* Added `copy()` and `copy(multiName)`, this will create a copy of the `Multireddit` for
57-
for the currently authenticated user and return an instance of the new `Multireddit`
58-
encapsulated as a `Future`. When `multiName` is provided it will set the display name
59-
of the new `Multireddit` to `multiName`.
60-
* Added getters for the following properties: `keyColor`, `iconName`, `subreddits`, `author`
61-
`displayName`, `visibility`, `weightingScheme`, `canEdit`, `over18`.
62-
* Comment and Submission moderation.
63-
* Miscellaneous bug fixes.
64-
65-
## Version 0.2.1 (2018/04/17)
66-
* Added `Reddit.comment`, which allows for the creation of `CommentRef` objects
67-
from a comment ID or url.
68-
* Added `CommentRef.populate` and `Comment.refresh`.
69-
* Added `likes` getter to `Submission`.
70-
* Miscellaneous fixes for minor bugs related to `CommentForest`.
71-
72-
## Version 0.2.0 (2018/04/13)
73-
Breaking changes:
74-
* `Subreddit.submissions` has been removed as the Reddit API endpoint no longer
75-
exists. See [this
76-
post](https://www.reddit.com/r/changelog/comments/7tus5f/update_to_search_api/)
77-
for context.
78-
79-
Miscellaneous:
80-
* Added initial support for Fuchsia. draw.ini configurations are not yet
81-
supported on this platform.
82-
* Loosened some version restrictions for pub packages.
83-
84-
## Version 0.1.6 (2018/04/08)
85-
* Added the property `Reddit.front`, which exposes methods to retrieve content
86-
from the Reddit front page.
87-
88-
## Version 0.1.5 (2018/04/03)
89-
* Added `Reddit.restoreAuthenticatedInstance`, which can be used to create a
90-
Reddit instance from previously cached credentials.
91-
* Documentation improvements.
92-
* Various bug fixes.
93-
94-
## Version 0.1.4 (2018/03/31)
95-
* Added `SubredditModeration`, a class which implements moderator functionality for `Subreddit`s.
96-
* Fixed issue #46 which was causing `WebAuthenticator.url` to hit an assertion when `compactLogin` was set
97-
to `true`.
98-
99-
## Version 0.1.3 (2018/03/22)
100-
* Added additional convenience accessors to various classes, including `Comment`, `Redditor`, `Submission`,
101-
and `Subreddit`.
102-
* Added classes `SubredditFilters` and `SubredditQuarantine`.
103-
104-
## Version 0.1.2 (2018/03/04)
105-
Breaking changes:
106-
* Removed `property` method. Properties of initialized objects that do not yet have convenience
107-
accessors can be accessed through the `data` property
108-
* Removed `fullname`, `id`, and `data` fields from lazily initialized objects
109-
* Removed `refresh()` from lazily initialized objects
110-
111-
Miscellaneous:
112-
* Improved documentation
113-
* Various internal refactoring
114-
115-
## Version 0.1.1 (2018/03/03)
116-
Minor bug fix:
117-
* Fixed issue where `DRAWConfigContext` would throw an exception on Android and iOS.
118-
119-
## Version 0.1.0 (2018/03/03)
120-
Breaking changes:
121-
* Created separate classes for lazily initialized and initialized instances
122-
* Deprecated the `property` method. Will be completely removed in the near future
123-
124-
Major changes and bug fixes:
125-
* Added `Inbox` and `Message` functionality
126-
* Added convenience accessors for common properties. Properties without an accessor can be accessed
127-
through the `data` map in each object
128-
* Additional fixes to `DRAWConfigContext`
129-
* Rolled `package:quiver` forward to version `0.28.0` to match that used by `flutter_test`
130-
131-
## Version 0.0.3 (2018/01/22)
132-
Minor changes and bug fixes:
133-
* Fixed bug that caused authentication to fail when using `draw.ini` with the `ScriptAuthenticator`
134-
* Refactored `DRAWConfigContext`
135-
136-
## Version 0.0.2 (2017/12/15)
137-
Minor updates:
138-
* Added `CHANGELOG.md`
139-
* Formatted sample code in `README.md`
140-
* Renamed `.analysis_options` to `analysis_options.yaml`
141-
* Documentation added for classes and methods that had none
142-
* Commented out currently unimplemented functionality to clean up generated
143-
documents
144-
145-
## Version 0.0.1 (2017/12/08)
146-
Initial release with basic functionality, including:
147-
* OAuth2 support for login
148-
* `Comment`, `Redditor`, and `Subreddit` interfaces
1+
Change Log
2+
=================================
3+
## Version 0.4.0 (2018/09/01)
4+
### Major breaking changes:
5+
`Reddit.createInstance` has been removed. Please use one of the following static methods instead:
6+
7+
* `createReadOnlyInstance`
8+
* `createScriptInstance`
9+
* `createUntrustedReadOnlyInstance`
10+
* `createWebFlowInstance`
11+
* `restoreAuthenticatedInstance`
12+
13+
## Other changes:
14+
* Bumped SDK constraints to reflect official Dart 2.0 release.
15+
* Added `SubmissionPreview` and `PreviewImage` which represent preview images for a `Submission`.
16+
* Added `preview` to `Submission`, which returns a `List<SubmissionPreview>`.
17+
* Fixed various bugs discovered while improving code coverage.
18+
19+
## Version 0.3.4 (2018/06/12)
20+
### Deprecation Notice:
21+
`Reddit.createInstance` has been deprecated and will be removed in the 0.4.0 release. Please use one of the following static methods instead:
22+
23+
* `createReadOnlyInstance`
24+
* `createScriptInstance`
25+
* `createUntrustedReadOnlyInstance`
26+
* `createWebFlowInstance`
27+
* `restoreAuthenticatedInstance`
28+
29+
### Other changes:
30+
* Added the following static methods to `Reddit`:
31+
* `createWebFlowInstance`
32+
* Added live tests to exercise the web implicit grant flow authentication mode.
33+
34+
35+
## Version 0.3.3 (2018/06/08)
36+
* Added the following static methods to `Reddit`:
37+
* `createReadOnlyInstance`
38+
* `createScriptInstance`
39+
* `createUntrustedReadOnlyInstance`
40+
41+
This should make creating `Reddit` instances simpler and easier to debug.
42+
* Added live tests to exercise the read-only and script authentication modes.
43+
44+
## Version 0.3.2 (2018/05/07)
45+
Bug fixes:
46+
* Fixed additional Dart 2 runtime type errors.
47+
48+
## Version 0.3.1 (2018/05/06)
49+
Bug fixes:
50+
* Fixed exception thrown from `WebAuthenticator` when running in Dart 2.
51+
52+
## Version 0.3.0 (2018/05/05)
53+
### Major breaking changes:
54+
Dropped support for Dart 1.x. Flutter has moved to enable Dart 2 by default
55+
which required some changes in DRAW that are not compatible with Dart 1.x.
56+
Some of these changes required some method signatures to be modified, but
57+
this shouldn't require any changes for users.
58+
59+
If running in a command-line script, that script must be run using a dev SDK
60+
while passing the `--preview-dart-2` flag.
61+
62+
If used in a Flutter application, `--preview-dart-2` is enabled by default as
63+
of the Flutter Beta 2 release.
64+
65+
### Functionality:
66+
* Basic `Multireddit` functionality:
67+
* Added `Multireddit.parse(reddit, data)` constructor that will create an instance of
68+
a `Multireddit`, given the correct `Map` of `data`.
69+
* Added `add(subreddit)` method to add the corresponding `subreddit` to the
70+
instance of `Multireddit`. `subreddit` can be of type `Subreddit` or `String`.
71+
* Added `delete()` method to delete the multireddit.
72+
* Added `copy()` and `copy(multiName)`, this will create a copy of the `Multireddit` for
73+
for the currently authenticated user and return an instance of the new `Multireddit`
74+
encapsulated as a `Future`. When `multiName` is provided it will set the display name
75+
of the new `Multireddit` to `multiName`.
76+
* Added getters for the following properties: `keyColor`, `iconName`, `subreddits`, `author`
77+
`displayName`, `visibility`, `weightingScheme`, `canEdit`, `over18`.
78+
* Comment and Submission moderation.
79+
* Miscellaneous bug fixes.
80+
81+
## Version 0.2.1 (2018/04/17)
82+
* Added `Reddit.comment`, which allows for the creation of `CommentRef` objects
83+
from a comment ID or url.
84+
* Added `CommentRef.populate` and `Comment.refresh`.
85+
* Added `likes` getter to `Submission`.
86+
* Miscellaneous fixes for minor bugs related to `CommentForest`.
87+
88+
## Version 0.2.0 (2018/04/13)
89+
Breaking changes:
90+
* `Subreddit.submissions` has been removed as the Reddit API endpoint no longer
91+
exists. See [this
92+
post](https://www.reddit.com/r/changelog/comments/7tus5f/update_to_search_api/)
93+
for context.
94+
95+
Miscellaneous:
96+
* Added initial support for Fuchsia. draw.ini configurations are not yet
97+
supported on this platform.
98+
* Loosened some version restrictions for pub packages.
99+
100+
## Version 0.1.6 (2018/04/08)
101+
* Added the property `Reddit.front`, which exposes methods to retrieve content
102+
from the Reddit front page.
103+
104+
## Version 0.1.5 (2018/04/03)
105+
* Added `Reddit.restoreAuthenticatedInstance`, which can be used to create a
106+
Reddit instance from previously cached credentials.
107+
* Documentation improvements.
108+
* Various bug fixes.
109+
110+
## Version 0.1.4 (2018/03/31)
111+
* Added `SubredditModeration`, a class which implements moderator functionality for `Subreddit`s.
112+
* Fixed issue #46 which was causing `WebAuthenticator.url` to hit an assertion when `compactLogin` was set
113+
to `true`.
114+
115+
## Version 0.1.3 (2018/03/22)
116+
* Added additional convenience accessors to various classes, including `Comment`, `Redditor`, `Submission`,
117+
and `Subreddit`.
118+
* Added classes `SubredditFilters` and `SubredditQuarantine`.
119+
120+
## Version 0.1.2 (2018/03/04)
121+
Breaking changes:
122+
* Removed `property` method. Properties of initialized objects that do not yet have convenience
123+
accessors can be accessed through the `data` property
124+
* Removed `fullname`, `id`, and `data` fields from lazily initialized objects
125+
* Removed `refresh()` from lazily initialized objects
126+
127+
Miscellaneous:
128+
* Improved documentation
129+
* Various internal refactoring
130+
131+
## Version 0.1.1 (2018/03/03)
132+
Minor bug fix:
133+
* Fixed issue where `DRAWConfigContext` would throw an exception on Android and iOS.
134+
135+
## Version 0.1.0 (2018/03/03)
136+
Breaking changes:
137+
* Created separate classes for lazily initialized and initialized instances
138+
* Deprecated the `property` method. Will be completely removed in the near future
139+
140+
Major changes and bug fixes:
141+
* Added `Inbox` and `Message` functionality
142+
* Added convenience accessors for common properties. Properties without an accessor can be accessed
143+
through the `data` map in each object
144+
* Additional fixes to `DRAWConfigContext`
145+
* Rolled `package:quiver` forward to version `0.28.0` to match that used by `flutter_test`
146+
147+
## Version 0.0.3 (2018/01/22)
148+
Minor changes and bug fixes:
149+
* Fixed bug that caused authentication to fail when using `draw.ini` with the `ScriptAuthenticator`
150+
* Refactored `DRAWConfigContext`
151+
152+
## Version 0.0.2 (2017/12/15)
153+
Minor updates:
154+
* Added `CHANGELOG.md`
155+
* Formatted sample code in `README.md`
156+
* Renamed `.analysis_options` to `analysis_options.yaml`
157+
* Documentation added for classes and methods that had none
158+
* Commented out currently unimplemented functionality to clean up generated
159+
documents
160+
161+
## Version 0.0.1 (2017/12/08)
162+
Initial release with basic functionality, including:
163+
* OAuth2 support for login
164+
* `Comment`, `Redditor`, and `Subreddit` interfaces

0 commit comments

Comments
 (0)