Skip to content

Commit

Permalink
chore: remove old option usages from tests (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Nov 24, 2020
1 parent 54c456b commit 7efbba0
Show file tree
Hide file tree
Showing 94 changed files with 955 additions and 2,415 deletions.
31 changes: 2 additions & 29 deletions src/mongo_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export interface MongoURIOptions extends Pick<WriteConcernOptions, 'journal' | '
serverSelectionTryOnce?: boolean;
/** 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. */
heartbeatFrequencyMS?: number;
/** Specify a custom app name. */
/** 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 */
appName?: string;
/** Enables retryable reads. */
retryReads?: boolean;
Expand All @@ -138,8 +138,6 @@ export interface MongoClientOptions
extends WriteConcernOptions,
MongoURIOptions,
BSONSerializeOptions {
/** The maximum number of connections in the connection pool. */
poolSize?: MongoURIOptions['maxPoolSize'];
/** Validate mongod server certificate against Certificate Authority */
sslValidate?: boolean;
/** SSL Certificate store binary buffer. */
Expand All @@ -162,14 +160,6 @@ export interface MongoClientOptions
keepAliveInitialDelay?: number;
/** 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 */
family?: 4 | 6 | null;
/** Server attempt to reconnect #times */
reconnectTries?: number;
/** Server will wait number of milliseconds between retries */
reconnectInterval?: number;
/** Control if high availability monitoring runs for Replicaset or Mongos proxies */
ha?: boolean;
/** The High availability period for replicaset inquiry */
haInterval?: number;
/** Force server to assign `_id` values instead of driver */
forceServerObjectId?: boolean;
/** Return document results as raw BSON buffers */
Expand All @@ -184,12 +174,6 @@ export interface MongoClientOptions
loggerLevel?: LogLevel;
/** Custom logger object */
logger?: Logger;
/** Enable the wrapping of the callback in the current domain, disabled by default to avoid perf hit */
domainsEnabled?: boolean;
/** Validate MongoClient passed in options for correctness */
validateOptions?: boolean;
/** 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 */
appname?: MongoURIOptions['appName'];
/** The auth settings for when connection to server. */
auth?: Auth;
/** Type of compression to use?: snappy or zlib */
Expand All @@ -198,12 +182,6 @@ export interface MongoClientOptions
numberOfRetries?: number;
/** Enable command monitoring for this client */
monitorCommands?: boolean;
/** If present, the connection pool will be initialized with minSize connections, and will never dip below minSize connections */
minSize?: number;
/** 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. */
useNewUrlParser?: boolean;
/** Enables the new unified topology layer */
useUnifiedTopology?: boolean;
/** Optionally enable client side auto encryption */
autoEncryption?: AutoEncryptionOptions;
/** Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver */
Expand All @@ -212,6 +190,7 @@ export interface MongoClientOptions
servername?: string;

dbName?: string;
useRecoveryToken?: boolean;
}

/** @public */
Expand Down Expand Up @@ -590,12 +569,9 @@ export interface MongoOptions
| 'connectTimeoutMS'
| 'dbName'
| 'directConnection'
| 'domainsEnabled'
| 'driverInfo'
| 'forceServerObjectId'
| 'gssapiServiceName'
| 'ha'
| 'haInterval'
| 'heartbeatFrequencyMS'
| 'keepAlive'
| 'keepAliveInitialDelay'
Expand All @@ -610,8 +586,6 @@ export interface MongoOptions
| 'pkFactory'
| 'promiseLibrary'
| 'raw'
| 'reconnectInterval'
| 'reconnectTries'
| 'replicaSet'
| 'retryReads'
| 'retryWrites'
Expand All @@ -621,7 +595,6 @@ export interface MongoOptions
| 'tlsAllowInvalidCertificates'
| 'tlsAllowInvalidHostnames'
| 'tlsInsecure'
| 'waitQueueMultiple'
| 'waitQueueTimeoutMS'
| 'zlibCompressionLevel'
>
Expand Down
Loading

0 comments on commit 7efbba0

Please sign in to comment.