这是indexloc提供的服务,不要输入任何密码
Skip to content

[v0.2.1] Add Collection API

Choose a tag to compare

@sosuisen sosuisen released this 22 Feb 09:44
· 1384 commits to main since this release

Features

  • Added Collection API. Documents are gathered together in collections.
  • More compatible APIs with PouchDB
  • Changed local_dir (former localDir) to be optional.
  • Allow more kinds of characters for db_name, local_dir and _id.
  • Added remove() method. delete() method is now just an alias of remove().
  • Added options for using Collection in put(), get(), remove() and allDocs().

For Git users

  • Added commit message option to change commit message.

Breaking changes

  • Renamed properties of options and results from camelCase to snake_case (to align with PouchDB).

For Git users

  • Added .json extension to repository files.
  • Added _id property in a repository document.
  • Remove filepath from _id of a JSON document. _id is just a filename now.