forked from mongodb/mongo-csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
1,852 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# .NET Driver Version 3.1.0 Release Notes | ||
|
||
This is the general availability release for the 3.1.0 version of the driver. | ||
|
||
The main new features in 3.1.0 include: | ||
|
||
+ Support token field type and array field expressions with Atlas Search builders for equals operator - [CSHARP-4926](https://jira.mongodb.org/browse/CSHARP-4926) | ||
+ Support `SearchIndexType` option when creating Atlas Search indexes - [CSHARP-4960](https://jira.mongodb.org/browse/CSHARP-4960) | ||
+ Support for valid SRV hostnames with less than 3 parts - [CSHARP-5200](https://jira.mongodb.org/browse/CSHARP-5200) | ||
+ Support for search sequential pagination - [CSHARP-5420](https://jira.mongodb.org/browse/CSHARP-5420) | ||
+ Support for Mql methods: `Exists`, `IsMissing` and `IsNullOrMissing` in filters when possible - [CSHARP-5427](https://jira.mongodb.org/browse/CSHARP-5427) | ||
+ Support for Exact Vector Search (ENN) - [CSHARP-5212](https://jira.mongodb.org/browse/CSHARP-5212) | ||
+ Allow sort option to be supplied to update commands (updateOne, etc.) - [CSHARP-5201](https://jira.mongodb.org/browse/CSHARP-5201) | ||
+ Disabled TLS renegotiation when possible - [CSHARP-2843](https://jira.mongodb.org/browse/CSHARP-2843) | ||
+ Fix a bug in discriminator convention inheritance - [CSHARP-5349](https://jira.mongodb.org/browse/CSHARP-5349) | ||
+ New Serializers for ImmutableArray and other immutable collections - [CSHARP-5335](https://jira.mongodb.org/browse/CSHARP-5335) | ||
+ Minor bug fixes and improvements. | ||
|
||
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%203.1.0%20ORDER%20BY%20key%20ASC). | ||
|
||
Documentation on the .NET driver can be found [here](https://www.mongodb.com/docs/drivers/csharp/v3.1/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pkg:nuget/MongoDB.Libmongocrypt@1.10.0 | ||
pkg:github/mongodb/libmongocrypt@1.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "pkg:nuget/MongoDB.Libmongocrypt@1.10.0", | ||
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.11.0", | ||
"externalReferences": [ | ||
{ | ||
"type": "distribution", | ||
"url": "https://www.nuget.org/api/v2/package/MongoDB.Libmongocrypt/1.10.0" | ||
"url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.11.0.tar.gz" | ||
}, | ||
{ | ||
"type": "website", | ||
"url": "https://www.nuget.org/packages/MongoDB.Libmongocrypt/1.10.0" | ||
"url": "https://github.com/mongodb/libmongocrypt/tree/1.11.0" | ||
} | ||
], | ||
"name": "MongoDB.Libmongocrypt", | ||
"purl": "pkg:nuget/[email protected]", | ||
"group": "mongodb", | ||
"name": "libmongocrypt", | ||
"purl": "pkg:github/mongodb/[email protected]", | ||
"type": "library", | ||
"version": "1.10.0" | ||
"version": "1.11.0" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "pkg:nuget/MongoDB.Libmongocrypt@1.10.0" | ||
"ref": "pkg:github/mongodb/libmongocrypt@1.11.0" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2024-06-27T18:41:56.248350+00:00", | ||
"timestamp": "2024-10-23T18:16:04.113855+00:00", | ||
"tools": [ | ||
{ | ||
"externalReferences": [ | ||
|
@@ -67,7 +68,7 @@ | |
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:cb433355-beb9-4038-8a04-565191eff5c5", | ||
"serialNumber": "urn:uuid:efc73d6e-4f57-43d3-9293-8d676835245d", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", | ||
"bomFormat": "CycloneDX", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/MongoDB.Bson/Serialization/Serializers/ImmutableArraySerializer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* Copyright 2010-present MongoDB Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#if NET6_0_OR_GREATER | ||
using System.Collections.Immutable; | ||
|
||
namespace Etherna.MongoDB.Bson.Serialization.Serializers | ||
{ | ||
/// <summary> | ||
/// Represents a serializer for ImmutableArrays. | ||
/// </summary> | ||
/// <typeparam name="T">The type of element stored by the collection.</typeparam> | ||
public class ImmutableArraySerializer<T>: EnumerableInterfaceImplementerSerializerBase<ImmutableArray<T>, T> | ||
{ | ||
/// <inheritdoc/> | ||
protected override object CreateAccumulator() | ||
{ | ||
return ImmutableArray.CreateBuilder<T>(); | ||
} | ||
|
||
/// <inheritdoc/> | ||
protected override ImmutableArray<T> FinalizeResult(object accumulator) | ||
{ | ||
return ((ImmutableArray<T>.Builder)accumulator).ToImmutable(); | ||
} | ||
} | ||
} | ||
#endif |
Oops, something went wrong.