Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 2b00b23

Browse files
keertiptvolkert
authored andcommitted
Update the signature for RecordingRandomAccessFile._close due to chan… (#78)
* Update the signature for RecordingRandomAccessFile._close due to changes in dart:io.
1 parent c09a430 commit 2b00b23

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#### 4.0.0
2+
3+
* Change method signature for `RecordingRandomAccessFile._close` to return a
4+
`Future<void>` instead of `Future<RandomAccessFile>`. This follows a change in
5+
dart:io, Dart SDK `2.0.0-dev.40`.
6+
17
#### 3.0.0
28

39
* Import `dart:io` unconditionally. More recent Dart SDK revisions allow

lib/src/backends/record_replay/recording_random_access_file.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class RecordingRandomAccessFile extends Object
7777
RandomAccessFile _wrap(RandomAccessFile raw) =>
7878
raw == delegate ? this : new RecordingRandomAccessFile(fileSystem, raw);
7979

80-
Future<RandomAccessFile> _close() => delegate.close().then(_wrap);
80+
Future<void> _close() => delegate.close();
8181

8282
Future<RandomAccessFile> _writeByte(int value) =>
8383
delegate.writeByte(value).then(_wrap);

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: file
2-
version: 3.0.0
2+
version: 4.0.0
33
authors:
44
- Matan Lurey <[email protected]>
55
- Yegor Jbanov <[email protected]>
@@ -16,4 +16,4 @@ dev_dependencies:
1616
test: ^0.12.18
1717

1818
environment:
19-
sdk: '>=1.24.0 <2.0.0'
19+
sdk: '>=2.0.0-dev.28.0 <2.0.0'

0 commit comments

Comments
 (0)