mongodb-memory-server
mongodb-memory-server copied to clipboard
Move `mongodb` to peerDependencies
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.
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
By this way, can be used a specific version and/or same version in dependencies.