{"action":"created","comment":{"url":"https://api.github.com/repos/cerebral/cerebral/pulls/comments/111561948","pull_request_review_id":32816803,"id":111561948,"diff_hunk":"@@ -4,7 +4,23 @@ import StateContainerFactory from './StateContainer'\n import HocFactory from './Hoc'\n import connectFactory, { decoratorFactory } from './connect'\n \n-export const Container = ContainerFactory(React)\n-export const StateContainer = StateContainerFactory(React)\n-export const connect = connectFactory(HocFactory(React))\n-export const decorator = decoratorFactory(HocFactory(React))\n+let PropTypes\n+\n+if (React.version.slice(0, 4) === '15.5') {\n+  try {\n+    PropTypes = require('prop-types')","path":"packages/cerebral/src/viewFactories/react.js","position":12,"original_position":12,"commit_id":"cbb9b947a714af2d4595b1ec2c0891fe456c1476","original_commit_id":"cbb9b947a714af2d4595b1ec2c0891fe456c1476","user":{"login":"fmal","id":927591,"avatar_url":"https://avatars2.githubusercontent.com/u/927591?v=3","gravatar_id":"","url":"https://api.github.com/users/fmal","html_url":"https://github.com/fmal","followers_url":"https://api.github.com/users/fmal/followers","following_url":"https://api.github.com/users/fmal/following{/other_user}","gists_url":"https://api.github.com/users/fmal/gists{/gist_id}","starred_url":"https://api.github.com/users/fmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmal/subscriptions","organizations_url":"https://api.github.com/users/fmal/orgs","repos_url":"https://api.github.com/users/fmal/repos","events_url":"https://api.github.com/users/fmal/events{/privacy}","received_events_url":"https://api.github.com/users/fmal/received_events","type":"User","site_admin":false},"body":"@guria right, we could adjust the check to be:\r\n\r\n```js\r\nconst [major, minor] = React.version.split('.');\r\n\r\nif ((major === '15' && minor >= 5) || major === '16') {\r\n  ...\r\n}\r\n```\r\nlet me try that with `react@16.0.0-alpha.9`\r\n\r\n","created_at":"2017-04-14T11:14:09Z","updated_at":"2017-04-14T11:14:10Z","html_url":"https://github.com/cerebral/cerebral/pull/828#discussion_r111561948","pull_request_url":"https://api.github.com/repos/cerebral/cerebral/pulls/828","_links":{"self":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/comments/111561948"},"html":{"href":"https://github.com/cerebral/cerebral/pull/828#discussion_r111561948"},"pull_request":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/828"}}},"pull_request":{"url":"https://api.github.com/repos/cerebral/cerebral/pulls/828","id":114987367,"html_url":"https://github.com/cerebral/cerebral/pull/828","diff_url":"https://github.com/cerebral/cerebral/pull/828.diff","patch_url":"https://github.com/cerebral/cerebral/pull/828.patch","issue_url":"https://api.github.com/repos/cerebral/cerebral/issues/828","number":828,"state":"open","locked":false,"title":"fix(Views): updated PropTypes to come from prop-types to avoid deprec…","user":{"login":"fmal","id":927591,"avatar_url":"https://avatars2.githubusercontent.com/u/927591?v=3","gravatar_id":"","url":"https://api.github.com/users/fmal","html_url":"https://github.com/fmal","followers_url":"https://api.github.com/users/fmal/followers","following_url":"https://api.github.com/users/fmal/following{/other_user}","gists_url":"https://api.github.com/users/fmal/gists{/gist_id}","starred_url":"https://api.github.com/users/fmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmal/subscriptions","organizations_url":"https://api.github.com/users/fmal/orgs","repos_url":"https://api.github.com/users/fmal/repos","events_url":"https://api.github.com/users/fmal/events{/privacy}","received_events_url":"https://api.github.com/users/fmal/received_events","type":"User","site_admin":false},"body":"…ation warnings for React 15.5+","created_at":"2017-04-09T14:08:06Z","updated_at":"2017-04-14T11:14:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c48fedb71c6f9cf24bb1017124ef01fe8142ca9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cerebral/cerebral/pulls/828/commits","review_comments_url":"https://api.github.com/repos/cerebral/cerebral/pulls/828/comments","review_comment_url":"https://api.github.com/repos/cerebral/cerebral/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cerebral/cerebral/issues/828/comments","statuses_url":"https://api.github.com/repos/cerebral/cerebral/statuses/cbb9b947a714af2d4595b1ec2c0891fe456c1476","head":{"label":"fmal:pr/prop-types","ref":"pr/prop-types","sha":"cbb9b947a714af2d4595b1ec2c0891fe456c1476","user":{"login":"fmal","id":927591,"avatar_url":"https://avatars2.githubusercontent.com/u/927591?v=3","gravatar_id":"","url":"https://api.github.com/users/fmal","html_url":"https://github.com/fmal","followers_url":"https://api.github.com/users/fmal/followers","following_url":"https://api.github.com/users/fmal/following{/other_user}","gists_url":"https://api.github.com/users/fmal/gists{/gist_id}","starred_url":"https://api.github.com/users/fmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmal/subscriptions","organizations_url":"https://api.github.com/users/fmal/orgs","repos_url":"https://api.github.com/users/fmal/repos","events_url":"https://api.github.com/users/fmal/events{/privacy}","received_events_url":"https://api.github.com/users/fmal/received_events","type":"User","site_admin":false},"repo":{"id":81209166,"name":"cerebral","full_name":"fmal/cerebral","owner":{"login":"fmal","id":927591,"avatar_url":"https://avatars2.githubusercontent.com/u/927591?v=3","gravatar_id":"","url":"https://api.github.com/users/fmal","html_url":"https://github.com/fmal","followers_url":"https://api.github.com/users/fmal/followers","following_url":"https://api.github.com/users/fmal/following{/other_user}","gists_url":"https://api.github.com/users/fmal/gists{/gist_id}","starred_url":"https://api.github.com/users/fmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmal/subscriptions","organizations_url":"https://api.github.com/users/fmal/orgs","repos_url":"https://api.github.com/users/fmal/repos","events_url":"https://api.github.com/users/fmal/events{/privacy}","received_events_url":"https://api.github.com/users/fmal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fmal/cerebral","description":"A state controller with its own debugger","fork":true,"url":"https://api.github.com/repos/fmal/cerebral","forks_url":"https://api.github.com/repos/fmal/cerebral/forks","keys_url":"https://api.github.com/repos/fmal/cerebral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fmal/cerebral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fmal/cerebral/teams","hooks_url":"https://api.github.com/repos/fmal/cerebral/hooks","issue_events_url":"https://api.github.com/repos/fmal/cerebral/issues/events{/number}","events_url":"https://api.github.com/repos/fmal/cerebral/events","assignees_url":"https://api.github.com/repos/fmal/cerebral/assignees{/user}","branches_url":"https://api.github.com/repos/fmal/cerebral/branches{/branch}","tags_url":"https://api.github.com/repos/fmal/cerebral/tags","blobs_url":"https://api.github.com/repos/fmal/cerebral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fmal/cerebral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fmal/cerebral/git/refs{/sha}","trees_url":"https://api.github.com/repos/fmal/cerebral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fmal/cerebral/statuses/{sha}","languages_url":"https://api.github.com/repos/fmal/cerebral/languages","stargazers_url":"https://api.github.com/repos/fmal/cerebral/stargazers","contributors_url":"https://api.github.com/repos/fmal/cerebral/contributors","subscribers_url":"https://api.github.com/repos/fmal/cerebral/subscribers","subscription_url":"https://api.github.com/repos/fmal/cerebral/subscription","commits_url":"https://api.github.com/repos/fmal/cerebral/commits{/sha}","git_commits_url":"https://api.github.com/repos/fmal/cerebral/git/commits{/sha}","comments_url":"https://api.github.com/repos/fmal/cerebral/comments{/number}","issue_comment_url":"https://api.github.com/repos/fmal/cerebral/issues/comments{/number}","contents_url":"https://api.github.com/repos/fmal/cerebral/contents/{+path}","compare_url":"https://api.github.com/repos/fmal/cerebral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fmal/cerebral/merges","archive_url":"https://api.github.com/repos/fmal/cerebral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fmal/cerebral/downloads","issues_url":"https://api.github.com/repos/fmal/cerebral/issues{/number}","pulls_url":"https://api.github.com/repos/fmal/cerebral/pulls{/number}","milestones_url":"https://api.github.com/repos/fmal/cerebral/milestones{/number}","notifications_url":"https://api.github.com/repos/fmal/cerebral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fmal/cerebral/labels{/name}","releases_url":"https://api.github.com/repos/fmal/cerebral/releases{/id}","deployments_url":"https://api.github.com/repos/fmal/cerebral/deployments","created_at":"2017-02-07T13:07:15Z","updated_at":"2017-02-07T13:07:17Z","pushed_at":"2017-04-14T08:08:26Z","git_url":"git://github.com/fmal/cerebral.git","ssh_url":"git@github.com:fmal/cerebral.git","clone_url":"https://github.com/fmal/cerebral.git","svn_url":"https://github.com/fmal/cerebral","homepage":"","size":8603,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"cerebral:master","ref":"master","sha":"7904e290b1fb5e1d6fc6f33df5c94ed235a1375e","user":{"login":"cerebral","id":15994611,"avatar_url":"https://avatars2.githubusercontent.com/u/15994611?v=3","gravatar_id":"","url":"https://api.github.com/users/cerebral","html_url":"https://github.com/cerebral","followers_url":"https://api.github.com/users/cerebral/followers","following_url":"https://api.github.com/users/cerebral/following{/other_user}","gists_url":"https://api.github.com/users/cerebral/gists{/gist_id}","starred_url":"https://api.github.com/users/cerebral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerebral/subscriptions","organizations_url":"https://api.github.com/users/cerebral/orgs","repos_url":"https://api.github.com/users/cerebral/repos","events_url":"https://api.github.com/users/cerebral/events{/privacy}","received_events_url":"https://api.github.com/users/cerebral/received_events","type":"Organization","site_admin":false},"repo":{"id":35326416,"name":"cerebral","full_name":"cerebral/cerebral","owner":{"login":"cerebral","id":15994611,"avatar_url":"https://avatars2.githubusercontent.com/u/15994611?v=3","gravatar_id":"","url":"https://api.github.com/users/cerebral","html_url":"https://github.com/cerebral","followers_url":"https://api.github.com/users/cerebral/followers","following_url":"https://api.github.com/users/cerebral/following{/other_user}","gists_url":"https://api.github.com/users/cerebral/gists{/gist_id}","starred_url":"https://api.github.com/users/cerebral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerebral/subscriptions","organizations_url":"https://api.github.com/users/cerebral/orgs","repos_url":"https://api.github.com/users/cerebral/repos","events_url":"https://api.github.com/users/cerebral/events{/privacy}","received_events_url":"https://api.github.com/users/cerebral/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cerebral/cerebral","description":"A state controller with its own debugger","fork":false,"url":"https://api.github.com/repos/cerebral/cerebral","forks_url":"https://api.github.com/repos/cerebral/cerebral/forks","keys_url":"https://api.github.com/repos/cerebral/cerebral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cerebral/cerebral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cerebral/cerebral/teams","hooks_url":"https://api.github.com/repos/cerebral/cerebral/hooks","issue_events_url":"https://api.github.com/repos/cerebral/cerebral/issues/events{/number}","events_url":"https://api.github.com/repos/cerebral/cerebral/events","assignees_url":"https://api.github.com/repos/cerebral/cerebral/assignees{/user}","branches_url":"https://api.github.com/repos/cerebral/cerebral/branches{/branch}","tags_url":"https://api.github.com/repos/cerebral/cerebral/tags","blobs_url":"https://api.github.com/repos/cerebral/cerebral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cerebral/cerebral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cerebral/cerebral/git/refs{/sha}","trees_url":"https://api.github.com/repos/cerebral/cerebral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cerebral/cerebral/statuses/{sha}","languages_url":"https://api.github.com/repos/cerebral/cerebral/languages","stargazers_url":"https://api.github.com/repos/cerebral/cerebral/stargazers","contributors_url":"https://api.github.com/repos/cerebral/cerebral/contributors","subscribers_url":"https://api.github.com/repos/cerebral/cerebral/subscribers","subscription_url":"https://api.github.com/repos/cerebral/cerebral/subscription","commits_url":"https://api.github.com/repos/cerebral/cerebral/commits{/sha}","git_commits_url":"https://api.github.com/repos/cerebral/cerebral/git/commits{/sha}","comments_url":"https://api.github.com/repos/cerebral/cerebral/comments{/number}","issue_comment_url":"https://api.github.com/repos/cerebral/cerebral/issues/comments{/number}","contents_url":"https://api.github.com/repos/cerebral/cerebral/contents/{+path}","compare_url":"https://api.github.com/repos/cerebral/cerebral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cerebral/cerebral/merges","archive_url":"https://api.github.com/repos/cerebral/cerebral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cerebral/cerebral/downloads","issues_url":"https://api.github.com/repos/cerebral/cerebral/issues{/number}","pulls_url":"https://api.github.com/repos/cerebral/cerebral/pulls{/number}","milestones_url":"https://api.github.com/repos/cerebral/cerebral/milestones{/number}","notifications_url":"https://api.github.com/repos/cerebral/cerebral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cerebral/cerebral/labels{/name}","releases_url":"https://api.github.com/repos/cerebral/cerebral/releases{/id}","deployments_url":"https://api.github.com/repos/cerebral/cerebral/deployments","created_at":"2015-05-09T11:40:05Z","updated_at":"2017-04-12T10:52:00Z","pushed_at":"2017-04-14T08:08:27Z","git_url":"git://github.com/cerebral/cerebral.git","ssh_url":"git@github.com:cerebral/cerebral.git","clone_url":"https://github.com/cerebral/cerebral.git","svn_url":"https://github.com/cerebral/cerebral","homepage":"http://cerebraljs.com","size":8601,"stargazers_count":1005,"watchers_count":1005,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":32,"forks":61,"open_issues":32,"watchers":1005,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/828"},"html":{"href":"https://github.com/cerebral/cerebral/pull/828"},"issue":{"href":"https://api.github.com/repos/cerebral/cerebral/issues/828"},"comments":{"href":"https://api.github.com/repos/cerebral/cerebral/issues/828/comments"},"review_comments":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/828/comments"},"review_comment":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cerebral/cerebral/pulls/828/commits"},"statuses":{"href":"https://api.github.com/repos/cerebral/cerebral/statuses/cbb9b947a714af2d4595b1ec2c0891fe456c1476"}}}}
{"actor":{"display_login":"fmal"}}