Skip to content

feat(NODE-6991): deprecate remaining types to be removed in v7 #4566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2025
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