Skip to content

Commit 80c7c8e

Browse files
authored
CSHARP-2877 / CSHARP-3889: Added upgrade warning for 2.11.0+ as BsonSerializer.Serialize no longer allows arrays at the root of a BSON document. (#645)
1 parent 120749d commit 80c7c8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Docs/reference/content/upgrading.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ title = "Upgrading"
1111

1212
## Breaking Changes
1313

14-
### Backwards compatibility with driver version 2.7.0–2.12.x
14+
### Backwards compatibility with driver version 2.7.0–2.13.x
1515

16-
No known backward compatibility issues.
16+
Starting in 2.11.0, ``BsonSerializer.Serialize`` will throw an
17+
``InvalidOperationException`` when attempting to serialize an array at
18+
the root of a BSON document. Prior versions would allow this invalid operation.
19+
See https://jira.mongodb.org/browse/CSHARP-2877 and
20+
https://jira.mongodb.org/browse/CSHARP-3889 for more details.

0 commit comments

Comments
 (0)