{"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54","id":39913949,"html_url":"https://github.com/vigetlabs/microcosm/pull/54","diff_url":"https://github.com/vigetlabs/microcosm/pull/54.diff","patch_url":"https://github.com/vigetlabs/microcosm/pull/54.patch","issue_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/54","number":54,"state":"open","locked":false,"title":"Transaction refactor","user":{"login":"nhunzaker","id":590904,"avatar_url":"https://avatars.githubusercontent.com/u/590904?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunzaker","html_url":"https://github.com/nhunzaker","followers_url":"https://api.github.com/users/nhunzaker/followers","following_url":"https://api.github.com/users/nhunzaker/following{/other_user}","gists_url":"https://api.github.com/users/nhunzaker/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunzaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunzaker/subscriptions","organizations_url":"https://api.github.com/users/nhunzaker/orgs","repos_url":"https://api.github.com/users/nhunzaker/repos","events_url":"https://api.github.com/users/nhunzaker/events{/privacy}","received_events_url":"https://api.github.com/users/nhunzaker/received_events","type":"User","site_admin":false},"body":"I'm starting to write the Microcosm dev tools and I noticed a couple of issues with our approach. Specifically, when I send transactions over `window.postMessage` to the Chrome extension, it includes a reference to the action type as a function. This is a problem when the browser attempts to serialize the object using this algorithm:\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm\r\n\r\nI still do not have an answer yet for `Error` objects returned by promises. They also don't serialize (which is really unfortunate). Still, this lays the groundwork.","created_at":"2015-07-14T13:14:26Z","updated_at":"2015-07-14T13:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54/commits","review_comments_url":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54/comments","review_comment_url":"https://api.github.com/repos/vigetlabs/microcosm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/54/comments","statuses_url":"https://api.github.com/repos/vigetlabs/microcosm/statuses/82ee4d14141fba4cefc9d72d2cd2b4132e80506a","head":{"label":"vigetlabs:transaction-refactor","ref":"transaction-refactor","sha":"82ee4d14141fba4cefc9d72d2cd2b4132e80506a","user":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":32197485,"name":"microcosm","full_name":"vigetlabs/microcosm","owner":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vigetlabs/microcosm","description":"An isolated flux","fork":false,"url":"https://api.github.com/repos/vigetlabs/microcosm","forks_url":"https://api.github.com/repos/vigetlabs/microcosm/forks","keys_url":"https://api.github.com/repos/vigetlabs/microcosm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vigetlabs/microcosm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vigetlabs/microcosm/teams","hooks_url":"https://api.github.com/repos/vigetlabs/microcosm/hooks","issue_events_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/events{/number}","events_url":"https://api.github.com/repos/vigetlabs/microcosm/events","assignees_url":"https://api.github.com/repos/vigetlabs/microcosm/assignees{/user}","branches_url":"https://api.github.com/repos/vigetlabs/microcosm/branches{/branch}","tags_url":"https://api.github.com/repos/vigetlabs/microcosm/tags","blobs_url":"https://api.github.com/repos/vigetlabs/microcosm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vigetlabs/microcosm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vigetlabs/microcosm/git/refs{/sha}","trees_url":"https://api.github.com/repos/vigetlabs/microcosm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vigetlabs/microcosm/statuses/{sha}","languages_url":"https://api.github.com/repos/vigetlabs/microcosm/languages","stargazers_url":"https://api.github.com/repos/vigetlabs/microcosm/stargazers","contributors_url":"https://api.github.com/repos/vigetlabs/microcosm/contributors","subscribers_url":"https://api.github.com/repos/vigetlabs/microcosm/subscribers","subscription_url":"https://api.github.com/repos/vigetlabs/microcosm/subscription","commits_url":"https://api.github.com/repos/vigetlabs/microcosm/commits{/sha}","git_commits_url":"https://api.github.com/repos/vigetlabs/microcosm/git/commits{/sha}","comments_url":"https://api.github.com/repos/vigetlabs/microcosm/comments{/number}","issue_comment_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/comments{/number}","contents_url":"https://api.github.com/repos/vigetlabs/microcosm/contents/{+path}","compare_url":"https://api.github.com/repos/vigetlabs/microcosm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vigetlabs/microcosm/merges","archive_url":"https://api.github.com/repos/vigetlabs/microcosm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vigetlabs/microcosm/downloads","issues_url":"https://api.github.com/repos/vigetlabs/microcosm/issues{/number}","pulls_url":"https://api.github.com/repos/vigetlabs/microcosm/pulls{/number}","milestones_url":"https://api.github.com/repos/vigetlabs/microcosm/milestones{/number}","notifications_url":"https://api.github.com/repos/vigetlabs/microcosm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vigetlabs/microcosm/labels{/name}","releases_url":"https://api.github.com/repos/vigetlabs/microcosm/releases{/id}","created_at":"2015-03-14T05:33:11Z","updated_at":"2015-07-12T06:00:04Z","pushed_at":"2015-07-14T13:11:18Z","git_url":"git://github.com/vigetlabs/microcosm.git","ssh_url":"git@github.com:vigetlabs/microcosm.git","clone_url":"https://github.com/vigetlabs/microcosm.git","svn_url":"https://github.com/vigetlabs/microcosm","homepage":"http://vigetlabs.github.io/microcosm","size":1581,"stargazers_count":62,"watchers_count":62,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":62,"default_branch":"master"}},"base":{"label":"vigetlabs:master","ref":"master","sha":"569b7f807b4f21122893b3ac2bd68887f302af67","user":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":32197485,"name":"microcosm","full_name":"vigetlabs/microcosm","owner":{"login":"vigetlabs","id":4845,"avatar_url":"https://avatars.githubusercontent.com/u/4845?v=3","gravatar_id":"","url":"https://api.github.com/users/vigetlabs","html_url":"https://github.com/vigetlabs","followers_url":"https://api.github.com/users/vigetlabs/followers","following_url":"https://api.github.com/users/vigetlabs/following{/other_user}","gists_url":"https://api.github.com/users/vigetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/vigetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigetlabs/subscriptions","organizations_url":"https://api.github.com/users/vigetlabs/orgs","repos_url":"https://api.github.com/users/vigetlabs/repos","events_url":"https://api.github.com/users/vigetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/vigetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vigetlabs/microcosm","description":"An isolated flux","fork":false,"url":"https://api.github.com/repos/vigetlabs/microcosm","forks_url":"https://api.github.com/repos/vigetlabs/microcosm/forks","keys_url":"https://api.github.com/repos/vigetlabs/microcosm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vigetlabs/microcosm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vigetlabs/microcosm/teams","hooks_url":"https://api.github.com/repos/vigetlabs/microcosm/hooks","issue_events_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/events{/number}","events_url":"https://api.github.com/repos/vigetlabs/microcosm/events","assignees_url":"https://api.github.com/repos/vigetlabs/microcosm/assignees{/user}","branches_url":"https://api.github.com/repos/vigetlabs/microcosm/branches{/branch}","tags_url":"https://api.github.com/repos/vigetlabs/microcosm/tags","blobs_url":"https://api.github.com/repos/vigetlabs/microcosm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vigetlabs/microcosm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vigetlabs/microcosm/git/refs{/sha}","trees_url":"https://api.github.com/repos/vigetlabs/microcosm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vigetlabs/microcosm/statuses/{sha}","languages_url":"https://api.github.com/repos/vigetlabs/microcosm/languages","stargazers_url":"https://api.github.com/repos/vigetlabs/microcosm/stargazers","contributors_url":"https://api.github.com/repos/vigetlabs/microcosm/contributors","subscribers_url":"https://api.github.com/repos/vigetlabs/microcosm/subscribers","subscription_url":"https://api.github.com/repos/vigetlabs/microcosm/subscription","commits_url":"https://api.github.com/repos/vigetlabs/microcosm/commits{/sha}","git_commits_url":"https://api.github.com/repos/vigetlabs/microcosm/git/commits{/sha}","comments_url":"https://api.github.com/repos/vigetlabs/microcosm/comments{/number}","issue_comment_url":"https://api.github.com/repos/vigetlabs/microcosm/issues/comments{/number}","contents_url":"https://api.github.com/repos/vigetlabs/microcosm/contents/{+path}","compare_url":"https://api.github.com/repos/vigetlabs/microcosm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vigetlabs/microcosm/merges","archive_url":"https://api.github.com/repos/vigetlabs/microcosm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vigetlabs/microcosm/downloads","issues_url":"https://api.github.com/repos/vigetlabs/microcosm/issues{/number}","pulls_url":"https://api.github.com/repos/vigetlabs/microcosm/pulls{/number}","milestones_url":"https://api.github.com/repos/vigetlabs/microcosm/milestones{/number}","notifications_url":"https://api.github.com/repos/vigetlabs/microcosm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vigetlabs/microcosm/labels{/name}","releases_url":"https://api.github.com/repos/vigetlabs/microcosm/releases{/id}","created_at":"2015-03-14T05:33:11Z","updated_at":"2015-07-12T06:00:04Z","pushed_at":"2015-07-14T13:11:18Z","git_url":"git://github.com/vigetlabs/microcosm.git","ssh_url":"git@github.com:vigetlabs/microcosm.git","clone_url":"https://github.com/vigetlabs/microcosm.git","svn_url":"https://github.com/vigetlabs/microcosm","homepage":"http://vigetlabs.github.io/microcosm","size":1581,"stargazers_count":62,"watchers_count":62,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54"},"html":{"href":"https://github.com/vigetlabs/microcosm/pull/54"},"issue":{"href":"https://api.github.com/repos/vigetlabs/microcosm/issues/54"},"comments":{"href":"https://api.github.com/repos/vigetlabs/microcosm/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/vigetlabs/microcosm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vigetlabs/microcosm/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/vigetlabs/microcosm/statuses/82ee4d14141fba4cefc9d72d2cd2b4132e80506a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":80,"deletions":104,"changed_files":10}}