Skip to content

Commit 0ff1d88

Browse files
committed
feat(NODE-7302): remove dependency on uri.parse()
1 parent 287c98a commit 0ff1d88

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { type EventEmitter } from 'events';
44
import { promises as fs } from 'fs';
55
import * as http from 'http';
66
import { clearTimeout, setTimeout } from 'timers';
7-
import * as url from 'url';
8-
import { URL } from 'url';
97
import { promisify } from 'util';
108

119
import { deserialize, type Document, ObjectId, resolveBSONOptions } from './bson';
@@ -1218,7 +1216,7 @@ export async function request(
12181216
method: 'GET',
12191217
timeout: 10000,
12201218
json: true,
1221-
...url.parse(uri),
1219+
url: new URL(uri),
12221220
...options
12231221
};
12241222

0 commit comments

Comments
 (0)