isaacs/npmjs.org — Issue #55: CouchDB 1.2 support
Author: jhs
Created: 2012-02-11 03:17:46+00:00
State: open

May we use this issue to discuss the CouchDB 1.2 breaking change?

Good news! Simply setting a `"password"` field will trigger CouchDB to automatically split it into `password_sha` and `salt`. But that is optional so you can stick with the old way for broader compatibility.

Bad news. Documents in `/_users` are no longer public. You can only read your own document. I am planning a workaround.

What exactly does NPM need to know from `/_users` to work?

I am currently evaluating keeping a continuous replica of `/_users` to `/profiles` and some Javascript scrubs the sensitive data out. The Javascript could be a Node script, either an NPM package or just an attachment in this project, which works via the `curl | sh` trick or whatever. Alternatively I am thinking of making it use request and run "cross-platform" via Mikeal's request or in the browser via my browser-request.

Thoughts? Thanks.