PouchDB: Add deterministic_revs option to LocalDatabaseConfiguration (#40226)

* Update pouchdb-core

Add `deterministic_revs` option to LocalDatabaseConfiguration.

Documentation here: https://pouchdb.com/api.html#create_database

* Update pouchdb-core

* Update index.d.ts

Property needs to be optional
This commit is contained in:
Paul Gebheim
2019-11-11 11:43:21 -08:00
committed by Pranav Senthilnathan
parent 3a131e39af
commit 8c1bc9265b

View File

@@ -587,6 +587,12 @@ declare namespace PouchDB {
* and can be helpful for URL-based or file-based LevelDOWN path names.
*/
prefix?: string;
/**
* Use a md5 hash to create a deterministic revision number for documents.
* Setting it to false will mean that the revision number will be a random UUID.
* Defaults to true.
*/
deterministic_revs?: boolean;
}
interface RemoteDatabaseConfiguration extends CommonDatabaseConfiguration {