Skip to content

Commit a428a13

Browse files
chore: upgrade mongodb (freeCodeCamp#56829)
1 parent ad4aca9 commit a428a13

File tree

8 files changed

+164
-217
lines changed

8 files changed

+164
-217
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"joi": "17.12.2",
2626
"jsonwebtoken": "9.0.2",
2727
"lodash": "4.17.21",
28-
"mongodb": "4.17.2",
28+
"mongodb": "6.10.0",
2929
"nanoid": "3",
3030
"no-profanity": "1.5.1",
3131
"nodemailer": "6.9.10",

pnpm-lock.yaml

Lines changed: 157 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/scripts/seed-exams/create-exams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const examFilenames = [
2222
'example-certification-exam.yml'
2323
];
2424

25-
const client = new MongoClient(MONGOHQ_URL, { useUnifiedTopology: true });
25+
const client = new MongoClient(MONGOHQ_URL);
2626

2727
function handleError(err, client) {
2828
if (err) {

tools/scripts/seed-exams/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"joi": "17.12.2",
2525
"joi-objectid": "3.0.1",
2626
"js-yaml": "4.1.0",
27-
"mongodb": "5.9.2",
27+
"mongodb": "6.10.0",
2828
"nanoid": "4.0.2"
2929
},
3030
"type": "module"

tools/scripts/seed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"devDependencies": {
2222
"debug": "4.3.4",
2323
"dotenv": "16.4.5",
24-
"mongodb": "5.9.2"
24+
"mongodb": "6.10.0"
2525
}
2626
}

tools/scripts/seed/seed-demo-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const trophyChallenges = [
9595
}
9696
});
9797

98-
const client = new MongoClient(MONGOHQ_URL, { useNewUrlParser: true });
98+
const client = new MongoClient(MONGOHQ_URL);
9999

100100
const db = client.db('freecodecamp');
101101
const user = db.collection('user');

tools/scripts/seed/seed-ms-username.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const certifiedUserAccount = {
4242
msUsername: 'certifieduser'
4343
};
4444

45-
const client = new MongoClient(MONGOHQ_URL, { useNewUrlParser: true });
45+
const client = new MongoClient(MONGOHQ_URL);
4646

4747
const run = async () => {
4848
await client.db('admin').command({ ping: 1 });

tools/scripts/seed/seed-surveys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const certifiedUserSurvey = {
7474
userId: new ObjectId('5fa2db00a25c1c1fa49ce067')
7575
};
7676

77-
const client = new MongoClient(MONGOHQ_URL, { useNewUrlParser: true });
77+
const client = new MongoClient(MONGOHQ_URL);
7878

7979
const run = async () => {
8080
await client.db('admin').command({ ping: 1 });

0 commit comments

Comments
 (0)