From 8c1bc9265b243bbd3e5fa350bd7cdfb46cf2129d Mon Sep 17 00:00:00 2001 From: Paul Gebheim Date: Mon, 11 Nov 2019 11:43:21 -0800 Subject: [PATCH] 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 --- types/pouchdb-core/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/pouchdb-core/index.d.ts b/types/pouchdb-core/index.d.ts index 31042e086e..2d61166ad1 100644 --- a/types/pouchdb-core/index.d.ts +++ b/types/pouchdb-core/index.d.ts @@ -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 {