feat: Don't reject m.request Promise if extract callback supplied (#2006)

This commit is contained in:
spacejack 2017-11-13 11:08:54 -05:00 committed by Pat Cavit
parent e90f14ebe0
commit 80b6a1af0d
4 changed files with 36 additions and 3 deletions

View file

@ -20,6 +20,7 @@
- API: `m.redraw()` is always asynchronous ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
- API: `m.mount()` will only render its own root when called, it will not trigger a `redraw()` ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
- API: Assigning to `vnode.state` (as in `vnode.state = ...`) is no longer supported. Instead, an error is thrown if `vnode.state` changes upon the invocation of a lifecycle hook.
- API: `m.request` will no longer reject the Promise on server errors (eg. status >= 400) if the caller supplies an `extract` callback. This gives applications more control over handling server responses.
#### News