|
| 1 | +C# Driver Version 1.4.2 Release Notes |
| 2 | +===================================== |
| 3 | + |
| 4 | +This minor release fixes a few issues found in the 1.4.1 release. |
| 5 | + |
| 6 | +File by file change logs are available at: |
| 7 | + |
| 8 | +https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.4.2-Bson.txt |
| 9 | +https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.4.2-Driver.txt |
| 10 | + |
| 11 | +These release notes describe the changes at a higher level, and omit describing |
| 12 | +some of the minor changes. |
| 13 | + |
| 14 | +Breaking changes |
| 15 | +---------------- |
| 16 | + |
| 17 | +After 1.4.1 was released it was discovered that there were some minor breaking |
| 18 | +changes. The breaking changes were in methods that we considered to be internal, |
| 19 | +but that were not made private so that they leaked out into the public API. |
| 20 | +Those methods have now been marked obsolete and will be made private in |
| 21 | +a future release. The 1.4.2 release restores backward compatibility for these |
| 22 | +methods (GetDocumentId and SetDocumentId in BsonDocument). |
| 23 | + |
| 24 | +JIRA issues resolved |
| 25 | +-------------------- |
| 26 | + |
| 27 | +The full list of JIRA issues resolved in this release is available at: |
| 28 | + |
| 29 | +https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=11409 |
| 30 | + |
| 31 | +BSON library changes |
| 32 | +==================== |
| 33 | + |
| 34 | +GetDocumentId/SetDocumentId marked obsolete |
| 35 | +------------------------------------------- |
| 36 | + |
| 37 | +These methods were intended to be private. They have been marked as obsolete |
| 38 | +and will be made private in a future release. |
| 39 | + |
| 40 | +Driver changes |
| 41 | +============== |
| 42 | + |
| 43 | +Query.All/In/NotIn |
| 44 | +------------------ |
| 45 | + |
| 46 | +There was an issue with Query.All/In/NotIn that might have affected you. If you |
| 47 | +cast a BsonArray to IEnumerable<BsonValue> before calling Query.All/In/NotIn |
| 48 | +you would get an exception. This only happened when casting a BsonArray to |
| 49 | +IEnumerable<BsonValue>. If you passed a BsonArray to the BsonArray overload or |
| 50 | +passed an IEnumerable<BsonValue> that was not a BsonArray to the |
| 51 | +IEnumerable<BsonValue> overload no exception was thrown. |
| 52 | + |
| 53 | +RequestStart/RequestDone |
| 54 | +------------------------ |
| 55 | + |
| 56 | +Calling RequestStart when the connection pool was oversubscribed would often |
| 57 | +result in a deadlock. This has been fixed in the 1.4.2 release. |
| 58 | + |
| 59 | +Ping/VerifyState |
| 60 | +---------------- |
| 61 | + |
| 62 | +These methods are usually called from a timer to monitor the state of the |
| 63 | +server (or of multiple servers if connected to a replica set), but you can |
| 64 | +also call them yourself. These methods now use a new connection instead |
| 65 | +of one from the connection pool so that they are not delayed waiting for a |
| 66 | +connection when the connection pool is oversubscribed. |
0 commit comments