Skip to content

Upgrading hop 0.25 to 0.26

Breaking0.25.1 → 0.26.0Breaking1Deprecated2New1Changed1

BreakingUpgrade verdict

1 breaking change.

  • 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.
3 items need code or config changes

Dart SDK requirement changed in 0.26.0: >=0.7.5+3 → >=0.8.7.

Breaking1
Tasks no longer need to return true/false to flag success or failure; normal return means success.
TaskContext.fail
Deprecated2
Deprecates TaskDefinition.
TaskDefinition
Deprecates the Task.async and Task.sync constructors in favor of new Task.
Task.asyncTask.syncTask