Skip to content

Adds support for options to several new methods

Compare
Choose a tag to compare
@flimzy flimzy released this 26 Nov 15:16
· 643 commits to master since this release
7fe6ade

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()

Additionally, the value of OptionFullCommit was changed from "force_commit" to "X-Couch-Full-Commit" for greater consistency (the old value will continue to be recognized until Kivik 2.0), and the IfNoneMatch constant was added, and is now recognized by the following functions:

  • Get()
  • GetAttachment()
  • GetAttachmentMeta()