Migrated to Firebase v9 modular SDK and Angular Fire v7
Supporting Angular 12.
Fixed typing in syncWithRouter function. Thanks to @randallmeeker for the bug report.
CollectionService exposes createId
function from AngularFire.
Add useMemorization
on CollectionService
to support multicasting.
Added await
in the update callback function.
Created a second entry point for the real time database service
=> akita-ng-fire/rtdb
Thanks to @randallmeeker for reporting a bug on how we reset the store.
Update peerDependencies firebase to version >= 8 and @angular/fire to version >= 6.0.4, firebase 8 now uses EMS instead of CommonJs. Thanks to @avelow
Removed export from public api
Removed if statement in upsert
method. It was causing an issue when we provide an object with the id of the document.
service.upsert({ id, ...updates })
Fixed wrong hook call in auth service.
Fixed scope issue in signin function.
If signin is working with a not new user, we update the store from the corresponding document from firestore.
Fixed issue with profile object getting updated in the signin method from the auth service.
The auth store gets now updated properly when a user signs in after he signed up.
Also the function fireAuth
that was deprecated for a long time has been removed.
Bug fix for getValue
. Now the idKey is merged into the value object. Thanks to @randallmeeker for the bug report.
callFunction
is now part of the public API. Thanks to @wSedlacek
Bug fix from @TimVanMourik . Entity stores didn't get properly updated.
Added resetOnUpdate
config to CollectionService
. With this config you can choose whether you totally want to remove and entity and add a new one with the new state,
or, and this is default, when set to false, you let akita handle how they update their stores by design. Meaning if your new state updating the store, the keys that maybe got removed in the new state are still present in the akita store. So if you want the new state to be the only source of truth, set this config to true.