Skip to content
Myr

Fixed #105: Curried reducers not returning new states

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Michel Weststrate · parent 782bf82 · Browse files · 3 files+18 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+18 added−1 removed

  • tests:+12 added−0 removed
  • other:+6 added−1 removed

3 files+18 added−1 removed

modified:__tests__/curry.js+12 added
modified:src/immer.js+1 added-1 removed
modified:changelog.md+5 added
1# Changelog234### 1.1.156* Fixed curried reducers not return new states correctly. Fixes [#105](https://github.com/mweststrate/immer/issues/105)78### 1.1.0910* It is now possible to return an entirely new state from a producer as well. Immer will verify that you didn't both change the draft and returned a new state. Implements [#103](https://github.com/mweststrate/immer/issues/103)11* Improved TypeScript typings. See [#99](https://github.com/mweststrate/immer/pull/99) by [Anton Fedchenko](https://github.com/kompot)
127 unmodified lines