This repository was archived by the owner on Mar 11, 2022. It is now read-only.
2.0.0 (2015-11-12)
- [NEW]
DesignDocument.MapReducenow has a setter for thedbcopyfield. - [NEW] Requests for the
_all_docsendpoint are made viaDatabase#getAllDocsRequestBuilder()
instead of using a view. - [NEW] Introduced new view query API. More information is available in the javadoc,
including usage and migration examples. Note the absence of an equivalent forqueryForStream().
If you were using thequeryForStream()method we would be interested in feedback about your use case.
For example, if you were using theInputStreamdirectly for streaming API parsing with an alternative
JSON library we might be able to make this easier by handling the streams and providing a callback. - [NEW] Optional OkHttp dependency for per CloudantClient instance connection pooling.
- [BREAKING CHANGE] Removed
Database.batch(Object)method. Usingbatch=okis not recommended. - [BREAKING CHANGE] JVM
http.maxConnectionsconfigured pool is used by default for connection pooling. - [BREAKING CHANGE] Removed Apache HttpClient dependency. API methods that used HttpClient classes
(e.g.executeRequest) now useHttpConnectioninstead. - [BREAKING CHANGE]
CloudantClientpublic constructors andConnectionOptionshave been removed.
CloudantClientinstances are now created and have options configured usingClientBuilder. - [BREAKING CHANGE] Removed these deprecated methods:
CloudantClient.deleteDB(String, String)useCloudantClient.deleteDb(String),
Database.invokeUpdateHandler(String, String, String)useDatabase.invokeUpdateHandler(String, String, Params),
CloudantClient.setGsonBuilder(GsonBuilder)useClientBuilder.gsonBuilder(GsonBuilder). - [BREAKING CHANGE] Removed version 1.x view query API.
- [BREAKING CHANGE] LightCouch classes moved to package com.cloudant.client.org.lightcouch.
This should only have a visible impact forCouchDbExceptionand its subclasses. - [BREAKING CHANGE] Removed DbDesign class and replaced with DesignDocumentManager.
If you were using thegetFromDeskmethod, convert your design document directory to javascript
files and useDesignDocumentManager.fromFile(File)orDesignDocumentManager.fromDirectory(File).
More information is available in the javadoc, including usage for de-serializing design document
javascript files toDesignDocumentobjects. - [FIX] Use the default port for the protocol when a client instance is created from a URL without
specifying a port.