Skip to content

Commit 8bfbd18

Browse files
committed
feat: upgrade mongo to 6.0
1 parent 3d30c7d commit 8bfbd18

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/ParseQuery.Comment.spec.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ const profileLevel = 2;
2323
describe_only_db('mongo')('Parse.Query with comment testing', () => {
2424
beforeAll(async () => {
2525
config = Config.get('test');
26-
client = await MongoClient.connect(databaseURI, {
27-
useNewUrlParser: true,
28-
useUnifiedTopology: true,
29-
});
26+
client = await MongoClient.connect(databaseURI);
3027
database = client.db('parseServerMongoAdapterTestDatabase');
3128
let profiler = await database.command({ profile: 0 });
3229
expect(profiler.was).toEqual(0);

src/Adapters/Files/GridFSBucketAdapter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export class GridFSBucketAdapter extends FilesAdapter {
3535
.substring(0, 32)
3636
: null;
3737
const defaultMongoOptions = {
38-
useNewUrlParser: true,
39-
useUnifiedTopology: true,
4038
};
4139
const _mongoOptions = Object.assign(defaultMongoOptions, mongoOptions);
4240
for (const key of ['enableSchemaHooks', 'schemaCacheTtl', 'maxTimeMS']) {

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ export class MongoStorageAdapter implements StorageAdapter {
145145
this._uri = uri;
146146
this._collectionPrefix = collectionPrefix;
147147
this._mongoOptions = { ...mongoOptions };
148-
this._mongoOptions.useNewUrlParser = true;
149-
this._mongoOptions.useUnifiedTopology = true;
150-
this._onchange = () => {};
148+
this._onchange = () => { };
151149

152150
// MaxTimeMS is not a global MongoDB client option, it is applied per operation.
153151
this._maxTimeMS = mongoOptions.maxTimeMS;

0 commit comments

Comments
 (0)