Skip to content

Commit 3db6a36

Browse files
authored
Release notes for 2.19.0. (#1013)
* Release notes for 2.19.0.
1 parent 790f123 commit 3db6a36

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# .NET Driver Version 2.19.0 Release Notes
2+
3+
This is the general availability release for the 2.19.0 version of the driver.
4+
5+
The main new features in 2.19.0 include:
6+
7+
* Atlas Search builders
8+
* Default LinqProvider changed to LINQ3
9+
* Support for Range Indexes preview
10+
* ObjectSerializer allowed types configuration
11+
* Bucket and BucketAuto stages support in LINQ3
12+
* Support Azure VM-assigned Managed Identity for Automatic KMS Credentials
13+
* Native support for AWS IAM Roles
14+
15+
### ObjectSerializer allowed types configuration
16+
17+
The `ObjectSerializer` has been changed to only allow deserialization of types that are considered safe.
18+
What types are considered safe is determined by a new configurable `AllowedTypes` function (of type `Func<Type, bool>`).
19+
The default `AllowedTypes` function is `ObjectSerializer.DefaultAllowedTypes` which returns true for a number of well-known framework types that we have deemed safe.
20+
A typical example might be to allow all the default allowed types as well as your own types. This could be accomplished as follows:
21+
22+
```
23+
var objectSerializer = new ObjectSerializer(type => ObjectSerializer.DefaultAllowedTypes(type) || type.FullName.StartsWith("MyNamespace"));
24+
BsonSerializer.RegisterSerializer(objectSerializer);
25+
```
26+
27+
More information about the `ObjectSerializer` is available in [our FAQ](https://www.mongodb.com/docs/drivers/csharp/v2.19/faq).
28+
29+
### Default LinqProvider changed to LINQ3
30+
Default LinqProvider has been changed to LINQ3.
31+
LinqProvider can be changed back to LINQ2 in the following way:
32+
33+
```
34+
var connectionString = "mongodb://localhost";
35+
var clientSettings = MongoClientSettings.FromConnectionString(connectionString);
36+
clientSettings.LinqProvider = LinqProvider.V2;
37+
var client = new MongoClient(clientSettings);
38+
```
39+
If you encounter a bug in LINQ3 provider, please report it in [CSHARP JIRA project](https://jira.mongodb.org/projects/CSHARP/issues).
40+
41+
An online version of these release notes is available [here](https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v2.19.0.md).
42+
43+
The full list of issues resolved in this release is available at [CSHARP JIRA project](https://jira.mongodb.org/issues/?jql=project%20%3D%20CSHARP%20AND%20fixVersion%20%3D%202.19.0%20ORDER%20BY%20key%20ASC).
44+
45+
Documentation on the .NET driver can be found [here](https://www.mongodb.com/docs/drivers/csharp/v2.19/).

0 commit comments

Comments
 (0)