github redux-saga/redux-saga redux-saga@1.2.0

21 months ago

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 the package.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! - Require CpsCallback in all functions passed to the cps effect creator. This fixes a regression caused by TS 4.0 changing the behavior around spreading never into tuple types

  • #2004 20f22a8 Thanks @gilbsgilbs! - A generic type has been added to the Task interface and that should be preferred over using a generic parameter in Task#result and Task#toPromise.

  • #2068 586179c Thanks @mikabytes! - Added warnings when using take(channelOrPattern) incorrectly with more than one parameter. It helps to surface problem with take(ACTION_A, ACTION_B) being used instead of take([ACTION_A, ACTION_B]).

  • Updated dependencies [bed4458, 612cae8, 5ae6578, 979b8b4, 20f22a8, 586179c]:

    • @redux-saga/core@1.2.0

Don't miss a new redux-saga release

NewReleases is sending notifications on new releases.