{"action":"created","issue":{"url":"https://api.github.com/repos/substack/insert-module-globals/issues/40","labels_url":"https://api.github.com/repos/substack/insert-module-globals/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/substack/insert-module-globals/issues/40/comments","events_url":"https://api.github.com/repos/substack/insert-module-globals/issues/40/events","html_url":"https://github.com/substack/insert-module-globals/pull/40","id":59708570,"number":40,"title":"Add setImmediate","user":{"login":"jscissr","id":4520820,"avatar_url":"https://avatars.githubusercontent.com/u/4520820?v=3","gravatar_id":"","url":"https://api.github.com/users/jscissr","html_url":"https://github.com/jscissr","followers_url":"https://api.github.com/users/jscissr/followers","following_url":"https://api.github.com/users/jscissr/following{/other_user}","gists_url":"https://api.github.com/users/jscissr/gists{/gist_id}","starred_url":"https://api.github.com/users/jscissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscissr/subscriptions","organizations_url":"https://api.github.com/users/jscissr/orgs","repos_url":"https://api.github.com/users/jscissr/repos","events_url":"https://api.github.com/users/jscissr/events{/privacy}","received_events_url":"https://api.github.com/users/jscissr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-03T21:29:13Z","updated_at":"2015-07-27T10:17:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/substack/insert-module-globals/pulls/40","html_url":"https://github.com/substack/insert-module-globals/pull/40","diff_url":"https://github.com/substack/insert-module-globals/pull/40.diff","patch_url":"https://github.com/substack/insert-module-globals/pull/40.patch"},"body":"`setTimeout`, `setInterval`, `setImmediate` and their `clear` counterparts are globals in Node.\r\n`set/clearImmediate` are not available in all browsers, so I added them here."},"comment":{"url":"https://api.github.com/repos/substack/insert-module-globals/issues/comments/125156369","html_url":"https://github.com/substack/insert-module-globals/pull/40#issuecomment-125156369","issue_url":"https://api.github.com/repos/substack/insert-module-globals/issues/40","id":125156369,"user":{"login":"jscissr","id":4520820,"avatar_url":"https://avatars.githubusercontent.com/u/4520820?v=3","gravatar_id":"","url":"https://api.github.com/users/jscissr","html_url":"https://github.com/jscissr","followers_url":"https://api.github.com/users/jscissr/followers","following_url":"https://api.github.com/users/jscissr/following{/other_user}","gists_url":"https://api.github.com/users/jscissr/gists{/gist_id}","starred_url":"https://api.github.com/users/jscissr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscissr/subscriptions","organizations_url":"https://api.github.com/users/jscissr/orgs","repos_url":"https://api.github.com/users/jscissr/repos","events_url":"https://api.github.com/users/jscissr/events{/privacy}","received_events_url":"https://api.github.com/users/jscissr/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T10:17:07Z","updated_at":"2015-07-27T10:17:07Z","body":"I don't need this PR for myself anymore @zertosh. When I opened the PR I experimented with using [express](http://expressjs.com/) in a Chrome App using browserify, and express uses the setImmediate global (which is not available in Chrome). There were other problems so I didn't use express in the end, but there are surely other packages that use it.\r\n\r\nBoth [node](https://github.com/joyent/node/blob/master/src/node.js#L204) and [io.js](https://github.com/nodejs/io.js/blob/v3.0.0-rc.5/src/node.js#L174) support it, however they don't document it ([node](https://nodejs.org/api/globals.html), [io.js](https://iojs.org/api/timers.html)). I didn't find any deprecations, it's simply an undocumented feature.\r\n\r\nSo do you think that instead of this PR, the packages that use the globals shouldn't use them? Or should the people who use these packages with browserify add the snippet in the above comment?"}}