Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

2.0.0 (2015-11-12)

Choose a tag to compare

@ricellis ricellis released this 12 Nov 13:01
· 504 commits to master since this release
  • [NEW] DesignDocument.MapReduce now has a setter for the dbcopy field.
  • [NEW] Requests for the _all_docs endpoint are made via Database#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 for queryForStream().
    If you were using the queryForStream() method we would be interested in feedback about your use case.
    For example, if you were using the InputStream directly 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. Using batch=ok is not recommended.
  • [BREAKING CHANGE] JVM http.maxConnections configured pool is used by default for connection pooling.
  • [BREAKING CHANGE] Removed Apache HttpClient dependency. API methods that used HttpClient classes
    (e.g. executeRequest) now use HttpConnection instead.
  • [BREAKING CHANGE] CloudantClient public constructors and ConnectionOptions have been removed.
    CloudantClient instances are now created and have options configured using ClientBuilder.
  • [BREAKING CHANGE] Removed these deprecated methods:
    CloudantClient.deleteDB(String, String) use CloudantClient.deleteDb(String),
    Database.invokeUpdateHandler(String, String, String) use Database.invokeUpdateHandler(String, String, Params),
    CloudantClient.setGsonBuilder(GsonBuilder) use ClientBuilder.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 for CouchDbException and its subclasses.
  • [BREAKING CHANGE] Removed DbDesign class and replaced with DesignDocumentManager.
    If you were using the getFromDesk method, convert your design document directory to javascript
    files and use DesignDocumentManager.fromFile(File) or DesignDocumentManager.fromDirectory(File).
    More information is available in the javadoc, including usage for de-serializing design document
    javascript files to DesignDocument objects.
  • [FIX] Use the default port for the protocol when a client instance is created from a URL without
    specifying a port.