Releases: go-kivik/kivik
Attachment improvements
Improvements to the main Kivik library
- New
kivik.Attachments
type and improvements to thekivik.Attachment
type, to support JSON marshaling and unmarshaling. This makes it possible to embed a map ofkivik.Attachments
directly in a document when storing such asPut
, or when unmarshaling with such as withScanDoc
. - Added import comments to
kivik
and all sub-packages, in preparation for renaming the package. Not a functional change.
Driver improvements
In conjunction with this new release of the core Kivik library, updates to the CouchDB and PouchDB drivers have also been published:
CouchDB Driver v1.7.0
- It is now possible to set a custom HTTP transport for the underlying HTTP connection. This allows for providing custom TLS configuration, proxy configuration, etc.
PouchDB Driver v1.3.3
- Reduced the size of the generated JS by not importing the
net/http
package. This is not a functional change.
Adds support for options to several new methods
The following methods now take an optional kivik.Options
argument as the final argument:
- DB.CreateDoc()
- DB.Put()
- DB.Delete()
- DB.PutAttachment()
- DB.DeleteAttachment()
- DB.GetAttachmentMeta()
- DB.GetAttachment()
Full support for CouchDB 2.1.1 and 1.7.1
This release reflects mostly a change in testing, to test against the latest CouchDB releases, but with one minor enhancement: The addition of of the Bookmark()
method on the Rows
type, which exposes the bookmark
value returned by _find
queries.
New error codes
This release adds some new 600-level error codes used for non-HTTP error statuses.
Remove server mode
The server has been moved to its own package github.com/go-kivik/kivikd, to reduce the dependency graph for the main kivik package.
Nothing to see here
Code reorganization, improved build process, fewer dependencies.
Add Features field to Version struct
This is to support the new features
field returned by CouchDB 2.1.
A few other minor changes were made to support CouchDB 2.1, mostly to the build process.
Adds support for options to the BulkDocs() method
This is a very minor release, but I've bumped the minor version due to a minor compatibility change with the drivers interface. See PR #209 for more details. Use of BulkDocs()
requires v1.3.0 of either the couchdb driver or pouchdb.
Functional changes:
- It is now possible to pass options to the
BulkDocs()
method. Fixes #208
Minor changes:
- Minor changes to the build process
- Removed the dependency on the
github.com/justinas/alice
package in the server mode.
Query Plans
This release adds the Explain
method to return Find
query plans.
New EndKeySuffix symbol
The new EndKeySuffix constant represents a high Unicode character (0xfff0) useful for appending to an endkey argument, when doing a ranged search, as described here: http://couchdb.readthedocs.io/en/latest/ddocs/views/collation.html#string-ranges