Deprecation warning caused from pouchdb-adapter-http@9.0.0
Open
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
### Issue
Getting the following warning every time using the HTTP adapter:
```
db.type() is deprecated and will be removed in a future version of PouchDB
```
### Info
- Environment: Node.js/React Native (Hermes)
- Platform: iOS
- Adapter: http@9.0.0
- Server: CouchDB
### Reproduce
```js
import HttpPouch from 'pouchdb-adapter-http'
export default PouchDB.plugin(HttpPouch)
```
### Resolution
Would it be possible to remove `api.type` since it already has `api._remote = true` here?
https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-adapter-http/src/index.js#L289
Contributor guide
Assessment
This issue has not been assessed yet.