{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/5277","labels_url":"https://api.github.com/repos/atom/atom/issues/5277/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/5277/comments","events_url":"https://api.github.com/repos/atom/atom/issues/5277/events","html_url":"https://github.com/atom/atom/pull/5277","id":55668210,"number":5277,"title":"Allow packages to specify services in their package.json files","user":{"login":"maxbrunsfeld","id":326587,"avatar_url":"https://avatars.githubusercontent.com/u/326587?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbrunsfeld","html_url":"https://github.com/maxbrunsfeld","followers_url":"https://api.github.com/users/maxbrunsfeld/followers","following_url":"https://api.github.com/users/maxbrunsfeld/following{/other_user}","gists_url":"https://api.github.com/users/maxbrunsfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbrunsfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbrunsfeld/subscriptions","organizations_url":"https://api.github.com/users/maxbrunsfeld/orgs","repos_url":"https://api.github.com/users/maxbrunsfeld/repos","events_url":"https://api.github.com/users/maxbrunsfeld/events{/privacy}","received_events_url":"https://api.github.com/users/maxbrunsfeld/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-01-27T20:10:58Z","updated_at":"2015-02-03T17:23:48Z","closed_at":"2015-02-03T01:07:41Z","pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/5277","html_url":"https://github.com/atom/atom/pull/5277","diff_url":"https://github.com/atom/atom/pull/5277.diff","patch_url":"https://github.com/atom/atom/pull/5277.patch"},"body":"See https://github.com/atom/atom/issues/5165#issuecomment-71685691.\r\n\r\n* [x] When activating a package, register its service-consuming methods\r\n* [x] When activating a package, register its service-providing methods\r\n* [x] When *deactivating* a package, dispose of its service-consuming methods\r\n* [x] When *deactivating* a package, dispose of its service-providing methods\r\n* [x] When activating a package that depends on a service, should we automatically activate all non-disabled packages that provide that service (see https://github.com/atom/atom/issues/5165#issuecomment-71697306)? I think not, for now.\r\n* [x] Should there be an option for making a service dependency `optional` vs `required`? I'm inclined to not add this yet.\r\n* [x] Should we make the `ServiceHub` private? We did.\r\n* [x] Document usage of new `providedServices` and `consumedServices` fields in package.json\r\n\r\n/cc @atom/core\r\n\r\nCloses #5165\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/72693735","html_url":"https://github.com/atom/atom/pull/5277#issuecomment-72693735","issue_url":"https://api.github.com/repos/atom/atom/issues/5277","id":72693735,"user":{"login":"thedaniel","id":1476,"avatar_url":"https://avatars.githubusercontent.com/u/1476?v=3","gravatar_id":"","url":"https://api.github.com/users/thedaniel","html_url":"https://github.com/thedaniel","followers_url":"https://api.github.com/users/thedaniel/followers","following_url":"https://api.github.com/users/thedaniel/following{/other_user}","gists_url":"https://api.github.com/users/thedaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/thedaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedaniel/subscriptions","organizations_url":"https://api.github.com/users/thedaniel/orgs","repos_url":"https://api.github.com/users/thedaniel/repos","events_url":"https://api.github.com/users/thedaniel/events{/privacy}","received_events_url":"https://api.github.com/users/thedaniel/received_events","type":"User","site_admin":true},"created_at":"2015-02-03T17:23:48Z","updated_at":"2015-02-03T17:23:48Z","body":"@joefitzgerald PDI ;)"}}