Upgrading hop 0.25 to 0.26
Breaking0.25.1 → 0.26.0Breaking1Deprecated2New1Changed1
BreakingUpgrade verdict
1 breaking change.
In plain terms
- Task functions used to have to return true or false to say whether they worked. Now just finishing normally counts as success.
- The TaskDefinition class is deprecated and should be avoided.
- The Task.async and Task.sync constructors are deprecated. Use the plain Task constructor instead.
Must act 3 items need code or config changes
Dart SDK requirement changed in 0.26.0: >=0.7.5+3 → >=0.8.7.
What you must change
Breaking1
Tasks no longer need to return true/false to flag success or failure; normal return means success.
TaskContext.failDeprecations to plan for
Deprecated2
Deprecates TaskDefinition.
TaskDefinitionDeprecates the Task.async and Task.sync constructors in favor of new Task.
Task.asyncTask.syncTask