Upgrading hop 0.28 to 0.29
Breaking0.28.3+2 → 0.29.1+1Breaking4Deprecated1Changed3Other1
BreakingUpgrade verdict
4 breaking changes.
In plain terms
- Four old TaskRegistry members that were already marked deprecated are gone, so code using them will no longer compile.
- The old getSubContext method on TaskContext has been removed, so any code calling it must be updated.
- The two old top-level helper functions in hop.dart are gone, so imports that use them will fail.
- The old Task.sync and Task.async constructors are removed, and the main Task constructor no longer accepts an optional config argument.
Must act Top 4 of 5 that need code or config changes
Adds completion >=0.1.0 <0.2.0, git >=0.1.0 <0.2.0.
Moves bot >=0.26.0 → >=0.26.0 <0.27.0, bot_io >=0.25.1+1 → >=0.25.2 <0.26.0, unittest >=0.9.0 <0.10.0 → >=0.9.0 <0.11.0. Your build may pick other versions.
What you must change
Breaking4
Removes deprecated TaskRegistry members: taskNames, hasTask, addSync, and addAsync.
TaskRegistryTaskRegistry.taskNamesTaskRegistry.hasTaskTaskRegistry.addSyncTaskRegistry.addAsyncRemoves deprecated TaskContext.getSubContext.
TaskContextTaskContext.getSubContextRemoves deprecated top-level addSyncTask and addAsyncTask from hop.dart.
addSyncTaskaddAsyncTaskRemoves deprecated Task.sync and Task.async factories and the optional config argument in the Task factory.
TaskTask.syncTask.asyncTask.configDeprecations to plan for
Deprecated1
Marks
createDartDocTask as DEPRECATED because the task is broken in Dart 1.2.createDartDocTask