From 8ac72911a83e6178d3acda07dcdc923865a61e3d Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 12 Feb 2015 22:15:42 -0500 Subject: [PATCH] update docs and change log --- docs/change-log.md | 18 ++++++++++++++++++ docs/mithril.request.md | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/docs/change-log.md b/docs/change-log.md index 3a281aa0..8fb182f8 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -1,5 +1,21 @@ ## Change Log +[v0.1.31](/mithril/archive/v0.1.31) - maintenance + +### News: + +- Typescript definitions are more strongly typed +- m.request's `unwrapSuccess` and `unwrapError` callbacks now receive the XMLHttpRequest instance as a second parameter +- 3rd parameter for `m.route(route, params, shouldReplaceHistory)` is now public +- exact routes now have higher precedence than routes w/ variables [#452](https://github.com/lhorie/mithril.js/issues/452) + +### Bug Fixes: + +- fix routing bug in IE9 [#320](https://github.com/lhorie/mithril.js/issues/320) +- fix ordering bug in m.trust when using HTML entities [#453](https://github.com/lhorie/mithril.js/issues/453) + +--- + [v0.1.30](/mithril/archive/v0.1.30) - maintenance ### Bug Fixes: @@ -8,6 +24,8 @@ - fix module.view's `this` association regression in Haxe environment [#434](https://github.com/lhorie/mithril.js/issues/434) - fix array serialization syntax in querystrings [#440](https://github.com/lhorie/mithril.js/issues/440) +--- + [v0.1.29](/mithril/archive/v0.1.29) - maintenance ### News: diff --git a/docs/mithril.request.md b/docs/mithril.request.md index 1f45ccdb..c133a0b3 100644 --- a/docs/mithril.request.md +++ b/docs/mithril.request.md @@ -507,7 +507,7 @@ where: The value that populates the returned getter-setter before the request completes. This is useful when using the `background` option, in order to avoid the need for null checks in views that may be attempting to access the returned getter-setter before the asynchronous request resolves. - - **any unwrapSuccess(any data)** (optional) + - **any unwrapSuccess(any data, XMLHttpRequest xhr)** (optional) A preprocessor function to unwrap the data from a success response in case the response contains metadata wrapping the data. @@ -523,7 +523,7 @@ where: The unwrapped data - - **any unwrapError(any data)** (optional) + - **any unwrapError(any data, XMLHttpRequest xhr)** (optional) A preprocessor function to unwrap the data from an error response in case the response contains metadata wrapping the data.