Skip to content

Commit e26293a

Browse files
committed
chore: introduce warning notice when using leveldb adapter
1 parent 04a05da commit e26293a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/node_modules/pouchdb-adapter-leveldb/src

packages/node_modules/pouchdb-adapter-leveldb/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ LevelDownPouch.valid = function () {
3434
LevelDownPouch.use_prefix = false;
3535

3636
export default function (PouchDB) {
37+
console.warn('Warning: leveldb adapter will be deprecated in PouchDB 10.0.0 and removed in 11.0.0. '
38+
+ 'Read the migration guide here https://pouchdb.com/2026/04/10/migration-to-nodesqlite.html');
3739
PouchDB.adapter('leveldb', LevelDownPouch, true);
3840
}

0 commit comments

Comments
 (0)