I believe this repo needs upgrading to avoid this deprecated warning. `db.type() is deprecated and will be removed in a future version of PouchDB`