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

Commit

Permalink
Revert "Make encoding parameter nullable (#65)"
Browse files Browse the repository at this point in the history
This reverts commit d6c245e.
  • Loading branch information
tvolkert committed Jul 26, 2021
1 parent d6c245e commit 6e71d21
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 4.2.3

* Rollback to version 4.2.1 (https://github.com/google/process.dart/issues/64)

#### 4.2.2

* Mark `stderrEncoding` and `stdoutEncoding` parameters as nullable.
Expand Down
8 changes: 4 additions & 4 deletions lib/src/interface/local_process_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class LocalProcessManager implements ProcessManager {
Map<String, String>? environment,
bool includeParentEnvironment = true,
bool runInShell = false,
Encoding? stdoutEncoding = systemEncoding,
Encoding? stderrEncoding = systemEncoding,
Encoding stdoutEncoding = systemEncoding,
Encoding stderrEncoding = systemEncoding,
}) {
try {
return Process.run(
Expand Down Expand Up @@ -98,8 +98,8 @@ class LocalProcessManager implements ProcessManager {
Map<String, String>? environment,
bool includeParentEnvironment = true,
bool runInShell = false,
Encoding? stdoutEncoding = systemEncoding,
Encoding? stderrEncoding = systemEncoding,
Encoding stdoutEncoding = systemEncoding,
Encoding stderrEncoding = systemEncoding,
}) {
try {
return Process.runSync(
Expand Down
10 changes: 4 additions & 6 deletions lib/src/interface/process_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ abstract class ProcessManager {
Map<String, String>? environment,
bool includeParentEnvironment = true,
bool runInShell = false,
// TODO(#64): Remove the `covariant` keyword.
covariant Encoding? stdoutEncoding = systemEncoding,
covariant Encoding? stderrEncoding = systemEncoding,
Encoding stdoutEncoding = systemEncoding,
Encoding stderrEncoding = systemEncoding,
});

/// Starts a process and runs it to completion. This is a synchronous
Expand All @@ -159,9 +158,8 @@ abstract class ProcessManager {
Map<String, String>? environment,
bool includeParentEnvironment = true,
bool runInShell = false,
// TODO(#64): Remove the `covariant` keyword.
covariant Encoding? stdoutEncoding = systemEncoding,
covariant Encoding? stderrEncoding = systemEncoding,
Encoding stdoutEncoding = systemEncoding,
Encoding stderrEncoding = systemEncoding,
});

/// Returns `true` if the [executable] exists and if it can be executed.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: process
version: 4.2.2
version: 4.2.3
description: A pluggable, mockable process invocation abstraction for Dart.
homepage: https://github.com/google/process.dart

Expand Down

0 comments on commit 6e71d21

Please sign in to comment.