PouchDB 5.4.0 removed undocumented globals like
PouchDB.Errors. This plugin adds them back in, in case you need it for backwards compatibility or for your tests.
Requires PouchDB 5.4.0+.
npm install pouchdb-legacy-utils
var PouchDB = ; // or pouchdb-core, etc.PouchDB;
Now you have
PouchDB.ajax, just like in PouchDB pre-5.4.0.
Shouldn't 5.4.0 have been a major version bump?
Yeah, probably. We didn't realize how many people were using these undocumented, unrecommended APIs, though. Hence this plugin.