mongodb-memory-server icon indicating copy to clipboard operation
mongodb-memory-server copied to clipboard

Move `mongodb` to peerDependencies

Open rtritto opened this issue 2 years ago • 2 comments

mongodb should be moved from dependencies to peerDependencies.

Context

npm 6 doesn't autoinstall peerDependencies. npm 6 is used in Node 14 that is deprecated. npm versions > 6 will autoinstall peerDependencies.

rtritto avatar Jul 09 '23 10:07 rtritto

why should mongodb be moved to peerDependencies? any modern package manager will automatically de-duplicate a package if possible and mongodb-memory-server-core does not export any mongodb variables, it is also tested against that version and will not interfere with other installed mongodb versions installed

hasezoey avatar Jul 09 '23 11:07 hasezoey

By this way, can be used a specific version and/or same version in dependencies.

rtritto avatar Jul 09 '23 11:07 rtritto