mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
add mongo-legacy to ensure compatibility and incremental migration
This commit is contained in:
@@ -9,6 +9,7 @@ Package.describe({
|
||||
|
||||
Npm.depends({
|
||||
mongodb: "5.0.0",
|
||||
"mongodb-legacy": "5.0.0"
|
||||
});
|
||||
|
||||
Package.onUse(function (api) {
|
||||
|
||||
@@ -3,7 +3,7 @@ try {
|
||||
// Silence deprecation warnings introduced in a patch update to mongodb:
|
||||
// https://github.com/meteor/meteor/pull/9942#discussion_r218564879
|
||||
process.noDeprecation = true;
|
||||
NpmModuleMongodb = Npm.require('mongodb');
|
||||
NpmModuleMongodb = Npm.require('mongodb-legacy');
|
||||
} finally {
|
||||
process.noDeprecation = oldNoDeprecationValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user