From c551ffb206289d8ff39cf2148b5c8546cfe4241c Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Fri, 2 Dec 2016 10:43:47 -0800 Subject: [PATCH] Break out m.sync removal, it's important --- docs/v1.x-migration.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/v1.x-migration.md b/docs/v1.x-migration.md index 931f7689..ede1dc92 100644 --- a/docs/v1.x-migration.md +++ b/docs/v1.x-migration.md @@ -17,6 +17,7 @@ - [Accessing route params](#accessing-route-params) - [Preventing unmounting](#preventing-unmounting) - [`m.request`](#mrequest) +- [`m.sync` removed](#msync-removed) - [`xlink` namespace required](#xlink-namespace-required) - [Nested arrays in views](#nested-arrays-in-views) - [`vnode` equality checks](#vnode-equality-checks) @@ -25,7 +26,7 @@ ## `m.prop` removed -In `v1.x`, `m.prop` is now a more powerful stream micro-library, but it's no longer part of core. +In `v1.x`, `m.prop()` is now a more powerful stream micro-library, but it's no longer part of core. ### `v0.2.x` @@ -475,7 +476,13 @@ setTimeout(function() { }, 1000) ``` -The equivalent of `m.sync` is now `Promise.all` +Additionally, if the `extract` option is passed to `m.request` the return value of the provided function will be used directly to resolve its promise, and the `deserialize` callback is ignored. + +--- + +## `m.sync` removed + +`m.sync` has been removed in favor of `Promise.all` ### `v0.2.x` @@ -501,8 +508,6 @@ Promise.all([ }) ``` -Additionally, if the `extract` option is passed to `m.request` the return value of the provided function will be used directly to resolve its promise, and the `deserialize` callback is ignored. - --- ## `xlink` namespace required