Upgrading mason_logger 0.1 to 0.2
Breaking0.1.4 → 0.2.16Breaking1New1Fixed3Other4
Fetching 17 releases from GitHub…6 / 17
BreakingUpgrade verdict
1 breaking change.
In plain terms
- Some old, deprecated methods on the Windows terminal helper have been deleted, so code still calling them will no longer compile.
Must act 1 item needs code or config changes
Dart SDK requirement changed in 0.2.15: >=2.16.0 <3.0.0 → >=3.3.0 <4.0.0.
Adds ffi ^2.1.0, io ^1.0.4, win32 ^5.4.0.
What you must change
Breaking1
Removes deprecated methods from WindowsTerminal.
WindowsTerminalAPI changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class AnsiCode - removed:
class AnsiCodeType - removed:
class ExitCode - removed:
field AnsiCode.code: final int - removed:
field AnsiCode.name: final String - removed:
field AnsiCode.reset: final AnsiCode? - removed:
field AnsiCode.type: final AnsiCodeType - removed:
field ExitCode.code: final int - removed:
function overrideAnsiOutput<T>(bool enableAnsiOutput, T Function() body): T - removed:
get AnsiCode.escape: String - removed:
get AnsiCode.escapeForScript: String - removed:
get ansiOutputEnabled: bool - removed:
method AnsiCode.toString(): String - removed:
method AnsiCode.wrap(String? value, {bool forScript = …}): String? - removed:
method AnsiCodeType.toString(): String - removed:
method ExitCode.toString(): String - removed:
static field AnsiCodeType.background: const AnsiCodeType - removed:
static field AnsiCodeType.foreground: const AnsiCodeType - removed:
static field AnsiCodeType.reset: const AnsiCodeType - removed:
static field AnsiCodeType.style: const AnsiCodeType - removed:
static field ExitCode.cantCreate: const - removed:
static field ExitCode.config: const - removed:
static field ExitCode.data: const - removed:
static field ExitCode.ioError: const - removed:
static field ExitCode.noHost: const - removed:
static field ExitCode.noInput: const - removed:
static field ExitCode.noPerm: const - removed:
static field ExitCode.noUser: const - removed:
static field ExitCode.osError: const - removed:
static field ExitCode.osFile: const - removed:
static field ExitCode.software: const - removed:
static field ExitCode.success: const - removed:
static field ExitCode.tempFail: const - removed:
static field ExitCode.unavailable: const - removed:
static field ExitCode.usage: const - removed:
variable backgroundBlack: const - removed:
variable backgroundBlue: const - removed:
variable backgroundColors: const List<AnsiCode> - removed:
variable backgroundCyan: const - removed:
variable backgroundDarkGray: const - removed:
variable backgroundDefault: const - removed:
variable backgroundGreen: const - removed:
variable backgroundLightBlue: const - removed:
variable backgroundLightCyan: const - removed:
variable backgroundLightGray: const - removed:
variable backgroundLightGreen: const - removed:
variable backgroundLightMagenta: const - removed:
variable backgroundLightRed: const - removed:
variable backgroundLightYellow: const - removed:
variable backgroundMagenta: const - removed:
variable backgroundRed: const - removed:
variable backgroundWhite: const - removed:
variable backgroundYellow: const - removed:
variable black: const - removed:
variable blue: const - removed:
variable cyan: const - removed:
variable darkGray: const - removed:
variable defaultForeground: const - removed:
variable foregroundColors: const List<AnsiCode> - removed:
variable green: const - removed:
variable lightBlue: const - removed:
variable lightCyan: const - removed:
variable lightGray: const - removed:
variable lightGreen: const - removed:
variable lightMagenta: const - removed:
variable lightRed: const - removed:
variable lightYellow: const - removed:
variable magenta: const - removed:
variable red: const - removed:
variable resetAll: const - removed:
variable resetBlink: const - removed:
variable resetBold: const - removed:
variable resetDim: const - removed:
variable resetItalic: const - removed:
variable resetReverse: const - removed:
variable resetUnderlined: const - removed:
variable styleBlink: const - removed:
variable styleBold: const - removed:
variable styleDim: const - removed:
variable styleItalic: const - removed:
variable styleReverse: const - removed:
variable styleUnderlined: const - removed:
variable styles: const List<AnsiCode> - removed:
variable white: const - removed:
variable yellow: const - changed:
ctor Logger({ this.level = …, this.progressOptions = …, }) → ctor Logger({ this.theme = …, this.level = …, this.progressOptions = …, }) - changed:
ctor ProgressOptions({this.animation = …}) → ctor ProgressOptions({ this.animation = …, this.trailing = …, }) - changed:
method Logger.alert(String? message): void → method Logger.alert(String? message, {LogStyle? style}): void - changed:
method Logger.chooseAny( String? message, { required List<String> choices, List<String>? defaultValues, }): List<String> → method Logger.chooseAny<T extends Object?>( String? message, { required List<T> choices, List<T>? defaultValues, String Function(T choice)? display, }): List<T> - changed:
method Logger.chooseOne( String? message, { required List<String> choices, String? defaultValue, }): String → method Logger.chooseOne<T extends Object?>( String? message, { required List<T> choices, T? defaultValue, String Function(T choice)? display, }): T - changed:
method Logger.detail(String? message): void → method Logger.detail(String? message, {LogStyle? style}): void - changed:
method Logger.err(String? message): void → method Logger.err(String? message, {LogStyle? style}): void - changed:
method Logger.flush([Function(String?)? print]): void → method Logger.flush([void Function(String?)? print]): void - changed:
method Logger.info(String? message): void → method Logger.info(String? message, {LogStyle? style}): void - changed:
method Logger.success(String? message): void → method Logger.success(String? message, {LogStyle? style}): void - changed:
method Logger.warn(String? message, {String tag = …}): void → method Logger.warn(String? message, {String tag = …, LogStyle? style}): void - added:
class LogTheme - added:
ctor LogTheme({ LogStyle? detail, LogStyle? info, LogStyle? err, LogStyle? warn, LogStyle? alert, LogStyle? success, }) - added:
field LogTheme.alert: final LogStyle - added:
field LogTheme.detail: final LogStyle - added:
field LogTheme.err: final LogStyle - added:
field LogTheme.info: final LogStyle - added:
field LogTheme.success: final LogStyle - added:
field LogTheme.warn: final LogStyle - added:
field Logger.theme: final LogTheme - added:
field ProgressOptions.trailing: final String - added:
method Logger.Function(): KeyStroke - added:
method Logger.promptAny(String? message, {String separator = …}): List<String> - added:
typedef LogStyle = String? Function(String? message)