iriscouch / follow

Very stable, very reliable, NodeJS CouchDB _changes follower
Apache License 2.0
393 stars 82 forks source link

(#47) - Add support _db_updates feeds #48

Closed jo closed 10 years ago

jo commented 10 years ago

Follow detects whether an url (or db or uri) ends with /_db_updates and changes its internals accordingly.

There is no need for extending the API and the change is fully backwards compatibel, because the can't exist a db called _db_updates. With one exception: If a user was to route a couchdb database on an endpoint which is _db_updates it will not work the same anymore :)

Btw: I have moved the logic to support the variants to set the db: url and uri into the follow function to allow setting url property of the feed object, because speaking about db sounds wrong in this context.