Skip to content

Commit 7efbba0

Browse files
authored
chore: remove old option usages from tests (#2632)
1 parent 54c456b commit 7efbba0

File tree

94 files changed

+955
-2415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+955
-2415
lines changed

src/mongo_client.ts

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface MongoURIOptions extends Pick<WriteConcernOptions, 'journal' | '
123123
serverSelectionTryOnce?: boolean;
124124
/** heartbeatFrequencyMS controls when the driver checks the state of the MongoDB deployment. Specify the interval (in milliseconds) between checks, counted from the end of the previous check until the beginning of the next one. */
125125
heartbeatFrequencyMS?: number;
126-
/** Specify a custom app name. */
126+
/** The name of the application that created this MongoClient instance. MongoDB 3.4 and newer will print this value in the server log upon establishing each connection. It is also recorded in the slow query log and profile collections */
127127
appName?: string;
128128
/** Enables retryable reads. */
129129
retryReads?: boolean;
@@ -138,8 +138,6 @@ export interface MongoClientOptions
138138
extends WriteConcernOptions,
139139
MongoURIOptions,
140140
BSONSerializeOptions {
141-
/** The maximum number of connections in the connection pool. */
142-
poolSize?: MongoURIOptions['maxPoolSize'];
143141
/** Validate mongod server certificate against Certificate Authority */
144142
sslValidate?: boolean;
145143
/** SSL Certificate store binary buffer. */
@@ -162,14 +160,6 @@ export interface MongoClientOptions
162160
keepAliveInitialDelay?: number;
163161
/** Version of IP stack. Can be 4, 6 or null (default). If null, will attempt to connect with IPv6, and will fall back to IPv4 on failure */
164162
family?: 4 | 6 | null;
165-
/** Server attempt to reconnect #times */
166-
reconnectTries?: number;
167-
/** Server will wait number of milliseconds between retries */
168-
reconnectInterval?: number;
169-
/** Control if high availability monitoring runs for Replicaset or Mongos proxies */
170-
ha?: boolean;
171-
/** The High availability period for replicaset inquiry */
172-
haInterval?: number;
173163
/** Force server to assign `_id` values instead of driver */
174164
forceServerObjectId?: boolean;
175165
/** Return document results as raw BSON buffers */
@@ -184,12 +174,6 @@ export interface MongoClientOptions
184174
loggerLevel?: LogLevel;
185175
/** Custom logger object */
186176
logger?: Logger;
187-
/** Enable the wrapping of the callback in the current domain, disabled by default to avoid perf hit */
188-
domainsEnabled?: boolean;
189-
/** Validate MongoClient passed in options for correctness */
190-
validateOptions?: boolean;
191-
/** The name of the application that created this MongoClient instance. MongoDB 3.4 and newer will print this value in the server log upon establishing each connection. It is also recorded in the slow query log and profile collections */
192-
appname?: MongoURIOptions['appName'];
193177
/** The auth settings for when connection to server. */
194178
auth?: Auth;
195179
/** Type of compression to use?: snappy or zlib */
@@ -198,12 +182,6 @@ export interface MongoClientOptions
198182
numberOfRetries?: number;
199183
/** Enable command monitoring for this client */
200184
monitorCommands?: boolean;
201-
/** If present, the connection pool will be initialized with minSize connections, and will never dip below minSize connections */
202-
minSize?: number;
203-
/** Determines whether or not to use the new url parser. Enables the new, spec-compliant, url parser shipped in the core driver. This url parser fixes a number of problems with the original parser, and aims to outright replace that parser in the near future. Defaults to true, and must be explicitly set to false to use the legacy url parser. */
204-
useNewUrlParser?: boolean;
205-
/** Enables the new unified topology layer */
206-
useUnifiedTopology?: boolean;
207185
/** Optionally enable client side auto encryption */
208186
autoEncryption?: AutoEncryptionOptions;
209187
/** Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver */
@@ -212,6 +190,7 @@ export interface MongoClientOptions
212190
servername?: string;
213191

214192
dbName?: string;
193+
useRecoveryToken?: boolean;
215194
}
216195

217196
/** @public */
@@ -590,12 +569,9 @@ export interface MongoOptions
590569
| 'connectTimeoutMS'
591570
| 'dbName'
592571
| 'directConnection'
593-
| 'domainsEnabled'
594572
| 'driverInfo'
595573
| 'forceServerObjectId'
596574
| 'gssapiServiceName'
597-
| 'ha'
598-
| 'haInterval'
599575
| 'heartbeatFrequencyMS'
600576
| 'keepAlive'
601577
| 'keepAliveInitialDelay'
@@ -610,8 +586,6 @@ export interface MongoOptions
610586
| 'pkFactory'
611587
| 'promiseLibrary'
612588
| 'raw'
613-
| 'reconnectInterval'
614-
| 'reconnectTries'
615589
| 'replicaSet'
616590
| 'retryReads'
617591
| 'retryWrites'
@@ -621,7 +595,6 @@ export interface MongoOptions
621595
| 'tlsAllowInvalidCertificates'
622596
| 'tlsAllowInvalidHostnames'
623597
| 'tlsInsecure'
624-
| 'waitQueueMultiple'
625598
| 'waitQueueTimeoutMS'
626599
| 'zlibCompressionLevel'
627600
>

0 commit comments

Comments
 (0)