Skip to content

Upgrading riverpod 0.4 to 0.5

Breaking0.4.0 → 0.5.1Breaking1New1Fixed1Other2

BreakingUpgrade verdict

1 breaking change.

  • The way you create a family of computed values has changed to a new name and style.
1 item needs code or config changes
Breaking1
Replaces ComputedFamily with Computed.family.
ComputedFamilyComputed.family

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: class ComputedFamily<Result, A> extends Family<Computed<Result>, A>
  • removed: ctor ComputedFamily(Result Function(Reader read, A a) create)
  • added: static method AsyncValue.guard<T>(Future<T> Function() future): Future<AsyncValue<T>>
  • added: static method Computed.family<T, A>( T Function(Reader read, A param) create, ): ComputedFamily<T, A>