{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7","id":60446761,"html_url":"https://github.com/sandeepmistry/node-powermate/pull/7","diff_url":"https://github.com/sandeepmistry/node-powermate/pull/7.diff","patch_url":"https://github.com/sandeepmistry/node-powermate/pull/7.patch","issue_url":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/7","number":7,"state":"closed","locked":false,"title":"Update node-hid dependency to support Node 4.x","user":{"login":"Aldaviva","id":1417794,"avatar_url":"https://avatars.githubusercontent.com/u/1417794?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaviva","html_url":"https://github.com/Aldaviva","followers_url":"https://api.github.com/users/Aldaviva/followers","following_url":"https://api.github.com/users/Aldaviva/following{/other_user}","gists_url":"https://api.github.com/users/Aldaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaviva/subscriptions","organizations_url":"https://api.github.com/users/Aldaviva/orgs","repos_url":"https://api.github.com/users/Aldaviva/repos","events_url":"https://api.github.com/users/Aldaviva/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaviva/received_events","type":"User","site_admin":false},"body":"Hi Sandeep,\r\n\r\nI've been using `node-powermate` in a module of mine and recently someone tried to build it using Node 4.3.1. The installation failed because `node-hid@0.2.3` specifies a bundleDependency on the nonexistent [`hidapi` ](https://www.npmjs.com/package/hidapi) package. I assume older versions of Node like 0.8.x and 0.10.x ignored bundleDependencies, but newer Node versions like 4.3.1 and possibly 0.12.x fail with a 404:\r\n\r\n```\r\n$ npm install\r\n \r\n> node-hid@0.2.3 preinstall /home/user/mymodule/node_modules/node-powermate/node_modules/node-hid\r\n> sh get-hidapi.sh\r\nCloning into 'hidapi'...\r\nremote: Counting objects: 1965, done.\r\nremote: Total 1965 (delta 0), reused 0 (delta 0), pack-reused 1965\r\nReceiving objects: 100% (1965/1965), 2.80 MiB | 802 KiB/s, done.\r\nResolving deltas: 100% (1087/1087), done.\r\nnpm ERR! Linux 3.2.0-29-generic\r\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! node v4.3.1\r\nnpm ERR! npm  v2.14.12\r\nnpm ERR! code E404\r\nnpm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/hidapi\r\nnpm ERR! 404 \r\nnpm ERR! 404 'hidapi' is not in the npm registry.\r\nnpm ERR! 404 You should bug the author to publish it (or use the name yourself!)\r\nnpm ERR! 404 It was specified as a dependency of 'node-hid'\r\nnpm ERR! 404 \r\nnpm ERR! 404 Note that you can also install from a\r\nnpm ERR! 404 tarball, folder, http url, or git url.\r\n```\r\n\r\nThis issue has been fixed in [`node-hid@0.4.0`](https://github.com/node-hid/node-hid/commit/bd2a7fbaa39515cb964c77203f882fe8fc2dc0ca#diff-b9cfc7f2cdf78a7f4b91a753d10865a2).\r\n\r\nThis pull request updates the version of `node-hid` that `node-powermate` depends on from 0.2.x to 0.5.x. I have tested this by successfully building on a Linux machine with Node 4.3.1 and a Raspberry Pi with Node 0.10.17. I verified that the new version of `node-hid` works with the Powermate connected to the Raspberry Pi.","created_at":"2016-02-24T02:33:55Z","updated_at":"2016-02-26T00:50:34Z","closed_at":"2016-02-26T00:50:34Z","merged_at":"2016-02-26T00:50:34Z","merge_commit_sha":"bb8370606b2d9d11fabca996bed247419b75feec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7/commits","review_comments_url":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7/comments","review_comment_url":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/7/comments","statuses_url":"https://api.github.com/repos/sandeepmistry/node-powermate/statuses/8b92f2777598a097841eb689035b8db6e6ad02f5","head":{"label":"Aldaviva:master","ref":"master","sha":"8b92f2777598a097841eb689035b8db6e6ad02f5","user":{"login":"Aldaviva","id":1417794,"avatar_url":"https://avatars.githubusercontent.com/u/1417794?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaviva","html_url":"https://github.com/Aldaviva","followers_url":"https://api.github.com/users/Aldaviva/followers","following_url":"https://api.github.com/users/Aldaviva/following{/other_user}","gists_url":"https://api.github.com/users/Aldaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaviva/subscriptions","organizations_url":"https://api.github.com/users/Aldaviva/orgs","repos_url":"https://api.github.com/users/Aldaviva/repos","events_url":"https://api.github.com/users/Aldaviva/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaviva/received_events","type":"User","site_admin":false},"repo":{"id":52407137,"name":"node-powermate","full_name":"Aldaviva/node-powermate","owner":{"login":"Aldaviva","id":1417794,"avatar_url":"https://avatars.githubusercontent.com/u/1417794?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaviva","html_url":"https://github.com/Aldaviva","followers_url":"https://api.github.com/users/Aldaviva/followers","following_url":"https://api.github.com/users/Aldaviva/following{/other_user}","gists_url":"https://api.github.com/users/Aldaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaviva/subscriptions","organizations_url":"https://api.github.com/users/Aldaviva/orgs","repos_url":"https://api.github.com/users/Aldaviva/repos","events_url":"https://api.github.com/users/Aldaviva/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaviva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aldaviva/node-powermate","description":"A node.js library for the Griffin PowerMate","fork":true,"url":"https://api.github.com/repos/Aldaviva/node-powermate","forks_url":"https://api.github.com/repos/Aldaviva/node-powermate/forks","keys_url":"https://api.github.com/repos/Aldaviva/node-powermate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aldaviva/node-powermate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aldaviva/node-powermate/teams","hooks_url":"https://api.github.com/repos/Aldaviva/node-powermate/hooks","issue_events_url":"https://api.github.com/repos/Aldaviva/node-powermate/issues/events{/number}","events_url":"https://api.github.com/repos/Aldaviva/node-powermate/events","assignees_url":"https://api.github.com/repos/Aldaviva/node-powermate/assignees{/user}","branches_url":"https://api.github.com/repos/Aldaviva/node-powermate/branches{/branch}","tags_url":"https://api.github.com/repos/Aldaviva/node-powermate/tags","blobs_url":"https://api.github.com/repos/Aldaviva/node-powermate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aldaviva/node-powermate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aldaviva/node-powermate/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aldaviva/node-powermate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aldaviva/node-powermate/statuses/{sha}","languages_url":"https://api.github.com/repos/Aldaviva/node-powermate/languages","stargazers_url":"https://api.github.com/repos/Aldaviva/node-powermate/stargazers","contributors_url":"https://api.github.com/repos/Aldaviva/node-powermate/contributors","subscribers_url":"https://api.github.com/repos/Aldaviva/node-powermate/subscribers","subscription_url":"https://api.github.com/repos/Aldaviva/node-powermate/subscription","commits_url":"https://api.github.com/repos/Aldaviva/node-powermate/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aldaviva/node-powermate/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aldaviva/node-powermate/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aldaviva/node-powermate/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aldaviva/node-powermate/contents/{+path}","compare_url":"https://api.github.com/repos/Aldaviva/node-powermate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aldaviva/node-powermate/merges","archive_url":"https://api.github.com/repos/Aldaviva/node-powermate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aldaviva/node-powermate/downloads","issues_url":"https://api.github.com/repos/Aldaviva/node-powermate/issues{/number}","pulls_url":"https://api.github.com/repos/Aldaviva/node-powermate/pulls{/number}","milestones_url":"https://api.github.com/repos/Aldaviva/node-powermate/milestones{/number}","notifications_url":"https://api.github.com/repos/Aldaviva/node-powermate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aldaviva/node-powermate/labels{/name}","releases_url":"https://api.github.com/repos/Aldaviva/node-powermate/releases{/id}","deployments_url":"https://api.github.com/repos/Aldaviva/node-powermate/deployments","created_at":"2016-02-24T02:12:41Z","updated_at":"2016-02-24T02:12:42Z","pushed_at":"2016-02-24T02:15:53Z","git_url":"git://github.com/Aldaviva/node-powermate.git","ssh_url":"git@github.com:Aldaviva/node-powermate.git","clone_url":"https://github.com/Aldaviva/node-powermate.git","svn_url":"https://github.com/Aldaviva/node-powermate","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"sandeepmistry:master","ref":"master","sha":"b6edef05a401ce6649e9b78029e28346dca3cce2","user":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"repo":{"id":7637813,"name":"node-powermate","full_name":"sandeepmistry/node-powermate","owner":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sandeepmistry/node-powermate","description":"A node.js library for the Griffin PowerMate","fork":false,"url":"https://api.github.com/repos/sandeepmistry/node-powermate","forks_url":"https://api.github.com/repos/sandeepmistry/node-powermate/forks","keys_url":"https://api.github.com/repos/sandeepmistry/node-powermate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sandeepmistry/node-powermate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sandeepmistry/node-powermate/teams","hooks_url":"https://api.github.com/repos/sandeepmistry/node-powermate/hooks","issue_events_url":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/events{/number}","events_url":"https://api.github.com/repos/sandeepmistry/node-powermate/events","assignees_url":"https://api.github.com/repos/sandeepmistry/node-powermate/assignees{/user}","branches_url":"https://api.github.com/repos/sandeepmistry/node-powermate/branches{/branch}","tags_url":"https://api.github.com/repos/sandeepmistry/node-powermate/tags","blobs_url":"https://api.github.com/repos/sandeepmistry/node-powermate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sandeepmistry/node-powermate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sandeepmistry/node-powermate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sandeepmistry/node-powermate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sandeepmistry/node-powermate/statuses/{sha}","languages_url":"https://api.github.com/repos/sandeepmistry/node-powermate/languages","stargazers_url":"https://api.github.com/repos/sandeepmistry/node-powermate/stargazers","contributors_url":"https://api.github.com/repos/sandeepmistry/node-powermate/contributors","subscribers_url":"https://api.github.com/repos/sandeepmistry/node-powermate/subscribers","subscription_url":"https://api.github.com/repos/sandeepmistry/node-powermate/subscription","commits_url":"https://api.github.com/repos/sandeepmistry/node-powermate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sandeepmistry/node-powermate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sandeepmistry/node-powermate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sandeepmistry/node-powermate/contents/{+path}","compare_url":"https://api.github.com/repos/sandeepmistry/node-powermate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sandeepmistry/node-powermate/merges","archive_url":"https://api.github.com/repos/sandeepmistry/node-powermate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sandeepmistry/node-powermate/downloads","issues_url":"https://api.github.com/repos/sandeepmistry/node-powermate/issues{/number}","pulls_url":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls{/number}","milestones_url":"https://api.github.com/repos/sandeepmistry/node-powermate/milestones{/number}","notifications_url":"https://api.github.com/repos/sandeepmistry/node-powermate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sandeepmistry/node-powermate/labels{/name}","releases_url":"https://api.github.com/repos/sandeepmistry/node-powermate/releases{/id}","deployments_url":"https://api.github.com/repos/sandeepmistry/node-powermate/deployments","created_at":"2013-01-16T02:36:40Z","updated_at":"2016-01-04T19:38:48Z","pushed_at":"2016-02-26T00:50:34Z","git_url":"git://github.com/sandeepmistry/node-powermate.git","ssh_url":"git@github.com:sandeepmistry/node-powermate.git","clone_url":"https://github.com/sandeepmistry/node-powermate.git","svn_url":"https://github.com/sandeepmistry/node-powermate","homepage":null,"size":193,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":0,"forks":13,"open_issues":0,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7"},"html":{"href":"https://github.com/sandeepmistry/node-powermate/pull/7"},"issue":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/7"},"comments":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/sandeepmistry/node-powermate/statuses/8b92f2777598a097841eb689035b8db6e6ad02f5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}