All Versions
7
Latest Version
Avg Release Cycle
76 days
Latest Release
2032 days ago

Changelog History

  • v0.7.2 Changes

    May 08, 2016

    ๐Ÿš€ This release is a continuation of the improvements in the query builder APIs:

    • ViewQueryBuilder improved similarly to GetManyDocumentsQueryBuilder (#46), implements #44.
    • ๐Ÿ›  GetManyDocumentsQueryBuilder.byType now allows specifying a permanent view (#49, #50), fixes #48 and #45.

    ๐Ÿšš Our plan is to remove the deprecated methods in 0.8.0.

  • v0.7.1 Changes

    April 24, 2016

    ๐Ÿš€ The main change in this release is a new API for querying multiple documents that uses the fluent interface pattern instead of multiple overloaded queryX methods, which was proposed and implemented by @ermyas. Examples:

    Old

    • documents.getMany.descending.limit(10).queryIncludeDocsAllowMissing(ids)
    • documents.getMany.descending.limit(10).queryIncludeDocs(ids)
    • query.view.limit(10).queryWithReduce

    ๐Ÿ†• New

    • ๐Ÿ— documents.getMany.descending.limit(10).allowMissing.includeDocs.build.query(ids)
    • ๐Ÿ— documents.getMany.descending.limit(10).includeDocs.build.query
    • ๐Ÿ— query.view.limit(10).reduce.build.query

    ๐Ÿšš The old API is currently deprecated and will be removed in 0.8.0.

    ๐Ÿš€ This release also introduces (#31) a way to fetch multiple documents by type defined in your TypeMapping and deprecates document.getMany.queryIncludeDocs[T], which fails when the database contains documents of different types (fixes #19). Example:

    awaitRight(documents.createMany(Seq(fixProfessorX, fixMagneto))) documents.getMany.byType[(String, String), String, FixXPerson](FixViews.typeFilterView) .build.query
    

    Other notable changes:

    • Query.temporaryView: create and execute a temporary view (#26), implements #21.
    • Documents.create: a new overload that allows creating a document with multiple attachments (#28, #29), implements #22.
    • โšก๏ธ Updated dependencies: Scala 2.11.8, scalaz 7.2.1, http4s 0.13.0a, upickle 0.3.9, monocle 1.2.0, log4s 1.2.1, and others.
  • v0.7.0 Changes

    February 21, 2016

    ๐Ÿš€ This release contains 3 new features implemented by @ermyas:

    • Documents.createMany: creating multiple documents with specified IDs (#18), which addresses #16.
    • Documents.getMany.queryAllowMissing and Documents.getMany.queryIncludeDocsAllowMissing: getting multiple documents by IDs allowing some documents to not be present (#17), which addresses #15.
    • View.queryWithReduce: querying views with a reduce function (#20), which addresses #12.
  • v0.6.0 Changes

    September 19, 2015

    ๐Ÿš€ This release switches to JDK8 and Scala 2.11.7. It also updates the dependencies (scalaz 7.1.3, http4s 0.10.0, upickle 0.3.6, monocle 1.1.1) with the corresponding code clean up. Thanks @ermyas for working on #10 and #11!

  • v0.5.2 Changes

    June 29, 2015

    ๐Ÿš€ With the help of @ermyas, this release adds support for bulk updates (Documents.updateMany) and deletions (Documents.deleteMany), see #7. It also fixes the character encoding issue reported in #4 concerning values that contain UTF-8 characters.

  • v0.5.1 Changes

    February 09, 2015

    ๐Ÿš€ This is a minor release, which fixes #1: Lenses._couchDoc is now of type PLens, which allows changing the document type from CouchDoc[A] to CouchDoc[B] with modify.

    A few case classes in Model have been renamed for clarity:

    • CouchDocMeta โ†’ CouchKeyVal
    • CouchDocMetaWithDoc โ†’ CouchKeyValWithDoc
    • CouchDocsMeta โ†’ CouchKeyVals

    The getDataAsBytes method of CouchAttachment has been renamed to toBytes.

  • v0.5.0 Changes

    February 05, 2015

    ๐Ÿš€ This is the first public release of couchdb-scala. The artifact should shortly appear on Maven Central. The APIs should still be considered unstable and subject to change. Please feel free to report any issues that you face or suggestions for improvements.