Skip to content

Commit

Permalink
fix(NODE-4753): remove erroneous deprecation of geoNear (#3465)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp committed Nov 15, 2022
1 parent 1eea4f0 commit 199dcaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cursor/aggregation_cursor.ts
Expand Up @@ -210,8 +210,7 @@ export class AggregationCursor<TSchema = any> extends AbstractCursor<TSchema> {
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 });
Expand Down
3 changes: 1 addition & 2 deletions test/types/mongodb.test-d.ts
Expand Up @@ -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';
Expand All @@ -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);
Expand Down

0 comments on commit 199dcaf

Please sign in to comment.