PouchDB's internal fetch() utility, version 9.0.0. This package provides an isomorphic HTTP fetch function tailored for PouchDB's database communication. It is part of the PouchDB monorepo and is not intended for direct public use. The version is pegged to PouchDB's version and does not follow semantic versioning. It wraps the native fetch API with PouchDB-specific error handling and defaults. Release cadence follows PouchDB releases, which are irregular. Key differentiator: designed for internal PouchDB consumption; for generic fetch, use native fetch or node-fetch.
npm install pouchdb-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use pouchdb-fetch for HTTP requests with CouchDB.
npm install --save-exact pouchdb-fetch
Use the global fetch API available in Node 18+ and modern browsers, or node-fetch.
Manage cookie jars explicitly if needed, or use a custom fetch implementation.
Change import fetch from 'pouchdb-fetch' to default import.
change import { fetch } from 'pouchdb-fetch' to import fetch from 'pouchdb-fetch'npm install --save-exact pouchdb-fetch@9.0.0
const fetch = require('pouchdb-fetch'); // not const { fetch } = require('pouchdb-fetch');