…t was being passed to methods. NSJSONWritingOptions only include NSJSONWritingPrettyPrinted or Zero.
… has been set to nil The same conditions are used in getValueOfProperty:
Fixes a regression from a recent commit.
* CouchServer is now copyable. Call -copy to make a new instance to use on a different thread. * +[CouchTouchDBServer sharedInstance] should only be called from one thread since it returns only one instance. Added an assertion to enforce this. * Fixed implementation of -init to simplify it and prevent problems if there are multiple TouchDB instances open.
…acksChanges It will validate the cached currentRevision, if any, against the server and update it if it changed.
This allows for multiple replications with different filters, between the same databases.
Allows you to ship a database file with an app and then install it on the first launch.
If changes happened quickly enough, it was possible for the onCompletion block of a document save operation to be called _after_ the document got an external-change notification of a _later_ revision. (This occurred with CouchPersistentReplication on its initial save -- the replicator manager immediately updates the document with a task ID and "triggered" state, and this change was arriving before the model was told it had finished saving, so it wasn't ready to respond to external changes yet. Fixes couchbaselabs/TouchDB-iOS#187 , I think.
If using RESTOperation to talk to a remote server (not TouchDB), if no credential can be found for an auth challenge it should call -continueWithoutCredentialForAuthenticationChallenge: instead of cancelAuthenticationChallenge:. This will ensure that the error seen by the client is an HTTP 401 instead of "NSURLErrorDomain error -1012".
…ies (feature request)
…ap query on a view with a reduce function.
Fixes TouchDB 176
This only affects clients that still use the old/deprecated Couchbase Mobile framework.
[Tweaked by snej to simplify the code]