{"action":"closed","number":1276,"pull_request":{"url":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276","id":90091880,"html_url":"https://github.com/yarnpkg/yarn/pull/1276","diff_url":"https://github.com/yarnpkg/yarn/pull/1276.diff","patch_url":"https://github.com/yarnpkg/yarn/pull/1276.patch","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1276","number":1276,"state":"closed","locked":false,"title":"Fix `yarn outdated` for scoped packages (#620)","user":{"login":"jsynowiec","id":1029142,"avatar_url":"https://avatars.githubusercontent.com/u/1029142?v=3","gravatar_id":"","url":"https://api.github.com/users/jsynowiec","html_url":"https://github.com/jsynowiec","followers_url":"https://api.github.com/users/jsynowiec/followers","following_url":"https://api.github.com/users/jsynowiec/following{/other_user}","gists_url":"https://api.github.com/users/jsynowiec/gists{/gist_id}","starred_url":"https://api.github.com/users/jsynowiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsynowiec/subscriptions","organizations_url":"https://api.github.com/users/jsynowiec/orgs","repos_url":"https://api.github.com/users/jsynowiec/repos","events_url":"https://api.github.com/users/jsynowiec/events{/privacy}","received_events_url":"https://api.github.com/users/jsynowiec/received_events","type":"User","site_admin":false},"body":"**Summary**\r\n\r\n`yarn outdated` command throws an error due to NPM registry returning 404 HTTP error code for scoped packages. See #620, #709, #651, #983, #1126, #1181\r\n\r\nPackage name must be escaped when querying NPM registry.\r\n\r\n#1071 fixes this but by manually replacing `/` with escape sequence. A better solution is to use the `escapeName` static method directly in the `NpmRegistry` class.\r\n\r\n**Test plan**\r\n1. Create an empty project, add package.json file,\r\n2. Run `yarn add @types/node@6.0.40`\r\n3. Run `yarn outdated`\r\n\r\n<img width=\"288\" alt=\"screenshot 2016-10-19 23 07 54\" src=\"https://cloud.githubusercontent.com/assets/1029142/19537762/78d51658-9651-11e6-93e0-41a0d43a6be3.png\">","created_at":"2016-10-19T21:13:58Z","updated_at":"2016-10-25T07:01:52Z","closed_at":"2016-10-25T07:01:51Z","merged_at":"2016-10-25T07:01:51Z","merge_commit_sha":"3a2585976e9e39c2955a59d5ddb29f2d2e56bcd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276/commits","review_comments_url":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276/comments","review_comment_url":"https://api.github.com/repos/yarnpkg/yarn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1276/comments","statuses_url":"https://api.github.com/repos/yarnpkg/yarn/statuses/ec4931f14c46965cdb34b37eff9842e26af6b681","head":{"label":"jsynowiec:fix/outdated-cmd-for-scoped-packages","ref":"fix/outdated-cmd-for-scoped-packages","sha":"ec4931f14c46965cdb34b37eff9842e26af6b681","user":{"login":"jsynowiec","id":1029142,"avatar_url":"https://avatars.githubusercontent.com/u/1029142?v=3","gravatar_id":"","url":"https://api.github.com/users/jsynowiec","html_url":"https://github.com/jsynowiec","followers_url":"https://api.github.com/users/jsynowiec/followers","following_url":"https://api.github.com/users/jsynowiec/following{/other_user}","gists_url":"https://api.github.com/users/jsynowiec/gists{/gist_id}","starred_url":"https://api.github.com/users/jsynowiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsynowiec/subscriptions","organizations_url":"https://api.github.com/users/jsynowiec/orgs","repos_url":"https://api.github.com/users/jsynowiec/repos","events_url":"https://api.github.com/users/jsynowiec/events{/privacy}","received_events_url":"https://api.github.com/users/jsynowiec/received_events","type":"User","site_admin":false},"repo":{"id":71399386,"name":"yarn","full_name":"jsynowiec/yarn","owner":{"login":"jsynowiec","id":1029142,"avatar_url":"https://avatars.githubusercontent.com/u/1029142?v=3","gravatar_id":"","url":"https://api.github.com/users/jsynowiec","html_url":"https://github.com/jsynowiec","followers_url":"https://api.github.com/users/jsynowiec/followers","following_url":"https://api.github.com/users/jsynowiec/following{/other_user}","gists_url":"https://api.github.com/users/jsynowiec/gists{/gist_id}","starred_url":"https://api.github.com/users/jsynowiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsynowiec/subscriptions","organizations_url":"https://api.github.com/users/jsynowiec/orgs","repos_url":"https://api.github.com/users/jsynowiec/repos","events_url":"https://api.github.com/users/jsynowiec/events{/privacy}","received_events_url":"https://api.github.com/users/jsynowiec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsynowiec/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":true,"url":"https://api.github.com/repos/jsynowiec/yarn","forks_url":"https://api.github.com/repos/jsynowiec/yarn/forks","keys_url":"https://api.github.com/repos/jsynowiec/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsynowiec/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsynowiec/yarn/teams","hooks_url":"https://api.github.com/repos/jsynowiec/yarn/hooks","issue_events_url":"https://api.github.com/repos/jsynowiec/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/jsynowiec/yarn/events","assignees_url":"https://api.github.com/repos/jsynowiec/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/jsynowiec/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/jsynowiec/yarn/tags","blobs_url":"https://api.github.com/repos/jsynowiec/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsynowiec/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsynowiec/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsynowiec/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsynowiec/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/jsynowiec/yarn/languages","stargazers_url":"https://api.github.com/repos/jsynowiec/yarn/stargazers","contributors_url":"https://api.github.com/repos/jsynowiec/yarn/contributors","subscribers_url":"https://api.github.com/repos/jsynowiec/yarn/subscribers","subscription_url":"https://api.github.com/repos/jsynowiec/yarn/subscription","commits_url":"https://api.github.com/repos/jsynowiec/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsynowiec/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsynowiec/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsynowiec/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsynowiec/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/jsynowiec/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsynowiec/yarn/merges","archive_url":"https://api.github.com/repos/jsynowiec/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsynowiec/yarn/downloads","issues_url":"https://api.github.com/repos/jsynowiec/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/jsynowiec/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/jsynowiec/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/jsynowiec/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsynowiec/yarn/labels{/name}","releases_url":"https://api.github.com/repos/jsynowiec/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/jsynowiec/yarn/deployments","created_at":"2016-10-19T21:08:18Z","updated_at":"2016-10-19T21:08:27Z","pushed_at":"2016-10-24T03:49:15Z","git_url":"git://github.com/jsynowiec/yarn.git","ssh_url":"git@github.com:jsynowiec/yarn.git","clone_url":"https://github.com/jsynowiec/yarn.git","svn_url":"https://github.com/jsynowiec/yarn","homepage":"https://yarnpkg.com","size":41362,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"yarnpkg:master","ref":"master","sha":"b17082da073d46dbdbc46be1b425c65073bff334","user":{"login":"yarnpkg","id":22247014,"avatar_url":"https://avatars.githubusercontent.com/u/22247014?v=3","gravatar_id":"","url":"https://api.github.com/users/yarnpkg","html_url":"https://github.com/yarnpkg","followers_url":"https://api.github.com/users/yarnpkg/followers","following_url":"https://api.github.com/users/yarnpkg/following{/other_user}","gists_url":"https://api.github.com/users/yarnpkg/gists{/gist_id}","starred_url":"https://api.github.com/users/yarnpkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarnpkg/subscriptions","organizations_url":"https://api.github.com/users/yarnpkg/orgs","repos_url":"https://api.github.com/users/yarnpkg/repos","events_url":"https://api.github.com/users/yarnpkg/events{/privacy}","received_events_url":"https://api.github.com/users/yarnpkg/received_events","type":"Organization","site_admin":false},"repo":{"id":49970642,"name":"yarn","full_name":"yarnpkg/yarn","owner":{"login":"yarnpkg","id":22247014,"avatar_url":"https://avatars.githubusercontent.com/u/22247014?v=3","gravatar_id":"","url":"https://api.github.com/users/yarnpkg","html_url":"https://github.com/yarnpkg","followers_url":"https://api.github.com/users/yarnpkg/followers","following_url":"https://api.github.com/users/yarnpkg/following{/other_user}","gists_url":"https://api.github.com/users/yarnpkg/gists{/gist_id}","starred_url":"https://api.github.com/users/yarnpkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarnpkg/subscriptions","organizations_url":"https://api.github.com/users/yarnpkg/orgs","repos_url":"https://api.github.com/users/yarnpkg/repos","events_url":"https://api.github.com/users/yarnpkg/events{/privacy}","received_events_url":"https://api.github.com/users/yarnpkg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yarnpkg/yarn","description":"📦🐈 Fast, reliable, and secure dependency management.","fork":false,"url":"https://api.github.com/repos/yarnpkg/yarn","forks_url":"https://api.github.com/repos/yarnpkg/yarn/forks","keys_url":"https://api.github.com/repos/yarnpkg/yarn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yarnpkg/yarn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yarnpkg/yarn/teams","hooks_url":"https://api.github.com/repos/yarnpkg/yarn/hooks","issue_events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/events{/number}","events_url":"https://api.github.com/repos/yarnpkg/yarn/events","assignees_url":"https://api.github.com/repos/yarnpkg/yarn/assignees{/user}","branches_url":"https://api.github.com/repos/yarnpkg/yarn/branches{/branch}","tags_url":"https://api.github.com/repos/yarnpkg/yarn/tags","blobs_url":"https://api.github.com/repos/yarnpkg/yarn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yarnpkg/yarn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yarnpkg/yarn/git/refs{/sha}","trees_url":"https://api.github.com/repos/yarnpkg/yarn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yarnpkg/yarn/statuses/{sha}","languages_url":"https://api.github.com/repos/yarnpkg/yarn/languages","stargazers_url":"https://api.github.com/repos/yarnpkg/yarn/stargazers","contributors_url":"https://api.github.com/repos/yarnpkg/yarn/contributors","subscribers_url":"https://api.github.com/repos/yarnpkg/yarn/subscribers","subscription_url":"https://api.github.com/repos/yarnpkg/yarn/subscription","commits_url":"https://api.github.com/repos/yarnpkg/yarn/commits{/sha}","git_commits_url":"https://api.github.com/repos/yarnpkg/yarn/git/commits{/sha}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/comments{/number}","issue_comment_url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments{/number}","contents_url":"https://api.github.com/repos/yarnpkg/yarn/contents/{+path}","compare_url":"https://api.github.com/repos/yarnpkg/yarn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yarnpkg/yarn/merges","archive_url":"https://api.github.com/repos/yarnpkg/yarn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yarnpkg/yarn/downloads","issues_url":"https://api.github.com/repos/yarnpkg/yarn/issues{/number}","pulls_url":"https://api.github.com/repos/yarnpkg/yarn/pulls{/number}","milestones_url":"https://api.github.com/repos/yarnpkg/yarn/milestones{/number}","notifications_url":"https://api.github.com/repos/yarnpkg/yarn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yarnpkg/yarn/labels{/name}","releases_url":"https://api.github.com/repos/yarnpkg/yarn/releases{/id}","deployments_url":"https://api.github.com/repos/yarnpkg/yarn/deployments","created_at":"2016-01-19T17:39:16Z","updated_at":"2016-10-25T07:01:43Z","pushed_at":"2016-10-25T07:01:51Z","git_url":"git://github.com/yarnpkg/yarn.git","ssh_url":"git@github.com:yarnpkg/yarn.git","clone_url":"https://github.com/yarnpkg/yarn.git","svn_url":"https://github.com/yarnpkg/yarn","homepage":"https://yarnpkg.com","size":51601,"stargazers_count":17106,"watchers_count":17106,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":508,"mirror_url":null,"open_issues_count":394,"forks":508,"open_issues":394,"watchers":17106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276"},"html":{"href":"https://github.com/yarnpkg/yarn/pull/1276"},"issue":{"href":"https://api.github.com/repos/yarnpkg/yarn/issues/1276"},"comments":{"href":"https://api.github.com/repos/yarnpkg/yarn/issues/1276/comments"},"review_comments":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276/comments"},"review_comment":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yarnpkg/yarn/pulls/1276/commits"},"statuses":{"href":"https://api.github.com/repos/yarnpkg/yarn/statuses/ec4931f14c46965cdb34b37eff9842e26af6b681"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kittens","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/kittens","html_url":"https://github.com/kittens","followers_url":"https://api.github.com/users/kittens/followers","following_url":"https://api.github.com/users/kittens/following{/other_user}","gists_url":"https://api.github.com/users/kittens/gists{/gist_id}","starred_url":"https://api.github.com/users/kittens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kittens/subscriptions","organizations_url":"https://api.github.com/users/kittens/orgs","repos_url":"https://api.github.com/users/kittens/repos","events_url":"https://api.github.com/users/kittens/events{/privacy}","received_events_url":"https://api.github.com/users/kittens/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":3,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"kittens"}}