Upgrading dcli 3 to 4
Unknown3.4.0 → 4.0.5
UnknownUpgrade verdict
None of the 16 releases in this range publish notes, so breaking changes can't be ruled out.
In plain terms
- Some releases in this range publish no notes, so DepDelta can't rule out breaking changes.
- Their commits are listed with this comparison.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
Dart SDK requirement changed in 4.0.1-beta.1: >=3.0.0 <4.0.0 → >=3.3.0 <4.0.0.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class Ansi - removed:
class AnsiColor - removed:
class DependencyLine extends Equatable - removed:
class Flag: abstract - removed:
class Format - removed:
class Terminal - removed:
ctor Ansi() - removed:
ctor AnsiColor( int code, { bool bold = …, }) - removed:
ctor DependencyLine(this.name, this.line) - removed:
ctor Flag(this._name) - removed:
ctor Format() - removed:
ctor Terminal() - removed:
enum TableAlignment - removed:
enum TerminalClearMode - removed:
field DependencyLine.line: final String - removed:
field DependencyLine.name: final String - removed:
field NamedLock.port: final int - removed:
field Progress.exitCode: int? - removed:
field Settings.Flag>: final - removed:
function black( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function blue( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function cyan( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function green( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function grey( String text, { double level = …, AnsiColor background = …, bool bold = …, }): String - removed:
function magenta( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function orange( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function red( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function waitForEx<T>(Future<T> wrapped): T - removed:
function white( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
function yellow( String text, { AnsiColor background = …, bool bold = …, }): String - removed:
get AnsiColor.bold: bool - removed:
get AnsiColor.code: int - removed:
get DependencyLine.props: List<Object?> - removed:
get Flag.abbreviation: String - removed:
get Flag.hashCode: int - removed:
get Flag.isOptionSupported: bool - removed:
get Flag.name: String - removed:
get Flag.option: String? - removed:
get NamedLock.decLockCount: int - removed:
get NamedLock.incLockCount: int - removed:
get Settings.selectedFlags: List<Flag> - removed:
get StringAsProcess.process: RunnableProcess - removed:
get StringAsProcess.shell: void - removed:
get StringAsProcess.sink: Sink<List<int>> - removed:
get Terminal.column: int - removed:
get Terminal.columns: int - removed:
get Terminal.hasTerminal: bool - removed:
get Terminal.isAnsi: bool - removed:
get Terminal.lines: int - removed:
get Terminal.row: int - removed:
get Terminal.rows: int - removed:
member TableAlignment.left - removed:
member TableAlignment.middle - removed:
member TableAlignment.right - removed:
member TerminalClearMode.all - removed:
member TerminalClearMode.fromCursor - removed:
member TerminalClearMode.toCursor - removed:
method AnsiColor.apply(String text, {AnsiColor background = …}): String - removed:
method DependencyLine.rehydrate(): String - removed:
method DependencyLine.toString(): String - removed:
method Flag.description(): String - removed:
method Flag.operator ==(covariant Flag other): bool - removed:
method Flag.usage(): String - removed:
method Format.bytesAsReadable(int bytes, {bool pad = …}): String - removed:
method Format.limitString(String display, {int width = …}): String - removed:
method Format.percentage(double progress, int precision): String - removed:
method Format.row( List<String?> cols, { List<int>? widths, List<TableAlignment>? alignments, String? delimiter, }): String - removed:
method Progress.addToStderr(String line): void - removed:
method Progress.addToStdout(String line): void - removed:
method Progress.close(): void - removed:
method Progress.onError(RunException error): void - removed:
method Settings.isFlagSet(Flag flag): bool - removed:
method Settings.setFlag(Flag flag): void - removed:
method StringAsProcess.operator |(String rhs): Pipe - removed:
method StringAsProcess.stream({ bool runInShell = …, String? workingDirectory, bool nothrow = …, bool includeStderr = …, bool extensionSearch = …, }): Stream<String> - removed:
method Terminal.clearLine({TerminalClearMode mode = …}): void - removed:
method Terminal.clearScreen({TerminalClearMode mode = …}): void - removed:
method Terminal.cursorDown(): void - removed:
method Terminal.cursorLeft(): void - removed:
method Terminal.cursorRight(): void - removed:
method Terminal.cursorUp(): void - removed:
method Terminal.home(): void - removed:
method Terminal.overwriteLine(String text): void - removed:
method Terminal.showCursor({required bool show}): void - removed:
method Terminal.startOfLine(): void - removed:
method Terminal.write(String text): void - removed:
method Terminal.writeLine(String text, {TextAlignment alignment = …}): void - removed:
set Flag.option(String? value) - removed:
set Terminal.column(int column) - removed:
set Terminal.row(int row) - removed:
static field Ansi.esc: const - removed:
static field AnsiColor.black: const AnsiColor - removed:
static field AnsiColor.blue: const AnsiColor - removed:
static field AnsiColor.codeBlack: const int - removed:
static field AnsiColor.codeBlue: const int - removed:
static field AnsiColor.codeCyan: const int - removed:
static field AnsiColor.codeGreen: const int - removed:
static field AnsiColor.codeGrey: const int - removed:
static field AnsiColor.codeMagenta: const int - removed:
static field AnsiColor.codeOrange: const int - removed:
static field AnsiColor.codeRed: const int - removed:
static field AnsiColor.codeWhite: const int - removed:
static field AnsiColor.codeYellow: const int - removed:
static field AnsiColor.cyan: const AnsiColor - removed:
static field AnsiColor.green: const AnsiColor - removed:
static field AnsiColor.magenta: const AnsiColor - removed:
static field AnsiColor.none: const AnsiColor - removed:
static field AnsiColor.orange: const AnsiColor - removed:
static field AnsiColor.red: const AnsiColor - removed:
static field AnsiColor.white: const AnsiColor - removed:
static field AnsiColor.yellow: const AnsiColor - removed:
static get Ansi.isSupported: bool - removed:
static get Ansi.resetEmitAnsi: void - removed:
static method Ansi.strip(String line): String - removed:
static method AnsiColor.bgReset(): String - removed:
static method AnsiColor.fgReset(): String - removed:
static method AnsiColor.reset(): String - removed:
static method DartScript.validate(String scriptPath): void - removed:
static method DependencyLine.fromLine(String line): DependencyLine? - removed:
static method Terminal.previousLine(): void - removed:
static set Ansi.isSupported(bool emit) - changed:
class Progress → class Progress: abstract - changed:
ctor NamedLock({ required this.name, String? lockPath, String description = …, Duration timeout = …, }) → ctor NamedLock({ required this.name, String description = …, String suffix = …, Duration timeout = …, }) - changed:
ctor Progress( LineAction stdout, { LineAction stderr = …, bool captureStdin = …, bool captureStderr = …, }) → ctor Progress(LineAction stdout, {LineAction stderr = …, bool captureStdout = …, bool captureStderr = …}) - changed:
ctor Progress.capture({bool captureStdout = …, bool captureStderr = …}) → ctor Progress.capture( {bool captureStdout = …, bool captureStderr = …}) - changed:
ctor Progress.stream({bool includeStdout = …, bool includeStderr = …}) → ctor Progress.stream({bool includeStderr = …}) - changed:
function fetch({ required String url, required String saveToPath, FetchMethod method = …, Map<String, String>? headers, OnFetchProgress fetchProgress = …, FetchData? data, }): void → function fetch({ required String url, required String saveToPath, FetchMethod method = …, Map<String, String>? headers, OnFetchProgress fetchProgress = …, FetchData? data, }): Future<void> - changed:
function fetchMultiple({required List<FetchUrl> urls}): void → function fetchMultiple({required List<FetchUrl> urls}): Future<void> - changed:
function printerr(String? line): void → function printerr(Object? object): void - changed:
get Progress.stream: Stream<String> → get Progress.stream: Stream<List<int>> - changed:
method DartProject.clean(): Future<void> → method DartProject.clean(): void - changed:
method DartProject.warmup({bool background = …, bool upgrade = …}): Future<void> → method DartProject.warmup({bool background = …, bool upgrade = …}): void - changed:
method DartSdk.installFromArchive(String defaultDartSdkPath, {bool askUser = …}): String → method DartSdk.installFromArchive(String defaultDartSdkPath, {bool askUser = …}): Future<String> - changed:
method NamedLock.withLock( void Function() fn, { String? waiting, }): void → method NamedLock.withLock<T>( T Function() action, { String? waiting, }): Future<T> - changed:
method Progress.forEach(LineAction stdout, {LineAction stderr = …}): void → method Progress.forEach(void Function(String line) print): void - changed:
method Progress.toList({int skipLines = …}): List<String> → method Progress.toList(): List<String> - changed:
method Progress.toParagraph({int skipLines = …}): String → method Progress.toParagraph(): String - changed:
method Shell.install({bool installDart = …}): bool → method Shell.install({bool installDart = …}): Future<bool> - changed:
method UnknownShell.install({bool installDart = …, bool activate = …}): bool → method UnknownShell.install({bool installDart = …, bool activate = …}): Future<bool> - added:
class InstallException extends DCliException - added:
class InvalidArgumentException extends DCliException - added:
class InvalidTemplateException extends DCliException - added:
class ProcessSyncException extends DCliException - added:
class ShellDetection - added:
ctor InstallException(super.message) - added:
ctor InvalidArgumentException(super.message) - added:
ctor InvalidTemplateException(super.message) - added:
ctor ProcessSyncException(super.message) - added:
ctor ShellDetection() - added:
field ShellDetection.pid)>: final - added:
get Progress.exitCode: int? - added:
method NamedLock.withLockAsync<T>( Future<T> Function() action, { String? waiting, }): Future<T> - added:
method ShellDetection.identifyShell(): Shell - added:
static method ProcessHelper.static({String exe, int parentPid, int processPid}) - added:
variable installFromSourceKey: final
- changed:
method PosixShell.install({bool installDart = …, bool activate = …}): bool → method PosixShell.install({bool installDart = …, bool activate = …}): Future<bool>
- changed:
method WindowsMixin.install({bool installDart = …, bool activate = …}): bool → method WindowsMixin.install({bool installDart = …, bool activate = …}): Future<bool>