{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments/239516997","pull_request_review_id":182312656,"id":239516997,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTUxNjk5Nw==","diff_hunk":"@@ -301,7 +302,7 @@ export default class Compress extends Component<Props, State> {\n       // The image only needs updated if the encoder/preprocessor settings have changed, or the\n       // source has changed.\n       if (sourceDataChanged || encoderChanged || preprocessorChanged) {\n-        this.updateImage(i, {\n+        this.compressionJobs[i] = this.updateImage(i, {","path":"src/components/compress/index.tsx","position":13,"original_position":13,"commit_id":"a61b066aeb30bd24a3899fa3d1ab8f9c0a87ea6a","original_commit_id":"a61b066aeb30bd24a3899fa3d1ab8f9c0a87ea6a","user":{"login":"jakearchibald","id":93594,"node_id":"MDQ6VXNlcjkzNTk0","avatar_url":"https://avatars1.githubusercontent.com/u/93594?v=4","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"body":"I'm not sure these reflect \"abort\" correctly. I'm not sure what the right thing to do there is. Can comlink handle DOMException?","created_at":"2018-12-06T16:20:27Z","updated_at":"2018-12-06T16:21:19Z","html_url":"https://github.com/GoogleChromeLabs/squoosh/pull/353#discussion_r239516997","pull_request_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments/239516997"},"html":{"href":"https://github.com/GoogleChromeLabs/squoosh/pull/353#discussion_r239516997"},"pull_request":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353","id":234575339,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NTc1MzM5","html_url":"https://github.com/GoogleChromeLabs/squoosh/pull/353","diff_url":"https://github.com/GoogleChromeLabs/squoosh/pull/353.diff","patch_url":"https://github.com/GoogleChromeLabs/squoosh/pull/353.patch","issue_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/353","number":353,"state":"open","locked":false,"title":"WIP: Client-side API","user":{"login":"surma","id":234957,"node_id":"MDQ6VXNlcjIzNDk1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/234957?v=4","gravatar_id":"","url":"https://api.github.com/users/surma","html_url":"https://github.com/surma","followers_url":"https://api.github.com/users/surma/followers","following_url":"https://api.github.com/users/surma/following{/other_user}","gists_url":"https://api.github.com/users/surma/gists{/gist_id}","starred_url":"https://api.github.com/users/surma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surma/subscriptions","organizations_url":"https://api.github.com/users/surma/orgs","repos_url":"https://api.github.com/users/surma/repos","events_url":"https://api.github.com/users/surma/events{/privacy}","received_events_url":"https://api.github.com/users/surma/received_events","type":"User","site_admin":false},"body":"**DO NOT MERGE (yet)**\r\n\r\nHere’s the current, rather hacky implementation of the client-side API so we can start discussing the implementation approach.\r\n\r\nThe basic approach is to define an API and expose it to `window.parent` via Comlink, this way squoosh can be embedded using `<iframe>` and the API methods can just be invoked.\r\n\r\nHere’s [the code](https://gist.github.com/surma/d0fdb1ff0c31e279307fcb037ce79ed4) for an example batch processing app.","created_at":"2018-11-29T10:04:16Z","updated_at":"2018-12-06T16:21:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc686934b693109ad3f3b78287fbfc414b67f2bb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"developit","id":105127,"node_id":"MDQ6VXNlcjEwNTEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/105127?v=4","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1144279263,"node_id":"MDU6TGFiZWwxMTQ0Mjc5MjYz","url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"ff0000","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353/commits","review_comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353/comments","review_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/353/comments","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/a61b066aeb30bd24a3899fa3d1ab8f9c0a87ea6a","head":{"label":"GoogleChromeLabs:api","ref":"api","sha":"a61b066aeb30bd24a3899fa3d1ab8f9c0a87ea6a","user":{"login":"GoogleChromeLabs","id":31970254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxOTcwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":124303364,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQzMDMzNjQ=","name":"squoosh","full_name":"GoogleChromeLabs/squoosh","private":false,"owner":{"login":"GoogleChromeLabs","id":31970254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxOTcwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleChromeLabs/squoosh","description":"Make images smaller using best-in-class codecs, right in the browser.","fork":false,"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh","forks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/forks","keys_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/teams","hooks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/hooks","issue_events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/events","assignees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/tags","blobs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/languages","stargazers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/stargazers","contributors_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contributors","subscribers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscribers","subscription_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscription","commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/merges","archive_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/downloads","issues_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/deployments","created_at":"2018-03-07T22:42:03Z","updated_at":"2018-12-06T15:59:01Z","pushed_at":"2018-12-06T13:44:59Z","git_url":"git://github.com/GoogleChromeLabs/squoosh.git","ssh_url":"git@github.com:GoogleChromeLabs/squoosh.git","clone_url":"https://github.com/GoogleChromeLabs/squoosh.git","svn_url":"https://github.com/GoogleChromeLabs/squoosh","homepage":"https://squoosh.app","size":38393,"stargazers_count":5010,"watchers_count":5010,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":236,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":236,"open_issues":67,"watchers":5010,"default_branch":"master"}},"base":{"label":"GoogleChromeLabs:master","ref":"master","sha":"dc809dde309cc84099c0e52275fe83be1c3524c1","user":{"login":"GoogleChromeLabs","id":31970254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxOTcwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":124303364,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQzMDMzNjQ=","name":"squoosh","full_name":"GoogleChromeLabs/squoosh","private":false,"owner":{"login":"GoogleChromeLabs","id":31970254,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxOTcwMjU0","avatar_url":"https://avatars1.githubusercontent.com/u/31970254?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleChromeLabs","html_url":"https://github.com/GoogleChromeLabs","followers_url":"https://api.github.com/users/GoogleChromeLabs/followers","following_url":"https://api.github.com/users/GoogleChromeLabs/following{/other_user}","gists_url":"https://api.github.com/users/GoogleChromeLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleChromeLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleChromeLabs/subscriptions","organizations_url":"https://api.github.com/users/GoogleChromeLabs/orgs","repos_url":"https://api.github.com/users/GoogleChromeLabs/repos","events_url":"https://api.github.com/users/GoogleChromeLabs/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleChromeLabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GoogleChromeLabs/squoosh","description":"Make images smaller using best-in-class codecs, right in the browser.","fork":false,"url":"https://api.github.com/repos/GoogleChromeLabs/squoosh","forks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/forks","keys_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/teams","hooks_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/hooks","issue_events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/events","assignees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/tags","blobs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/languages","stargazers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/stargazers","contributors_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contributors","subscribers_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscribers","subscription_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/subscription","commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/merges","archive_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/downloads","issues_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/labels{/name}","releases_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleChromeLabs/squoosh/deployments","created_at":"2018-03-07T22:42:03Z","updated_at":"2018-12-06T15:59:01Z","pushed_at":"2018-12-06T13:44:59Z","git_url":"git://github.com/GoogleChromeLabs/squoosh.git","ssh_url":"git@github.com:GoogleChromeLabs/squoosh.git","clone_url":"https://github.com/GoogleChromeLabs/squoosh.git","svn_url":"https://github.com/GoogleChromeLabs/squoosh","homepage":"https://squoosh.app","size":38393,"stargazers_count":5010,"watchers_count":5010,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":236,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":236,"open_issues":67,"watchers":5010,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353"},"html":{"href":"https://github.com/GoogleChromeLabs/squoosh/pull/353"},"issue":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/353"},"comments":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/issues/353/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/pulls/353/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleChromeLabs/squoosh/statuses/a61b066aeb30bd24a3899fa3d1ab8f9c0a87ea6a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jakearchibald"}}