Upgrading riverpod 0.4 to 0.5
Breaking0.4.0 → 0.5.1Breaking1New1Fixed1Other2
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The way you create a family of computed values has changed to a new name and style.
Must act 1 item needs code or config changes
What you must change
Breaking1
Replaces
ComputedFamily with Computed.family.ComputedFamilyComputed.familyAPI changes
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>