I'm attempting to upgrade from version 5.0.0-alpha03 to 5.0.0-beta01 and I'm having trouble reconciling the changes that have been made as part of 5.0.0-alpha04. Specifically one of the builders in StoreBuilder (StoreBuilder.Companion#from(Fetcher<Key,Input>, SourceOfTruth<Key,Input>)) has been changed so that the source of truth takes a Key and an Input (Network) instead of Key and Local (Output) as before. I find this hard to reconcile with the SourceOfTruth class which remains unchanged and whose types remain Key and Local.
It looks like the tests all use the same type for Input and Output so perhaps this discrepancy fell through the cracks? As I understand it the source of truth only deals with local representations, not fetcher results. If I'm mistaken and this is indeed intentional, please advise how this is meant to work.
Also, it appears to me that this comment on another issue may be related.
Hello! apologies for this breaking change, I'm at a conference this week but will take a look over weekend/next week. I think this was an unintended breaking change
I'm attempting to upgrade from version
5.0.0-alpha03
to5.0.0-beta01
and I'm having trouble reconciling the changes that have been made as part of5.0.0-alpha04
. Specifically one of the builders inStoreBuilder
(StoreBuilder.Companion#from(Fetcher<Key,Input>, SourceOfTruth<Key,Input>)) has been changed so that the source of truth takes aKey
and anInput
(Network
) instead ofKey
andLocal
(Output
) as before. I find this hard to reconcile with the SourceOfTruth class which remains unchanged and whose types remainKey
andLocal
.It looks like the tests all use the same type for Input and Output so perhaps this discrepancy fell through the cracks? As I understand it the source of truth only deals with local representations, not fetcher results. If I'm mistaken and this is indeed intentional, please advise how this is meant to work.
Also, it appears to me that this comment on another issue may be related.