Skip to content

Commit bed1cbf

Browse files
authored
docs(NODE-3650): Note that boolean options must now be specified as booleans in upgrade guide (#3017)
1 parent 1d696a4 commit bed1cbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/CHANGES_4.0.0.md

+3
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ Users should use `authMechanismProperties.SERVICE_NAME` like so:
174174
- In a URI query param: `?authMechanismProperties=SERVICE_NAME:alternateServiceName`
175175
- Or as an option: `{ authMechanismProperties: { SERVICE_NAME: 'alternateServiceName' } }`
176176

177+
### Non-boolean types are no longer accepted for boolean options
178+
Previously, the driver would accept values that could be coerced to booleans (e.g. `0` and `1`) for boolean options (for example, `UpdateOptions.upsert`). This is no longer the case; any option documented as being a boolean must be specified as a boolean value.
179+
177180
### db.collection no longer accepts a callback
178181

179182
The only option that required the use of the callback was strict mode.

0 commit comments

Comments
 (0)