-
Upgraded peerDependencies:
rxjs@^7.8
,react@^17.0.2 || ^18.2.0
-
Replace
fp-ts-rxjs
peerDependency withfp-ts-reactive
-
New peerDependency
use-sync-external-store
-
Added in http module
resourceFetchFactory
,io-types
,cachePoolAdapters
-
Upgraded
peerDependencies
requirement[email protected]
- Remove key engines from builded package json
- fix
useSelector
inference - improve store type
- deprecated module
rxjs
usefp-ts-rxjs
- split http module in
ReaderObservableResource
,ObservableResource
andResource
[BREAKING CHANGE] (see upgrade-to-0.4 guide) - added
dataSerializer
in http module - added
mutoid/state/stores
and removed memoization in ctor [BREAKING CHANGE] (see upgrade-to-0.4 guide) - removed fast-memoize dependency
- added hooks in react module:
useStore
,useFetchReaderObservableResource
,useFetchObservableResource
- deprecated
useResourceFetcher
hook in react module
- fix
useResourceFetcher
init value inference
- added
ResourceAjaxFail
type - added
resourceAjaxFail
constructor, use it instead ofresourceFail
for buildingAjaxSubject
- changed
AjaxSubject
intoObservable<AjaxResponse | ResourceAjaxFail<AE>>
[BREAKING CHANGE]
ResourceAjaxFail
is a subtype ofResourceFail
- renamed
resourceFold
asresourceFold_
, and fixedonfail
->onFail
[BREAKING CHANGE] - changed
resourceFold
(pipeable version) - removed
io-ts
strict dependency, now you can use your custom function as decoder
type ResourceDecoders = { [k in StatusCode]?: (i: unknown) => E.Either<unknown, unknown> }
- added some
Resource
guards - fixed
useResourceFetcher
inference