Skip to content

feat(NODE-4925)!: remove deprecated options and types #3513

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 16 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: remove WriteConcernError.err()
  • Loading branch information
baileympearson committed Jan 4, 2023
commit 0749cfab77d87fdb93697de8072dd441826c7b25
8 changes: 8 additions & 0 deletions etc/notes/CHANGES_5.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ The following is a detailed collection of the changes in the major v5 release of

## Changes

### WriteConcernError.err() has been removed

The `err()` getter on the WriteConcernError class has been removed. The `toJSON()` method can be in place
of `err()`.

If `mapReduce` functionality is needed, the (`mapReduce` command)[https://www.mongodb.com/docs/manual/reference/command/mapReduce/] can be
used manually with the `Collection.runCommand` helper.

### salveOk options removed

The deprecated `slaveOk` option and `slaveOk()` method on the `Collection` class have been removed. Please
Expand Down
5 changes: 0 additions & 5 deletions src/bulk/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@ export class WriteConcernError {
return this[kServerError].errInfo;
}

/** @deprecated The `err` prop that contained a MongoServerError has been deprecated. */
get err(): WriteConcernErrorData {
return this[kServerError];
}

toJSON(): WriteConcernErrorData {
return this[kServerError];
}
Expand Down