Upgrading hop 0.26 to 0.27
Breaking0.26.0 → 0.27.1Breaking2Deprecated2New3Changed5Other1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Code that calls runHop must now pass the arguments as a list of strings instead of the old form.
- ConsoleContext also now expects arguments as a list of strings, matching the runHop change.
- Two older helper functions for adding tasks are now deprecated and should be replaced.
- These TaskRegistry members are deprecated and should be replaced with the newer APIs.
Must act 4 items need code or config changes
Dart SDK requirement changed in 0.27.1: >=0.8.7 → >=0.8.10+6 <2.0.0.
Adds unmodifiable_collection >=0.9.0 <0.10.0.
Moves args >=0.8.7 → >=0.9.0 <0.10.0, bot_io >=0.23.3 → >=0.24.0, html5lib >=0.8.7 → >=0.9.0 <0.10.0, logging >=0.8.7 → >=0.9.0 <0.10.0, path >=0.8.7 → >=0.9.0 <0.10.0, unittest >=0.8.7 → >=0.9.0 <0.10.0. Your build may pick other versions.
What you must change
Breaking2
runHop now takes in List<String> args to align with changes to dart:io.runHopConsoleContext has a similar breaking change.ConsoleContextDeprecations to plan for
Deprecated2
Deprecates the top-level addSyncTask and addAsyncTask functions.
addSyncTaskaddAsyncTaskDeprecates
hasTask, addSync, addAsync, tasks, taskNames.hasTaskaddSyncaddAsynctaskstaskNames