diff --git a/src/cursor/aggregation_cursor.ts b/src/cursor/aggregation_cursor.ts index 1e91a169c9..981989902f 100644 --- a/src/cursor/aggregation_cursor.ts +++ b/src/cursor/aggregation_cursor.ts @@ -210,8 +210,7 @@ export class AggregationCursor extends AbstractCursor { return this; } - // deprecated methods - /** @deprecated Add a geoNear stage to the aggregation pipeline */ + /** Add a geoNear stage to the aggregation pipeline */ geoNear($geoNear: Document): this { assertUninitialized(this); this[kPipeline].push({ $geoNear }); diff --git a/test/types/mongodb.test-d.ts b/test/types/mongodb.test-d.ts index 89e2371719..fe75b1e223 100644 --- a/test/types/mongodb.test-d.ts +++ b/test/types/mongodb.test-d.ts @@ -5,7 +5,7 @@ import { Db, WithId, WriteConcern, WriteConcernSettings } from '../../src'; import * as MongoDBDriver from '../../src'; import type { ChangeStreamDocument } from '../../src/change_stream'; import { Collection } from '../../src/collection'; -import { AggregationCursor } from '../../src/cursor/aggregation_cursor'; +import type { AggregationCursor } from '../../src/cursor/aggregation_cursor'; import { FindCursor } from '../../src/cursor/find_cursor'; import { MongoClient } from '../../src/mongo_client'; import { Topology } from '../../src/sdam/topology'; @@ -16,7 +16,6 @@ expectDeprecated(Collection.prototype.update); expectDeprecated(Collection.prototype.remove); expectDeprecated(Collection.prototype.count); expectDeprecated(Collection.prototype.mapReduce); -expectDeprecated(AggregationCursor.prototype.geoNear); expectDeprecated(FindCursor.prototype.count); expectDeprecated(Topology.prototype.unref); expectDeprecated(Db.prototype.unref);