@@ -39,25 +39,12 @@ const classesWithAsyncAPIs = new Map([
39
39
[ 'GridFSBucket' , makeLegacyGridFSBucket ] ,
40
40
[ 'ClientSession' , makeLegacyClientSession ] ,
41
41
[ 'MongoClient' , makeLegacyMongoClient ] ,
42
-
43
- // Need to be exported top-level still
44
42
[ 'ClientSession' , makeLegacyClientSession ] ,
45
43
[ 'GridFSBucketWriteStream' , makeLegacyGridFSBucketWriteStream ] ,
46
44
[ 'OrderedBulkOperation' , makeLegacyOrderedBulkOperation ] ,
47
45
[ 'UnorderedBulkOperation' , makeLegacyUnorderedBulkOperation ]
48
46
] ) ;
49
47
50
- const TODO_SPECIAL_IMPORTS = new Map ( [
51
- [ 'ClientSession' , '/lib/sessions' ] ,
52
- [ 'GridFSBucketWriteStream' , '/lib/gridfs/upload' ] ,
53
- [ 'OrderedBulkOperation' , '/lib/bulk/ordered' ] ,
54
- [ 'UnorderedBulkOperation' , '/lib/bulk/unordered' ]
55
- ] ) ;
56
-
57
- for ( const [ missingTopLevelClassName , location ] of TODO_SPECIAL_IMPORTS ) {
58
- mongodb [ missingTopLevelClassName ] = require ( `mongodb${ location } ` ) [ missingTopLevelClassName ] ;
59
- }
60
-
61
48
for ( const [ mongodbExportName , mongodbExportValue ] of Object . entries ( mongodb ) ) {
62
49
let makeLegacyClass = classesWithAsyncAPIs . get ( mongodbExportName ) ;
63
50
if ( makeLegacyClass != null ) {
0 commit comments