Skip to content

Commit a837ed1

Browse files
authored
Prepare for a stable, null-safe v3 release (#677)
* Merged prerelease entries in CHANGELOG * Bumped dependencies to stable versions * LOTS of misc spelling fixes
1 parent 6bb9409 commit a837ed1

File tree

15 files changed

+31
-42
lines changed

15 files changed

+31
-42
lines changed

CHANGELOG.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
#### 3.0.0-nullsafety.3 - 2021-01-15
1+
#### 3.0.0 - 2021-02-16
22

3-
* Eliminate dependency on package:meta.
4-
* Fix: `TreeSet.last` was incorrectly returning the minimum node (same
5-
value as `TreeSet.first`). It now correctly returns the maximum
6-
node.
7-
8-
#### 3.0.0-nullsafety.2 - 2020-11-05
9-
10-
* BREAKING CHANGE: This version requires Dart SDK 2.12.0-0 or later.
11-
12-
#### 3.0.0-nullsafety.1 - 2020-11-05
13-
14-
* Enable non-nullable experiment in `analysis_options.yaml`.
15-
16-
#### 3.0.0-nullsafety - 2020-11-05
17-
18-
* BREAKING CHANGE: This verion requires Dart SDK 2.10.0 or later.
3+
* BREAKING CHANGE: This version requires Dart SDK 2.12.0 or later.
194
* BREAKING CHANGE: Remove `assertCheckedMode`. This was deprecated in 2.1.2.
205
Checked mode no longer exists in Dart 2.0 since the vast majority of what
216
checked mode did is now done in the type system itself.
@@ -41,6 +26,7 @@
4126
* Deprecate `firstNonNull`. Users of this function should migrate to
4227
`var v = o1 ?? o2 ?? o3 ?? o4; ArgumentError.checkNotNull(v);`. This will be
4328
removed in 4.0.0
29+
* Eliminate dependency on package:meta.
4430

4531
#### 2.1.5 - 2020-11-05
4632

@@ -341,7 +327,7 @@
341327
#### 0.20.0 - 2014-12-10
342328
* Multimap: better `toString()` on returned collections.
343329
* Multimap: Bugfix: support edits on empty value collections.
344-
* Multimap: Added missing return statment in `fold`.
330+
* Multimap: Added missing return statement in `fold`.
345331
* Added isEmpty() in `strings`.
346332
* Added max SDK constraint <2.0.0
347333
* Minor updates to README.md.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All submissions, including submissions by project members, require review.
1919

2020
### Contribution Guidelines
2121

22-
We welcome your pull requests, issue reports and enhacement requests. To make
22+
We welcome your pull requests, issue reports and enhancement requests. To make
2323
the process as smooth as possible, we request the following:
2424

2525
* Sign the [CLA][cla] (see above) before sending your pull request.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ as a socket.
3131
`FutureStream` turns a `Future<Stream>` into a `Stream` which emits the same
3232
events as the stream returned from the future.
3333

34-
`StreamRouter` splits a Stream into mulltiple streams based on a set of
34+
`StreamRouter` splits a Stream into multiple streams based on a set of
3535
predicates.
3636

3737
`CountdownTimer` is a simple countdown timer that fires events in regular
@@ -58,12 +58,12 @@ might have eviction policies.
5858

5959
## [quiver.check][]
6060

61-
`checkArgument` throws `ArgumentError` if the specifed argument check expression
61+
`checkArgument` throws `ArgumentError` if the specified argument check expression
6262
is false.
6363

6464
`checkListIndex` throws `RangeError` if the specified index is out of bounds.
6565

66-
`checkState` throws `StateError` if the specifed state check expression is
66+
`checkState` throws `StateError` if the specified state check expression is
6767
false.
6868

6969
[quiver.check]: https://pub.dev/documentation/quiver/latest/quiver.check/quiver.check-library.html

lib/src/async/concat.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import 'dart:async';
1616

17-
/// Returns the concatentation of the input streams.
17+
/// Returns the concatenation of the input streams.
1818
///
1919
/// When the returned stream is listened to, the [streams] are iterated through
2020
/// asynchronously, forwarding all events (both data and error) for the current

lib/src/async/future_stream.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import 'dart:async';
2626
///
2727
/// # Example
2828
///
29-
/// This class is useful when you need to retreive some object via a `Future`,
29+
/// This class is useful when you need to retrieve some object via a `Future`,
3030
/// then return a `Stream` from that object:
3131
///
3232
/// var futureOfStream = getResource().then((resource) => resource.stream);

lib/src/collection/treeset.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class AvlTreeSet<V> extends TreeSet<V> {
691691
}
692692

693693
/// Search the tree for the matching element, or the 'nearest' node.
694-
/// NOTE: [BinaryTree.comparator] needs to have finer granulatity than -1,0,1
694+
/// NOTE: [BinaryTree.comparator] needs to have finer granularity than -1,0,1
695695
/// in order for this to return something that's meaningful.
696696
AvlNode<V>? _searchNearest(V? element,
697697
{TreeSearch option = TreeSearch.NEAREST}) {
@@ -902,7 +902,7 @@ class _AvlTreeIterator<V> implements BidirectionalIterator<V> {
902902
}
903903

904904
state = WALK;
905-
// Else we've got an anchor we have to worry about initalizing from.
905+
// Else we've got an anchor we have to worry about initializing from.
906906
// This isn't known till the caller actually performs a previous/next.
907907
_moveNext = () {
908908
_current = tree._searchNearest(anchorObject,

lib/src/iterables/concat.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/// Returns the concatentation of the input iterables.
15+
/// Returns the concatenation of the input iterables.
1616
///
1717
/// The returned iterable is a lazily-evaluated view on the input iterables.
1818
Iterable<T> concat<T>(Iterable<Iterable<T>> iterables) =>

lib/src/iterables/count.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class _Count extends InfiniteIterable<num> {
2929
Iterator<num> get iterator => _CountIterator(start, step);
3030

3131
// TODO(justin): return an infinite list for toList() and a special Set
32-
// implmentation for toSet()?
32+
// implementation for toSet()?
3333
}
3434

3535
class _CountIterator implements Iterator<num> {

lib/strings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ bool isWhitespace(int rune) =>
126126
/// characters on the left and right from [fill]. On the right, characters are
127127
/// selected from [fill] starting at the end so that the last character in
128128
/// [fill] is the last character in the result. [fill] is repeated if
129-
/// neccessary to pad.
129+
/// necessary to pad.
130130
///
131131
/// Returns [input] if `input.length` is equal to or greater than width.
132132
/// [input] can be `null` and is treated as an empty string.

lib/testing/src/async/fake_async.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class FakeAsync {
4646
/// [elapseBlocking].
4747
///
4848
/// The returned clock starts at [initialTime], and calls to [elapse] and
49-
/// [elapseBlocking] advance the clock, even if they occured before the call
49+
/// [elapseBlocking] advance the clock, even if they occurred before the call
5050
/// to this method.
5151
///
5252
/// The clock can be passed as a dependency to the unit under test.

0 commit comments

Comments
 (0)