Skip to content

Upgrading hop 0.26 to 0.27

Breaking0.26.0 → 0.27.1Breaking2Deprecated2New3Changed5Other1

BreakingUpgrade verdict

2 breaking changes.

  • 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.
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.

Breaking2
runHop now takes in List<String> args to align with changes to dart:io.
runHop
ConsoleContext has a similar breaking change.
ConsoleContext
Deprecated2
Deprecates the top-level addSyncTask and addAsyncTask functions.
addSyncTaskaddAsyncTask
Deprecates hasTask, addSync, addAsync, tasks, taskNames.
hasTaskaddSyncaddAsynctaskstaskNames