Skip to content

Commit e9057e7

Browse files
committed
Update backend MongoDB dependency version and remove deprecated useUnifiedTopology option
1 parent 2adf349 commit e9057e7

File tree

4 files changed

+295
-266
lines changed

4 files changed

+295
-266
lines changed

mailserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a Node.js-based mail server that provides SMTP (Simple Mail Transfer Pro
77
Before running the mail server, ensure that you have the following prerequisites installed:
88

99
- Node.js (version 14 or higher)
10-
- MongoDB (running on `mongodb://192.168.1.248:27017`)
10+
- MongoDB
1111
- NPM (Node Package Manager)
1212

1313
## Installation

mailserver/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let client;
55

66
async function connectMongoDB() {
77
try {
8-
client = new MongoClient(mongoURL, { useUnifiedTopology: true });
8+
client = new MongoClient(mongoURL);
99
await client.connect();
1010
console.log("Connected to MongoDB");
1111
} catch (error) {

mailserver/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"emailjs": "^4.0.2",
1818
"express": "^4.18.2",
1919
"mailparser": "^3.6.4",
20-
"mongodb": "^5.6.0",
20+
"mongodb": "^6.7.0",
2121
"node-cron": "^3.0.3",
2222
"nodemailer": "^6.9.3",
23-
"nodemon": "^2.0.22",
23+
"nodemon": "^3.1.4",
2424
"querystring": "^0.2.1",
2525
"smtp-server": "^3.12.0",
2626
"smtpd": "^0.1.7",

0 commit comments

Comments
 (0)