couchdb v0.5.0 Release Notes
Release Date: 2016-01-17 // about 8 years ago-
π This release makes a few API changes to continue the library's progress towards optimal type-safety and convenience.
π₯ Breaking changes
- π¨ The
Document
type has been refactored to make it easier to use.- The
Document
type is no longer a generic type, nor is thecontent
field publicly accessible. Applications now access document content via a newinto_content
method, which does the JSON-decoding. See issue [#28][issue_28] for more information. - The
revision
field has been renamed torev
, which more closely matches the CouchDB name. - The
Document
type implementsserde::Deserialize
instead of a customfrom_reader
deserialization method. This should not affect applications. - The
Document
type no longer implements these traits:Eq
,Hash
,Ord
, andPartialOrd
.
- The
- Throughout the project, the term βcommandβ has been replaced with
βactionβ. The only API change is that the
command
module is now named theaction
module. This should not affect applications. See issue [#32][issue_32] for more information. - The
PostToDatabase
action now returns(DocumentId, Revision)
, not(Revision, DocumentId)
. - The following types now have at least one private field and can no
longer be directly constructed by applications:
Database
,Design
,ErrorResponse
,ViewFunction
,ViewResult
, andViewRow
.
- The
DeleteDocument
action now returns the revision of the deleted document. Previously the action returned nothing. - π The
Server
type has been moved/renamed totesting::FakeServer
.
π New
- π New
ViewFunctionBuilder
type for constructing aViewFunction
instance. - New
Revision::update_number
method for getting the update number part of a revision.
β Additional notes
- π The project is now dual-licensed under Apache-2.0 and MIT. See issue [#31][issue_31] for more information.
- Actions are now tested as unit tests and integration tests. Previously, actions were tested only as integration tests. Unit-testing now provides good test coverage without having the CouchDB server installed on the local machine.
- π The project now has support for Travis CI.
- π¨ The