Upgrading dcli 1 to 2
Unknown1.36.2 → 2.3.0
UnknownUpgrade verdict
None of the 21 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 2.3.0: >=2.17.0 <3.0.0 → >=2.19.0 <3.0.0.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class ExitException implements Exception - removed:
ctor ExitException(this.exitCode) - removed:
field ExitException.exitCode: int - removed:
function dcliExit(int exitCode): void - removed:
function withEnvironment<R>(R Function() callback, {required Map<String, String> environment}): R - changed:
function ask( String prompt, { bool toLower = …, bool hidden = …, bool required = …, String? defaultValue, AskValidator validator = …, }): String → function ask( String prompt, { bool toLower = …, bool hidden = …, bool required = …, String? defaultValue, CustomAskPrompt customPrompt = …, AskValidator validator = …, }): String - changed:
function capture<R>(R Function() action, {Progress? progress}): Future<Progress> → function capture<R>(Future<R> Function() action, {Progress? progress}): Future<Progress> - changed:
function confirm(String prompt, {bool? defaultValue}): bool → function confirm(String prompt, {bool? defaultValue, CustomConfirmPrompt customPrompt = …}): bool - changed:
function menu<T>({ required String prompt, required List<T> options, T? defaultOption, int? limit, String Function(T)? format, bool fromStart = …, }): T → function menu<T>( String prompt, { required List<T> options, T? defaultOption, CustomMenuPrompt customPrompt = …, int? limit, String Function(T)? format, bool fromStart = …, }): T - changed:
function waitForEx<T>(Future<T> future): T → function waitForEx<T>(Future<T> wrapped): T - changed:
method PubCache.globalActivate(String packageName): void → method PubCache.globalActivate(String packageName, {String? version, bool verbose = …}): void - added:
class Confirm - added:
function addUnitTestOverrides(String pathToProject): void - added:
method DartSdk.resolveArchitecture(): String - added:
method PubCache.findVersion(String packageName, String requestedVersion): String? - added:
method PubSpec.save(String path): void - added:
static field DartProject.overrideDCliPathKey: const String - added:
static get DartSdk.isUsingDartFromFlutter: bool - added:
static method Ask.defaultPrompt( String prompt, String? defaultValue, bool hidden): String - added:
static method Confirm.defaultPrompt(String prompt, bool? defaultValue): String - added:
typedef CustomAskPrompt = String Function( String prompt, String? defaultValue, bool hidden) - added:
typedef CustomConfirmPrompt = String Function( String prompt, bool? defaultValue)