Kapelianovych / couchdb_dart

A library for Dart developers for work with CouchDB
https://pub.dev/packages/couchdb
Other
47 stars 18 forks source link

API changes #11

Closed dominickj-tdi closed 5 years ago

dominickj-tdi commented 5 years ago

Fixes #9

I have updated most of the methods to return the correct response type by default, by including conversion in the various class methods, as we discussed in the referenced issue.

There are two methods I didn't touch because I'm not 100% sure how they work and didn't want to break things. These are DatabaseModel.changesIn() and DatabaseModel.postChangesIn(). Someone more familiar with these methods should probably change those.

Kapelianovych commented 5 years ago

changesIn and postChangesIn are designed for to be able streaming responses if a connection is continuous or eventsource. So the response is sending partially and there is no ability to parse it more concrete early, before closing connection. I left these methods as if. In future, they may change.