{"action":"closed","number":314,"pull_request":{"url":"https://api.github.com/repos/alangpierce/sucrase/pulls/314","id":219178230,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MTc4MjMw","html_url":"https://github.com/alangpierce/sucrase/pull/314","diff_url":"https://github.com/alangpierce/sucrase/pull/314.diff","patch_url":"https://github.com/alangpierce/sucrase/pull/314.patch","issue_url":"https://api.github.com/repos/alangpierce/sucrase/issues/314","number":314,"state":"closed","locked":false,"title":"Port all babel-parser changes from 2018-04-20 to 2018-05-30","user":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"body":"This is all of the remaining changes from when it was in the packages/babylon\r\ndirectory. A future commit will port changes made since then in the\r\npackages/babel-parser directory.\r\n\r\nChanges in chronological order:\r\n\r\n2afe9404f Use Object Spread Syntax (#7777)\r\n🚫 Not relevant to current Sucrase code.\r\n\r\n7142a79eb Bring `pipelineOperator` flag in line with minimal\r\n✅ Removed potentialArrowAt assignment. Error strictness not relevant to Sucrase.\r\n\r\n71fd37067 Avoid lookahead when parsing pipeline\r\n🚫 Change in error handling code.\r\n\r\n696f84468 Add test for params w/ parens around them\r\n🚫 Test only.\r\n\r\n4f312f573 Add syntax error test for arrow w/ paren'd args\r\n🚫 Test only.\r\n\r\n55ef39eb8 Correct typo [skip ci] (#7834)\r\n🚫 Docs only.\r\n\r\n65ca968f8 Allow static? as identifier in ObjectTypeProperty\r\n✅ Made the question check, though I couldn't find a way for it to fail in\r\nSucrase.\r\n\r\n0353ce9ed Disallow flow type parameter defaults in some cases\r\n✅ Small perf refactor of conditional, everything else was error checking.\r\n\r\nd60853571 Allow parsing of decorators with TypeScript abstract classes (#7850)\r\n🚫 Just removes error which Sucrase had already removed.\r\n\r\n84e76e2d4 TypeScript: Allow non-null and type assertions as lvalues. (Fixes #7638) (#7888)\r\n🚫 None of the code is relevant in Sucrase. One case is error checking, one is\r\nAST transformation.\r\n\r\n70e3454d7 Fix a typo in a babylon flow plugin comment [skip ci] (#7898)\r\n🚫 Comment removed fom Surase.\r\n\r\n21b03c35d Fix lint and yarn.lock\r\n🚫 Not relevant.\r\n\r\n25c3f0d68 Rename decorators&decorators2 plugins to decorators-legacy&decorators. (#7821)\r\n🚫 Plugin names were removed in Sucrase.\r\n\r\n02c4a2860 Fix typescript decorator test (#7904)\r\n🚫 Plugin names were removed in Sucrase.\r\n\r\nf03adbadf (tag: v7.0.0-beta.47) v7.0.0-beta.47\r\n🚫 Release only.\r\n\r\ne45d5c3b6 Add an option to Babylon to have decorators before export (#7869)\r\n🚫 Plugins aren't relevant to Sucrase. `@` was already allowed before exports,\r\nthe commit just made it more strict/precise, no need to port the new errors.\r\n\r\nb396cdcbe Internal slot properties (#7947)\r\n✅ Add a port of the internal slot parsing function, with test.\r\n\r\naf7ab7148 Allow flow internal slot properties to be optional (#7959)\r\n✅ Ported the fix and added a test.\r\n\r\na40f54f84 Add support for explicit type arguments in new and call expressions (#7934)\r\n✅ Added tests and functions for the new syntax.\r\n\r\n6baa36cdc Support Flow's inline interface syntax (#7973)\r\n✅ Ported the new parsing method over, with a test.\r\n\r\n70eb206c0 TypeScript: Fix TSInferType .typeParameter type. (#7967)\r\n🚫 Change only affects AST.\r\n\r\ndaf0ca868 Rename \"babylon\" to \"@babel/parser\" (#7937) 🎉\r\n🚫 Change not relevant for Sucrase.\r\n\r\nc0013264b Add tests for interpreter directive with retainLines and sourcemaps.\r\n🚫 Test only.\r\n\r\n2058e0686 Add support for an InterpreterDirective AST node.\r\n🚫 Test only.\r\n\r\nc992f5b61 Remove duplicated test (in the old babylon folder)\r\n🚫 Test only.\r\n\r\nf0283572a Support Flow's proto modifier syntax for declared classes (#7978)\r\n🚫 Test only.\r\n\r\nd83d141e0 Move tests from babylon/ to babel-parserr/\r\n🚫 Not relevant for Scurase.","created_at":"2018-09-30T01:29:13Z","updated_at":"2018-09-30T01:54:10Z","closed_at":"2018-09-30T01:54:10Z","merged_at":"2018-09-30T01:54:10Z","merge_commit_sha":"5373e6c2f2c4bde8c8bde0db361d0748fd96dcec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alangpierce/sucrase/pulls/314/commits","review_comments_url":"https://api.github.com/repos/alangpierce/sucrase/pulls/314/comments","review_comment_url":"https://api.github.com/repos/alangpierce/sucrase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alangpierce/sucrase/issues/314/comments","statuses_url":"https://api.github.com/repos/alangpierce/sucrase/statuses/cb1a5592a5c76dce586029fbe3e73f0aedb48195","head":{"label":"alangpierce:port-remaining-babylon-changes","ref":"port-remaining-babylon-changes","sha":"cb1a5592a5c76dce586029fbe3e73f0aedb48195","user":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"repo":{"id":105677687,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU2Nzc2ODc=","name":"sucrase","full_name":"alangpierce/sucrase","private":false,"owner":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alangpierce/sucrase","description":"Super-fast alternative to Babel for when you can target modern JS runtimes","fork":false,"url":"https://api.github.com/repos/alangpierce/sucrase","forks_url":"https://api.github.com/repos/alangpierce/sucrase/forks","keys_url":"https://api.github.com/repos/alangpierce/sucrase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alangpierce/sucrase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alangpierce/sucrase/teams","hooks_url":"https://api.github.com/repos/alangpierce/sucrase/hooks","issue_events_url":"https://api.github.com/repos/alangpierce/sucrase/issues/events{/number}","events_url":"https://api.github.com/repos/alangpierce/sucrase/events","assignees_url":"https://api.github.com/repos/alangpierce/sucrase/assignees{/user}","branches_url":"https://api.github.com/repos/alangpierce/sucrase/branches{/branch}","tags_url":"https://api.github.com/repos/alangpierce/sucrase/tags","blobs_url":"https://api.github.com/repos/alangpierce/sucrase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alangpierce/sucrase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alangpierce/sucrase/git/refs{/sha}","trees_url":"https://api.github.com/repos/alangpierce/sucrase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alangpierce/sucrase/statuses/{sha}","languages_url":"https://api.github.com/repos/alangpierce/sucrase/languages","stargazers_url":"https://api.github.com/repos/alangpierce/sucrase/stargazers","contributors_url":"https://api.github.com/repos/alangpierce/sucrase/contributors","subscribers_url":"https://api.github.com/repos/alangpierce/sucrase/subscribers","subscription_url":"https://api.github.com/repos/alangpierce/sucrase/subscription","commits_url":"https://api.github.com/repos/alangpierce/sucrase/commits{/sha}","git_commits_url":"https://api.github.com/repos/alangpierce/sucrase/git/commits{/sha}","comments_url":"https://api.github.com/repos/alangpierce/sucrase/comments{/number}","issue_comment_url":"https://api.github.com/repos/alangpierce/sucrase/issues/comments{/number}","contents_url":"https://api.github.com/repos/alangpierce/sucrase/contents/{+path}","compare_url":"https://api.github.com/repos/alangpierce/sucrase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alangpierce/sucrase/merges","archive_url":"https://api.github.com/repos/alangpierce/sucrase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alangpierce/sucrase/downloads","issues_url":"https://api.github.com/repos/alangpierce/sucrase/issues{/number}","pulls_url":"https://api.github.com/repos/alangpierce/sucrase/pulls{/number}","milestones_url":"https://api.github.com/repos/alangpierce/sucrase/milestones{/number}","notifications_url":"https://api.github.com/repos/alangpierce/sucrase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alangpierce/sucrase/labels{/name}","releases_url":"https://api.github.com/repos/alangpierce/sucrase/releases{/id}","deployments_url":"https://api.github.com/repos/alangpierce/sucrase/deployments","created_at":"2017-10-03T16:54:00Z","updated_at":"2018-09-29T21:41:10Z","pushed_at":"2018-09-30T01:54:10Z","git_url":"git://github.com/alangpierce/sucrase.git","ssh_url":"git@github.com:alangpierce/sucrase.git","clone_url":"https://github.com/alangpierce/sucrase.git","svn_url":"https://github.com/alangpierce/sucrase","homepage":"https://sucrase.io","size":8372,"stargazers_count":944,"watchers_count":944,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":22,"open_issues":15,"watchers":944,"default_branch":"master"}},"base":{"label":"alangpierce:master","ref":"master","sha":"d500b1b4bbf9bb9bb8d2926fc59cb90be1f24921","user":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"repo":{"id":105677687,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU2Nzc2ODc=","name":"sucrase","full_name":"alangpierce/sucrase","private":false,"owner":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alangpierce/sucrase","description":"Super-fast alternative to Babel for when you can target modern JS runtimes","fork":false,"url":"https://api.github.com/repos/alangpierce/sucrase","forks_url":"https://api.github.com/repos/alangpierce/sucrase/forks","keys_url":"https://api.github.com/repos/alangpierce/sucrase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alangpierce/sucrase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alangpierce/sucrase/teams","hooks_url":"https://api.github.com/repos/alangpierce/sucrase/hooks","issue_events_url":"https://api.github.com/repos/alangpierce/sucrase/issues/events{/number}","events_url":"https://api.github.com/repos/alangpierce/sucrase/events","assignees_url":"https://api.github.com/repos/alangpierce/sucrase/assignees{/user}","branches_url":"https://api.github.com/repos/alangpierce/sucrase/branches{/branch}","tags_url":"https://api.github.com/repos/alangpierce/sucrase/tags","blobs_url":"https://api.github.com/repos/alangpierce/sucrase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alangpierce/sucrase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alangpierce/sucrase/git/refs{/sha}","trees_url":"https://api.github.com/repos/alangpierce/sucrase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alangpierce/sucrase/statuses/{sha}","languages_url":"https://api.github.com/repos/alangpierce/sucrase/languages","stargazers_url":"https://api.github.com/repos/alangpierce/sucrase/stargazers","contributors_url":"https://api.github.com/repos/alangpierce/sucrase/contributors","subscribers_url":"https://api.github.com/repos/alangpierce/sucrase/subscribers","subscription_url":"https://api.github.com/repos/alangpierce/sucrase/subscription","commits_url":"https://api.github.com/repos/alangpierce/sucrase/commits{/sha}","git_commits_url":"https://api.github.com/repos/alangpierce/sucrase/git/commits{/sha}","comments_url":"https://api.github.com/repos/alangpierce/sucrase/comments{/number}","issue_comment_url":"https://api.github.com/repos/alangpierce/sucrase/issues/comments{/number}","contents_url":"https://api.github.com/repos/alangpierce/sucrase/contents/{+path}","compare_url":"https://api.github.com/repos/alangpierce/sucrase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alangpierce/sucrase/merges","archive_url":"https://api.github.com/repos/alangpierce/sucrase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alangpierce/sucrase/downloads","issues_url":"https://api.github.com/repos/alangpierce/sucrase/issues{/number}","pulls_url":"https://api.github.com/repos/alangpierce/sucrase/pulls{/number}","milestones_url":"https://api.github.com/repos/alangpierce/sucrase/milestones{/number}","notifications_url":"https://api.github.com/repos/alangpierce/sucrase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alangpierce/sucrase/labels{/name}","releases_url":"https://api.github.com/repos/alangpierce/sucrase/releases{/id}","deployments_url":"https://api.github.com/repos/alangpierce/sucrase/deployments","created_at":"2017-10-03T16:54:00Z","updated_at":"2018-09-29T21:41:10Z","pushed_at":"2018-09-30T01:54:10Z","git_url":"git://github.com/alangpierce/sucrase.git","ssh_url":"git@github.com:alangpierce/sucrase.git","clone_url":"https://github.com/alangpierce/sucrase.git","svn_url":"https://github.com/alangpierce/sucrase","homepage":"https://sucrase.io","size":8372,"stargazers_count":944,"watchers_count":944,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":22,"open_issues":15,"watchers":944,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alangpierce/sucrase/pulls/314"},"html":{"href":"https://github.com/alangpierce/sucrase/pull/314"},"issue":{"href":"https://api.github.com/repos/alangpierce/sucrase/issues/314"},"comments":{"href":"https://api.github.com/repos/alangpierce/sucrase/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/alangpierce/sucrase/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/alangpierce/sucrase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alangpierce/sucrase/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/alangpierce/sucrase/statuses/cb1a5592a5c76dce586029fbe3e73f0aedb48195"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"alangpierce","id":211605,"node_id":"MDQ6VXNlcjIxMTYwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211605?v=4","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":142,"deletions":10,"changed_files":3}}
{"actor":{"display_login":"alangpierce"}}