{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8787","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8787/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8787/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8787/events","html_url":"https://github.com/babel/babel/pull/8787","id":365199109,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MTg5MjEw","number":8787,"title":"jsx: fix sequence expression at JSXAttributeValue","user":{"login":"macabeus","id":9501115,"node_id":"MDQ6VXNlcjk1MDExMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/9501115?v=4","gravatar_id":"","url":"https://api.github.com/users/macabeus","html_url":"https://github.com/macabeus","followers_url":"https://api.github.com/users/macabeus/followers","following_url":"https://api.github.com/users/macabeus/following{/other_user}","gists_url":"https://api.github.com/users/macabeus/gists{/gist_id}","starred_url":"https://api.github.com/users/macabeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macabeus/subscriptions","organizations_url":"https://api.github.com/users/macabeus/orgs","repos_url":"https://api.github.com/users/macabeus/repos","events_url":"https://api.github.com/users/macabeus/events{/privacy}","received_events_url":"https://api.github.com/users/macabeus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-30T07:01:08Z","updated_at":"2018-10-02T02:30:06Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/babel/babel/pulls/8787","html_url":"https://github.com/babel/babel/pull/8787","diff_url":"https://github.com/babel/babel/pull/8787.diff","patch_url":"https://github.com/babel/babel/pull/8787.patch"},"body":"Following https://github.com/babel/babel/issues/8604, we should not allow codes like these\r\n```js\r\n<div key={console.log('foo'), JSON.stringify(props)} />\r\n<div>{console.log('foo'), JSON.stringify(props)}</div>\r\n```\r\n\r\nBut we should allow codes like\r\n```js\r\n<div key={(console.log('foo'), JSON.stringify(props))} />\r\n<div>{(console.log('foo'), JSON.stringify(props))}</div>\r\n```\r\n\r\nThis PR fixes it, raising an exception with this message: `Sequence of values at JSX must be parenthesized.`\r\nBut, since we currently allow the wrong code, this fix is a breaking change.\r\n\r\n| Q                        | A <!--(Can use an emoji 👍) -->\r\n| ------------------------ | ---\r\n| Fixed Issues?            | Fixes #8604\r\n| Patch: Bug Fix?          | Yes\r\n| Major: Breaking Change?  | Yes\r\n| Minor: New Feature?      |\r\n| Tests Added + Pass?      | Yes\r\n| Documentation PR Link    | <!-- If only readme change, add `[skip ci]` to your commits -->\r\n| Any Dependency Changes?  |\r\n| License                  | MIT"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/426126315","html_url":"https://github.com/babel/babel/pull/8787#issuecomment-426126315","issue_url":"https://api.github.com/repos/babel/babel/issues/8787","id":426126315,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjEyNjMxNQ==","user":{"login":"macabeus","id":9501115,"node_id":"MDQ6VXNlcjk1MDExMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/9501115?v=4","gravatar_id":"","url":"https://api.github.com/users/macabeus","html_url":"https://github.com/macabeus","followers_url":"https://api.github.com/users/macabeus/followers","following_url":"https://api.github.com/users/macabeus/following{/other_user}","gists_url":"https://api.github.com/users/macabeus/gists{/gist_id}","starred_url":"https://api.github.com/users/macabeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macabeus/subscriptions","organizations_url":"https://api.github.com/users/macabeus/orgs","repos_url":"https://api.github.com/users/macabeus/repos","events_url":"https://api.github.com/users/macabeus/events{/privacy}","received_events_url":"https://api.github.com/users/macabeus/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T02:30:06Z","updated_at":"2018-10-02T02:30:06Z","author_association":"NONE","body":"@nicolo-ribaudo I updated the code 😄"}}
{"actor":{"display_login":"macabeus"}}