Skip to content

Commit e13469a

Browse files
committed
Add note about error name changes.
1 parent 1c10876 commit e13469a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
### Changed
66
- **BREAKING**: Use mongodb driver 6.x.
77
- **BREAKING**: Update error names to match bedrock best practice.
8+
- `InvalidKey` error for a bad param type has been changed to `TypeError`.
9+
- `DatabaseError` error is now `VersionError` for an invalid version,
10+
`DataError` for invalid data, and `OperationError` for some other
11+
error with a database operation. This is unrelated to MongoDB errors
12+
that are detected using the `isDatabaseError()` helper, which is
13+
unchanged and now more clearly decoupled from `DatabaseError`, which
14+
is no longer used.
815

916
### Removed
1017
- **BREAKING**: Remove export of previously deprecated `writeOptions`.

0 commit comments

Comments
 (0)