Minor Changes
-
#2295
bed4458
Thanks @lourd! - Adds type inference for result of task returned from runSaga and SagaMiddleware.run -
#2296
612cae8
Thanks @lourd! - Updates Channel type to eliminate void-emitting pitfall -
#2308
8207e33
Thanks @Andarist, @neurosnap! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API.This should fix the compatibility with Node.js ESM support.
Patch Changes
-
#2261
5ae6578
Thanks @neurosnap! - RequireCpsCallback
in all functions passed to thecps
effect creator. This fixes a regression caused by TS 4.0 changing the behavior around spreadingnever
into tuple types -
#2004
20f22a8
Thanks @gilbsgilbs! - A generic type has been added to theTask
interface and that should be preferred over using a generic parameter inTask#result
andTask#toPromise
. -
#2068
586179c
Thanks @mikabytes! - Added warnings when usingtake(channelOrPattern)
incorrectly with more than one parameter. It helps to surface problem withtake(ACTION_A, ACTION_B)
being used instead oftake([ACTION_A, ACTION_B])
. -
Updated dependencies [
bed4458
,612cae8
,979b8b4
,20f22a8
,d2579a2
,2d2214e
]:- @redux-saga/types@1.2.0
- @redux-saga/deferred@1.2.0
- @redux-saga/delay-p@1.2.0