{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25","id":54609436,"html_url":"https://github.com/indexiatech/redux-immutablejs/pull/25","diff_url":"https://github.com/indexiatech/redux-immutablejs/pull/25.diff","patch_url":"https://github.com/indexiatech/redux-immutablejs/pull/25.patch","issue_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/25","number":25,"state":"open","locked":false,"title":"Support unexpected keys and reduce the number of discarded duplicates","user":{"login":"phallguy","id":1594371,"avatar_url":"https://avatars.githubusercontent.com/u/1594371?v=3","gravatar_id":"","url":"https://api.github.com/users/phallguy","html_url":"https://github.com/phallguy","followers_url":"https://api.github.com/users/phallguy/followers","following_url":"https://api.github.com/users/phallguy/following{/other_user}","gists_url":"https://api.github.com/users/phallguy/gists{/gist_id}","starred_url":"https://api.github.com/users/phallguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phallguy/subscriptions","organizations_url":"https://api.github.com/users/phallguy/orgs","repos_url":"https://api.github.com/users/phallguy/repos","events_url":"https://api.github.com/users/phallguy/events{/privacy}","received_events_url":"https://api.github.com/users/phallguy/received_events","type":"User","site_admin":false},"body":"Thanks for putting this library together. Makes ImmutableJS that much more usable for redux. I found a little bug in the current implementation that I fixed. Hopefully you'll find it useful as well.\r\n\r\nThis change fixes a couple little things.\r\n\r\n1. It reduces the number of temporary maps that are discarded if there are no changes. While small, it means that for each action an Immutable.Map is created then immediately discarded for changes in larger object graphs. \r\n\r\n2. It also fixes a bug where key sin the original state are lost if there is no reducer mapped to that key. This also more closely matches the behavior of the combineReducers method from redux proper.\r\n\r\n   ```javascript\r\n   const state = Immutable.Map({ unexpected: true })\r\n   const oldMethod = reduce( state, { type: 'ANYTHING' })\r\n\r\n   oldMethod.get('unexpected') === false  // :/ not what we want\r\n\r\n   const newMethod = reduce( state, { type: 'ANYTHING' })\r\n\r\n   oldMethod.get('unexpected') === true  // Yay!\r\n   ```","created_at":"2015-12-27T00:18:54Z","updated_at":"2015-12-27T00:18:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25/commits","review_comments_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25/comments","review_comment_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/25/comments","statuses_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/statuses/9e80919e3bb346c77e45de024039b252602c66c3","head":{"label":"phallguy:master","ref":"master","sha":"9e80919e3bb346c77e45de024039b252602c66c3","user":{"login":"phallguy","id":1594371,"avatar_url":"https://avatars.githubusercontent.com/u/1594371?v=3","gravatar_id":"","url":"https://api.github.com/users/phallguy","html_url":"https://github.com/phallguy","followers_url":"https://api.github.com/users/phallguy/followers","following_url":"https://api.github.com/users/phallguy/following{/other_user}","gists_url":"https://api.github.com/users/phallguy/gists{/gist_id}","starred_url":"https://api.github.com/users/phallguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phallguy/subscriptions","organizations_url":"https://api.github.com/users/phallguy/orgs","repos_url":"https://api.github.com/users/phallguy/repos","events_url":"https://api.github.com/users/phallguy/events{/privacy}","received_events_url":"https://api.github.com/users/phallguy/received_events","type":"User","site_admin":false},"repo":{"id":48627412,"name":"redux-immutablejs","full_name":"phallguy/redux-immutablejs","owner":{"login":"phallguy","id":1594371,"avatar_url":"https://avatars.githubusercontent.com/u/1594371?v=3","gravatar_id":"","url":"https://api.github.com/users/phallguy","html_url":"https://github.com/phallguy","followers_url":"https://api.github.com/users/phallguy/followers","following_url":"https://api.github.com/users/phallguy/following{/other_user}","gists_url":"https://api.github.com/users/phallguy/gists{/gist_id}","starred_url":"https://api.github.com/users/phallguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phallguy/subscriptions","organizations_url":"https://api.github.com/users/phallguy/orgs","repos_url":"https://api.github.com/users/phallguy/repos","events_url":"https://api.github.com/users/phallguy/events{/privacy}","received_events_url":"https://api.github.com/users/phallguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phallguy/redux-immutablejs","description":"Redux Immutable facilities.","fork":true,"url":"https://api.github.com/repos/phallguy/redux-immutablejs","forks_url":"https://api.github.com/repos/phallguy/redux-immutablejs/forks","keys_url":"https://api.github.com/repos/phallguy/redux-immutablejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phallguy/redux-immutablejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phallguy/redux-immutablejs/teams","hooks_url":"https://api.github.com/repos/phallguy/redux-immutablejs/hooks","issue_events_url":"https://api.github.com/repos/phallguy/redux-immutablejs/issues/events{/number}","events_url":"https://api.github.com/repos/phallguy/redux-immutablejs/events","assignees_url":"https://api.github.com/repos/phallguy/redux-immutablejs/assignees{/user}","branches_url":"https://api.github.com/repos/phallguy/redux-immutablejs/branches{/branch}","tags_url":"https://api.github.com/repos/phallguy/redux-immutablejs/tags","blobs_url":"https://api.github.com/repos/phallguy/redux-immutablejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phallguy/redux-immutablejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phallguy/redux-immutablejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/phallguy/redux-immutablejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phallguy/redux-immutablejs/statuses/{sha}","languages_url":"https://api.github.com/repos/phallguy/redux-immutablejs/languages","stargazers_url":"https://api.github.com/repos/phallguy/redux-immutablejs/stargazers","contributors_url":"https://api.github.com/repos/phallguy/redux-immutablejs/contributors","subscribers_url":"https://api.github.com/repos/phallguy/redux-immutablejs/subscribers","subscription_url":"https://api.github.com/repos/phallguy/redux-immutablejs/subscription","commits_url":"https://api.github.com/repos/phallguy/redux-immutablejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/phallguy/redux-immutablejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/phallguy/redux-immutablejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/phallguy/redux-immutablejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/phallguy/redux-immutablejs/contents/{+path}","compare_url":"https://api.github.com/repos/phallguy/redux-immutablejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phallguy/redux-immutablejs/merges","archive_url":"https://api.github.com/repos/phallguy/redux-immutablejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phallguy/redux-immutablejs/downloads","issues_url":"https://api.github.com/repos/phallguy/redux-immutablejs/issues{/number}","pulls_url":"https://api.github.com/repos/phallguy/redux-immutablejs/pulls{/number}","milestones_url":"https://api.github.com/repos/phallguy/redux-immutablejs/milestones{/number}","notifications_url":"https://api.github.com/repos/phallguy/redux-immutablejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phallguy/redux-immutablejs/labels{/name}","releases_url":"https://api.github.com/repos/phallguy/redux-immutablejs/releases{/id}","created_at":"2015-12-27T00:06:30Z","updated_at":"2015-12-27T00:06:32Z","pushed_at":"2015-12-27T00:12:28Z","git_url":"git://github.com/phallguy/redux-immutablejs.git","ssh_url":"git@github.com:phallguy/redux-immutablejs.git","clone_url":"https://github.com/phallguy/redux-immutablejs.git","svn_url":"https://github.com/phallguy/redux-immutablejs","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"indexiatech:master","ref":"master","sha":"494c68cabc09814cd5049426911a3ce80bdc6eed","user":{"login":"indexiatech","id":8259564,"avatar_url":"https://avatars.githubusercontent.com/u/8259564?v=3","gravatar_id":"","url":"https://api.github.com/users/indexiatech","html_url":"https://github.com/indexiatech","followers_url":"https://api.github.com/users/indexiatech/followers","following_url":"https://api.github.com/users/indexiatech/following{/other_user}","gists_url":"https://api.github.com/users/indexiatech/gists{/gist_id}","starred_url":"https://api.github.com/users/indexiatech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indexiatech/subscriptions","organizations_url":"https://api.github.com/users/indexiatech/orgs","repos_url":"https://api.github.com/users/indexiatech/repos","events_url":"https://api.github.com/users/indexiatech/events{/privacy}","received_events_url":"https://api.github.com/users/indexiatech/received_events","type":"Organization","site_admin":false},"repo":{"id":41916378,"name":"redux-immutablejs","full_name":"indexiatech/redux-immutablejs","owner":{"login":"indexiatech","id":8259564,"avatar_url":"https://avatars.githubusercontent.com/u/8259564?v=3","gravatar_id":"","url":"https://api.github.com/users/indexiatech","html_url":"https://github.com/indexiatech","followers_url":"https://api.github.com/users/indexiatech/followers","following_url":"https://api.github.com/users/indexiatech/following{/other_user}","gists_url":"https://api.github.com/users/indexiatech/gists{/gist_id}","starred_url":"https://api.github.com/users/indexiatech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indexiatech/subscriptions","organizations_url":"https://api.github.com/users/indexiatech/orgs","repos_url":"https://api.github.com/users/indexiatech/repos","events_url":"https://api.github.com/users/indexiatech/events{/privacy}","received_events_url":"https://api.github.com/users/indexiatech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/indexiatech/redux-immutablejs","description":"Redux Immutable facilities.","fork":false,"url":"https://api.github.com/repos/indexiatech/redux-immutablejs","forks_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/forks","keys_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/teams","hooks_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/hooks","issue_events_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/events{/number}","events_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/events","assignees_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/assignees{/user}","branches_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/branches{/branch}","tags_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/tags","blobs_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/statuses/{sha}","languages_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/languages","stargazers_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/stargazers","contributors_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/contributors","subscribers_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/subscribers","subscription_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/subscription","commits_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/contents/{+path}","compare_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/merges","archive_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/downloads","issues_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues{/number}","pulls_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls{/number}","milestones_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/milestones{/number}","notifications_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/labels{/name}","releases_url":"https://api.github.com/repos/indexiatech/redux-immutablejs/releases{/id}","created_at":"2015-09-04T13:07:25Z","updated_at":"2015-12-26T09:51:24Z","pushed_at":"2015-12-27T00:18:54Z","git_url":"git://github.com/indexiatech/redux-immutablejs.git","ssh_url":"git@github.com:indexiatech/redux-immutablejs.git","clone_url":"https://github.com/indexiatech/redux-immutablejs.git","svn_url":"https://github.com/indexiatech/redux-immutablejs","homepage":null,"size":20,"stargazers_count":179,"watchers_count":179,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25"},"html":{"href":"https://github.com/indexiatech/redux-immutablejs/pull/25"},"issue":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/25"},"comments":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/indexiatech/redux-immutablejs/statuses/9e80919e3bb346c77e45de024039b252602c66c3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":7,"changed_files":2}}