{"action":"closed","number":5164,"pull_request":{"url":"https://api.github.com/repos/angular/angular-cli/pulls/5164","id":108711780,"html_url":"https://github.com/angular/angular-cli/pull/5164","diff_url":"https://github.com/angular/angular-cli/pull/5164.diff","patch_url":"https://github.com/angular/angular-cli/pull/5164.patch","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/5164","number":5164,"state":"closed","locked":false,"title":"fix(@ngtools/webpack): Fix cache invalidation error when watching","user":{"login":"randombk","id":1633923,"avatar_url":"https://avatars1.githubusercontent.com/u/1633923?v=3","gravatar_id":"","url":"https://api.github.com/users/randombk","html_url":"https://github.com/randombk","followers_url":"https://api.github.com/users/randombk/followers","following_url":"https://api.github.com/users/randombk/following{/other_user}","gists_url":"https://api.github.com/users/randombk/gists{/gist_id}","starred_url":"https://api.github.com/users/randombk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randombk/subscriptions","organizations_url":"https://api.github.com/users/randombk/orgs","repos_url":"https://api.github.com/users/randombk/repos","events_url":"https://api.github.com/users/randombk/events{/privacy}","received_events_url":"https://api.github.com/users/randombk/received_events","type":"User","site_admin":false},"body":"  Update of #4009 by @rynclark to latest version of codebase.\r\n\r\n  TypeScript caches the contents of source files within the program\r\n  to minimize redundant compilation of non-changing code. This cache\r\n  is not invalidated in @ngtools/webpack, causing two issues:\r\n    1. When the watcher is triggered, the old version of the source\r\n       is used. A second save is necessary for changes to take effect.\r\n    2. When a change would result in a compilation error, the initial\r\n       save will pass without errors. Subsequent saves, even saves\r\n       containing fixes to the original error, will continue to fail\r\n       with the original error. This is likely caused by TypeScript\r\n       trying to compare any new programs against an invalid prior\r\n       program state.\r\n\r\n  Possibly also addresses #4566.\r\n\r\nSigned-off-by: RandomBK <david@david-li.com>","created_at":"2017-03-02T08:47:50Z","updated_at":"2017-03-08T13:41:58Z","closed_at":"2017-03-08T13:41:58Z","merged_at":null,"merge_commit_sha":"d32efe19c3ecda953702e76cad8b4d8170996769","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular-cli/pulls/5164/commits","review_comments_url":"https://api.github.com/repos/angular/angular-cli/pulls/5164/comments","review_comment_url":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5164/comments","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/e2d8276265170c95b848e07ddd961202e24b2597","head":{"label":"randombk:master","ref":"master","sha":"e2d8276265170c95b848e07ddd961202e24b2597","user":{"login":"randombk","id":1633923,"avatar_url":"https://avatars1.githubusercontent.com/u/1633923?v=3","gravatar_id":"","url":"https://api.github.com/users/randombk","html_url":"https://github.com/randombk","followers_url":"https://api.github.com/users/randombk/followers","following_url":"https://api.github.com/users/randombk/following{/other_user}","gists_url":"https://api.github.com/users/randombk/gists{/gist_id}","starred_url":"https://api.github.com/users/randombk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randombk/subscriptions","organizations_url":"https://api.github.com/users/randombk/orgs","repos_url":"https://api.github.com/users/randombk/repos","events_url":"https://api.github.com/users/randombk/events{/privacy}","received_events_url":"https://api.github.com/users/randombk/received_events","type":"User","site_admin":false},"repo":{"id":83652876,"name":"angular-cli","full_name":"randombk/angular-cli","owner":{"login":"randombk","id":1633923,"avatar_url":"https://avatars1.githubusercontent.com/u/1633923?v=3","gravatar_id":"","url":"https://api.github.com/users/randombk","html_url":"https://github.com/randombk","followers_url":"https://api.github.com/users/randombk/followers","following_url":"https://api.github.com/users/randombk/following{/other_user}","gists_url":"https://api.github.com/users/randombk/gists{/gist_id}","starred_url":"https://api.github.com/users/randombk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randombk/subscriptions","organizations_url":"https://api.github.com/users/randombk/orgs","repos_url":"https://api.github.com/users/randombk/repos","events_url":"https://api.github.com/users/randombk/events{/privacy}","received_events_url":"https://api.github.com/users/randombk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/randombk/angular-cli","description":"CLI tool for Angular","fork":true,"url":"https://api.github.com/repos/randombk/angular-cli","forks_url":"https://api.github.com/repos/randombk/angular-cli/forks","keys_url":"https://api.github.com/repos/randombk/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/randombk/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/randombk/angular-cli/teams","hooks_url":"https://api.github.com/repos/randombk/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/randombk/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/randombk/angular-cli/events","assignees_url":"https://api.github.com/repos/randombk/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/randombk/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/randombk/angular-cli/tags","blobs_url":"https://api.github.com/repos/randombk/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/randombk/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/randombk/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/randombk/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/randombk/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/randombk/angular-cli/languages","stargazers_url":"https://api.github.com/repos/randombk/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/randombk/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/randombk/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/randombk/angular-cli/subscription","commits_url":"https://api.github.com/repos/randombk/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/randombk/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/randombk/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/randombk/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/randombk/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/randombk/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/randombk/angular-cli/merges","archive_url":"https://api.github.com/repos/randombk/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/randombk/angular-cli/downloads","issues_url":"https://api.github.com/repos/randombk/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/randombk/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/randombk/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/randombk/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/randombk/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/randombk/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/randombk/angular-cli/deployments","created_at":"2017-03-02T08:20:07Z","updated_at":"2017-03-02T08:20:10Z","pushed_at":"2017-03-02T08:43:00Z","git_url":"git://github.com/randombk/angular-cli.git","ssh_url":"git@github.com:randombk/angular-cli.git","clone_url":"https://github.com/randombk/angular-cli.git","svn_url":"https://github.com/randombk/angular-cli","homepage":"","size":3442,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"angular:master","ref":"master","sha":"dbd71b718b5a737c65b9175e1a9b68e6a546940a","user":{"login":"angular","id":139426,"avatar_url":"https://avatars0.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":36891867,"name":"angular-cli","full_name":"angular/angular-cli","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars0.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular-cli","description":"CLI tool for Angular","fork":false,"url":"https://api.github.com/repos/angular/angular-cli","forks_url":"https://api.github.com/repos/angular/angular-cli/forks","keys_url":"https://api.github.com/repos/angular/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular-cli/teams","hooks_url":"https://api.github.com/repos/angular/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/angular/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular-cli/events","assignees_url":"https://api.github.com/repos/angular/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular-cli/tags","blobs_url":"https://api.github.com/repos/angular/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular-cli/languages","stargazers_url":"https://api.github.com/repos/angular/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/angular/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/angular/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/angular/angular-cli/subscription","commits_url":"https://api.github.com/repos/angular/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular-cli/merges","archive_url":"https://api.github.com/repos/angular/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular-cli/downloads","issues_url":"https://api.github.com/repos/angular/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular-cli/deployments","created_at":"2015-06-04T19:49:37Z","updated_at":"2017-03-08T12:41:54Z","pushed_at":"2017-03-08T06:04:05Z","git_url":"git://github.com/angular/angular-cli.git","ssh_url":"git@github.com:angular/angular-cli.git","clone_url":"https://github.com/angular/angular-cli.git","svn_url":"https://github.com/angular/angular-cli","homepage":"","size":3495,"stargazers_count":7946,"watchers_count":7946,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1567,"mirror_url":null,"open_issues_count":512,"forks":1567,"open_issues":512,"watchers":7946,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/5164"},"html":{"href":"https://github.com/angular/angular-cli/pull/5164"},"issue":{"href":"https://api.github.com/repos/angular/angular-cli/issues/5164"},"comments":{"href":"https://api.github.com/repos/angular/angular-cli/issues/5164/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/5164/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/5164/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular-cli/statuses/e2d8276265170c95b848e07ddd961202e24b2597"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"filipesilva"}}