{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4179","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4179/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4179/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4179/events","html_url":"https://github.com/pouchdb/pouchdb/issues/4179","id":102098887,"number":4179,"title":"`.changes` returns a promise instead of an event emitter on Node","user":{"login":"danse","id":885935,"avatar_url":"https://avatars.githubusercontent.com/u/885935?v=3","gravatar_id":"","url":"https://api.github.com/users/danse","html_url":"https://github.com/danse","followers_url":"https://api.github.com/users/danse/followers","following_url":"https://api.github.com/users/danse/following{/other_user}","gists_url":"https://api.github.com/users/danse/gists{/gist_id}","starred_url":"https://api.github.com/users/danse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danse/subscriptions","organizations_url":"https://api.github.com/users/danse/orgs","repos_url":"https://api.github.com/users/danse/repos","events_url":"https://api.github.com/users/danse/events{/privacy}","received_events_url":"https://api.github.com/users/danse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-20T09:24:43Z","updated_at":"2015-08-20T11:10:42Z","closed_at":"2015-08-20T11:10:42Z","body":"```\r\n> var PouchDB = require('pouchdb');\r\nundefined\r\n> var db = new PouchDB();\r\nundefined\r\n> var changes = db.changes();\r\nundefined\r\n> changes.on\r\nundefined\r\n> changes.then\r\n[Function: Promise$then]\r\n```\r\n\r\nProbably related to #3676. I cannot find mention to this in the documentation"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/132976670","html_url":"https://github.com/pouchdb/pouchdb/issues/4179#issuecomment-132976670","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4179","id":132976670,"user":{"login":"danse","id":885935,"avatar_url":"https://avatars.githubusercontent.com/u/885935?v=3","gravatar_id":"","url":"https://api.github.com/users/danse","html_url":"https://github.com/danse","followers_url":"https://api.github.com/users/danse/followers","following_url":"https://api.github.com/users/danse/following{/other_user}","gists_url":"https://api.github.com/users/danse/gists{/gist_id}","starred_url":"https://api.github.com/users/danse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danse/subscriptions","organizations_url":"https://api.github.com/users/danse/orgs","repos_url":"https://api.github.com/users/danse/repos","events_url":"https://api.github.com/users/danse/events{/privacy}","received_events_url":"https://api.github.com/users/danse/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T11:10:42Z","updated_at":"2015-08-20T11:10:42Z","body":"Turns out that `.on` is missing just when i erroneously omit the name:\r\n```\r\n> (new require('pouchdb'))().changes({live: true}).on;\r\nundefined\r\n> (new require('pouchdb'))('test').changes({live: true}).on;\r\n[Function: addListener]\r\n```\r\nGarbage in, garbage out :)"}}