Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/cmap/handshake/client_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const NODE_DRIVER_VERSION = require('../../../package.json').version;

/**
* @public
* @deprecated This interface will be made internal in the next major release.
* @see https://github.com/mongodb/specifications/blob/master/source/mongodb-handshake/handshake.md#hello-command
*/
export interface ClientMetadata {
Expand Down Expand Up @@ -38,7 +39,10 @@ export interface ClientMetadata {
};
}

/** @public */
/**
* @public
* @deprecated This interface will be made internal in the next major release.
*/
export interface ClientMetadataOptions {
driverInfo?: {
name?: string;
Expand Down
1 change: 1 addition & 0 deletions src/mongo_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ export interface MongoOptions
compressors: CompressorName[];
writeConcern: WriteConcern;
dbName: string;
/** @deprecated - Will be made internal in a future major release. */
metadata: ClientMetadata;
/** @internal */
extendedMetadata: Promise<Document>;
Expand Down
5 changes: 4 additions & 1 deletion src/mongo_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ export class TypedEventEmitter<Events extends EventsDescription> extends EventEm
}
}

/** @public */
/**
* @public
* @deprecated Will be removed in favor of `AbortSignal` in the next major release.
*/
export class CancellationToken extends TypedEventEmitter<{ cancel(): void }> {
constructor(...args: any[]) {
super(...args);
Expand Down