tag:github.com,2008:https://github.com/ericelliott/autodux/releasesRelease notes from autodux2019-03-07T19:44:12Ztag:github.com,2008:Repository/97222067/v5.0.12019-03-07T19:44:12Zv5.0.1<p>5.0.1</p>ericelliotttag:github.com,2008:Repository/97222067/v5.0.02019-02-15T06:34:05Zv5.0.0<p>5.0.0</p>ericelliotttag:github.com,2008:Repository/97222067/v4.0.32018-10-31T21:27:27Zv4.0.3<p>4.0.3</p>ericelliotttag:github.com,2008:Repository/97222067/v4.0.22018-10-08T21:01:09Zv4.0.2<p>4.0.2</p>ericelliotttag:github.com,2008:Repository/97222067/v4.0.12018-10-08T20:52:43Zv4.0.1<p>4.0.1</p>ericelliotttag:github.com,2008:Repository/97222067/v4.0.02018-07-30T23:05:35ZFix nested action objects<p>This version fixes a bug that caused payloads to nest inside each other. See issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="327311363" data-permission-text="Title is private" data-url="https://github.com/ericelliott/autodux/issues/23" data-hovercard-type="issue" data-hovercard-url="/ericelliott/autodux/issues/23/hovercard" href="https://github.com/ericelliott/autodux/issues/23">#23</a></p>
<p>We consider this a breaking change because some users may have worked around the bug by digging into the incorrectly created action object to get at the correct payload key.</p>
<p>If your project breaks when you upgrade to this version, the fix is to find code that digs into a returned action object such that you are accessing <code>action.payload.payload</code> and update it so that it only tries to read from the top level <code>action.payload</code>.</p>ericelliotttag:github.com,2008:Repository/97222067/v3.0.12018-05-09T00:22:49Zv3.0.1<p>3.0.1</p>ericelliotttag:github.com,2008:Repository/97222067/v3.0.02018-03-19T09:00:37Zv3.0.0<p>3.0.0</p>ericelliotttag:github.com,2008:Repository/97222067/v2.0.12018-03-16T20:23:57Zv2.0.1<p>2.0.1</p>ericelliotttag:github.com,2008:Repository/97222067/v2.0.02018-03-16T04:56:01ZDefaults API<p>Breaking changes:</p>
<ul>
<li><code>actions: { action: { create () {} }}</code> now defaults to pass the first argument through as the payload</li>
</ul>
<p>Enhancements:</p>
<ul>
<li><code>actions: { action: { reduce () {} }}</code> now defaults to prop assign (<code>{...state, ...payload}</code>) if omitted (was: Error)</li>
<li>Added <code>id = x => x</code> utility function</li>
<li>Added <code>assign('propName')</code> utility function to set the provided key in the state to the payload value.</li>
<li>You can now replace the <code>actions: { action }</code> object with a function. It will be used as the reducer, assuming the default action creator behavior</li>
<li>More documentation and examples</li>
</ul>ericelliott