{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/800","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/800/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/800/events","html_url":"https://github.com/lhorie/mithril.js/issues/800","id":108615633,"number":800,"title":"Depend on ES6-style promises instead of using Mithril deferreds","user":{"login":"isiahmeadows","id":4483844,"avatar_url":"https://avatars.githubusercontent.com/u/4483844?v=3","gravatar_id":"","url":"https://api.github.com/users/isiahmeadows","html_url":"https://github.com/isiahmeadows","followers_url":"https://api.github.com/users/isiahmeadows/followers","following_url":"https://api.github.com/users/isiahmeadows/following{/other_user}","gists_url":"https://api.github.com/users/isiahmeadows/gists{/gist_id}","starred_url":"https://api.github.com/users/isiahmeadows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isiahmeadows/subscriptions","organizations_url":"https://api.github.com/users/isiahmeadows/orgs","repos_url":"https://api.github.com/users/isiahmeadows/repos","events_url":"https://api.github.com/users/isiahmeadows/events{/privacy}","received_events_url":"https://api.github.com/users/isiahmeadows/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lhorie/mithril.js/labels/breaking%20change%20proposal","name":"breaking change proposal","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-28T08:57:35Z","updated_at":"2015-12-17T00:19:09Z","closed_at":null,"body":"This has been discussed on Gitter multiple times, and @lhorie himself initially came up with the idea. Currently, the deferred implementation makes up 180 lines of code, incl. comments, and converting the rest of this to use ES6-style promises would also simplify `m.request()` some. There's also smaller implementations than Mithril's as well, such as [promiscuous](https://github.com/RubenVerborgh/promiscuous), which is even Promises/A+ compliant and has a `Promise.all` implementation as well.\r\n\r\nBasically, this is seeing if the left side may be deprecated in favor of the right side, with Mithril internally changing to use the right:\r\n\r\n| Deprecated | New |\r\n|:---------------:|:------:|\r\n| `m.deferred()` | `new Promise()` |\r\n| `m.sync()` | `Promise.all()` |\r\n\r\nWhat do you all think?"},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/165297546","html_url":"https://github.com/lhorie/mithril.js/issues/800#issuecomment-165297546","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/800","id":165297546,"user":{"login":"pygy","id":54515,"avatar_url":"https://avatars.githubusercontent.com/u/54515?v=3","gravatar_id":"","url":"https://api.github.com/users/pygy","html_url":"https://github.com/pygy","followers_url":"https://api.github.com/users/pygy/followers","following_url":"https://api.github.com/users/pygy/following{/other_user}","gists_url":"https://api.github.com/users/pygy/gists{/gist_id}","starred_url":"https://api.github.com/users/pygy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pygy/subscriptions","organizations_url":"https://api.github.com/users/pygy/orgs","repos_url":"https://api.github.com/users/pygy/repos","events_url":"https://api.github.com/users/pygy/events{/privacy}","received_events_url":"https://api.github.com/users/pygy/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T00:19:09Z","updated_at":"2015-12-17T00:19:09Z","body":"It's been discussed elsewhere, but, did you guys check out Rollup?\r\n\r\n/ducks ;-)"}}