apache / apache/pouchdb

Deprecation warning caused from pouchdb-adapter-http@9.0.0

Open
#8,971 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.