Skip to content

Commit b813c85

Browse files
authored
feat(NODE-7140): deprecate driver info options (#4654)
1 parent 1634d19 commit b813c85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mongo_client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ export interface MongoClientOptions extends BSONSerializeOptions, SupportedNodeC
282282
* If an internal MongoClient is created, it is configured with the same options as the parent MongoClient except minPoolSize is set to 0 and AutoEncryptionOptions is omitted.
283283
*/
284284
autoEncryption?: AutoEncryptionOptions;
285-
/** Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver */
285+
/**
286+
* Allows a wrapping driver to amend the client metadata generated by the driver to include information about the wrapping driver
287+
/* @deprecated - Will be made internal in a future major release.
288+
*/
286289
driverInfo?: DriverInfo;
287290
/** Configures a Socks5 proxy host used for creating TCP connections. */
288291
proxyHost?: string;
@@ -1094,7 +1097,9 @@ export interface MongoOptions
10941097
dbName: string;
10951098
/** @deprecated - Will be made internal in a future major release. */
10961099
metadata: ClientMetadata;
1100+
/** @deprecated - Will be made internal in a future major release. */
10971101
extendedMetadata: Promise<Document>;
1102+
/** @deprecated - Will be made internal in a future major release. */
10981103
additionalDriverInfo: DriverInfo[];
10991104
/** @internal */
11001105
autoEncrypter?: AutoEncrypter;

0 commit comments

Comments
 (0)