Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 16, 2024

This PR contains the following updates:

Package Change Age Confidence
MongoDB.Bson (source) 2.30.0 -> 3.5.2 age confidence

Release Notes

mongodb/mongo-csharp-driver (MongoDB.Bson)

v3.5.2: .NET Driver Version 3.5.2 Release Notes

[!IMPORTANT]

.NET 10 / C# 14

If you are targeting .NET 10 or using C# 14 in your project you should upgrade to this release as soon as possible as it contains important compatibilty fixes.

Projects targeting prior versions of .NET or not using C# 14 can upgrade at their convenience.

This is a patch release that contains fixes and stability improvements:

  • CSHARP-5793: Map MemoryExtensions Contains and SequenceEqual with null comparer to Enumerable methods with no comparer parameter

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.

v3.5.1: .NET Driver Version 3.5.1 Release Notes

This is a patch release that contains fixes and stability improvements:

  • CSHARP-5777: Avoid ThreadPool-dependent IO methods in sync API
  • CSHARP-5743: Version 3.5 causes delays and disruptions because it is trying to access a disposed semaphore slim
  • CSHARP-5749: Support C# 14 changes that result in overloads now binding MemoryExtensions extension methods
  • CSHARP-5786: Add Decimal128 byte constructor overload (net10 compat)

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.

v3.5.0: .NET Driver Version 3.5.0 Release Notes

This is the general availability release for the 3.5.0 version of the driver.

[!IMPORTANT]

Internal Changes for an Upcoming Feature

This release includes low level changes to internal subsystems including operation execution, timeout handling, and resource cleanup logic - in preparation for supporting Client-Side Operations Timeout (CSOT) in an upcoming release.
While these changes should be backward-compatible and not alter existing behavior, they touch core driver infrastructure.
If you experience unexpected issues such as:

  • Operations timing out unexpectedly or not timing out when expected
  • Unusual delays or hangs in database calls
  • Differences in command cancellation behavior

Please let us know via the MongoDB JIRA Driver project or your MongoDB support channel, providing driver logs and a reproduction if possible.

Experimental Support for Queryable Encryption Text Field Prefix, Suffix and Substring Queries

Substring, prefix and suffix search for Queryable Encryption are in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version.

The main new features in 3.5.0 include:
  • CSHARP-5453: Add builder for CSFLE schemas
  • CSHARP-3222: Add LINQ support for median and percentile accumulators/window functions
  • CSHARP-5672: Support sorting by value in PushEach operation
  • CSHARP-5625: Support text indexes for explicit and automatic encryption
  • CSHARP-734: SOCKS5 Proxy Support
  • CSHARP-3458: Extend IAsyncCursor and IAsyncCursorSource to support IAsyncEnumerable
Improvements:
  • CSHARP-5603: Add Big Endian support in BinaryVectorReader and BinaryVectorWriter
  • CSHARP-5614: Fix deserialization of primitive arrays on Big Endian systems
  • CSHARP-5619: Replace IConnection.SendMessages with the method to send a single message
  • CSHARP-5377: Eliminate unnecessary killCursors command when batchSize == limit
Fixes:
  • CSHARP-3435: FilterDefinition Inject method should use root serializer
  • CSHARP-3662: MongoClientSettings.SocketTimeout does not work for values under 500ms on Windows for sync code
  • CSHARP-4040: Fix bug when using field with same element name as discriminator
  • CSHARP-5587: FindOneAndUpdate should insert correct discriminator value on upsert
  • CSHARP-3494: Fix discriminator for generic types
  • CSHARP-5588: Unable to select KeyValuePair Key when using camelCase convention
  • CSHARP-5633: BsonSerializer.IsTypeDiscriminated is not thread-safe
Maintenance:

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.

v3.4.3: .NET Driver Version 3.4.3 Release Notes

This is a patch release that contains fixes and stability improvements:

  • CSHARP-5697: Fix Client.BulkWrite failure in case complex type is being used as Document's Id

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.

v3.4.2: .NET Driver Version 3.4.2 Release Notes

This is a patch release that contains fixes and stability improvements:

  • CSHARP-5661: Fix UnobservedTaskException on socket connecting timeout

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

Upgrading
There are no known backwards breaking changes in this release.

v3.4.1: .NET Driver Version 3.4.1 Release Notes

This is a patch release that addresses some issues reported since 3.4.0 was released:

  • CSHARP-5588 Fix issue with conventions being ignored when using KeyValuePair in LINQ
  • CSHARP-5633 Fix thread safety issue with BsonSerializer.IsTypeDiscriminated

The list of JIRA tickets resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

Upgrading
There are no known backwards breaking changes in this release.

v3.4.0: .NET Driver Version 3.4.0 Release Notes

This is the general availability release for the 3.4.0 version of the driver.

The main new features in 3.4.0 include:
  • CSHARP-5551: Support KeyValuePair.Create<TKey,TValue>method in LINQ
  • CSHARP-5552: Add support for $convert in LINQ
  • CSHARP-5505: Add $geoNear stage aggregation builders
  • CSHARP-4935: Support casting from an interface to a type that implements that interface in LINQ queries
  • CSHARP-4779: Support Dictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection) constructor in LINQ
  • CSHARP-5543: Add new options for Atlas Search Text and Phrase operators
  • CSHARP-4535: Support queries after casting IQueryable<Derived> to IQueryable<Base>
Improvements:
  • CSHARP-5531: Reduce memory allocations in BsonStreamAdapter.WriteDouble and WriteInt64
  • CSHARP-5529: Optimize grouping.First().X to not retrieve the entire $$ROOT
Fixes:
  • CSHARP-5540: Fix exception when using AsQueryable().Last()
  • CSHARP-5471: Incorrectly resolving the authentication mechanism parameters from SRV connection string
  • CSHARP-5442: Fixed use of serializer by Atlas Search operators

[!NOTE]
Driver will start using registered serializers for Atlas Search operators, to continue using the previous behavior use SearchDefinition.UseConfiguredSerializers(false)

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.

v3.3.0: .NET Driver Version 3.3.0 Release Notes

This is the general availability release for the 3.3.0 version of the driver.

[!IMPORTANT]
A future minor release will raise the minimum supported MongoDB Server version from 4.0 to 4.2. This is in accordance with MongoDB Software Lifecycle Schedules. Support for MongoDB Server 4.0 will be dropped in a future release!

The main new features in 3.3.0 include:
  • CSHARP-5469: Support $lookup in CSFLE and QE
  • CSHARP-5205: Add option to configure DEK cache lifetime
  • CSHARP-4883: Support SkipWhile and TakeWhile methods in LINQ
  • CSHARP-5472: Support of NamespaceType property into ChangeStreamDocument
  • CSHARP-5478: Support for $rankFusion aggregation stage
  • CSHARP-5527: Support for $sigmoid expression in LINQ
  • CSHARP-5506: Support dictionary[key] for keys that aren't strings but are serialized as strings in LINQ queries
  • CSHARP-1585: Support for $elemMatch filters directly against the elements with no field name
  • CSHARP-5481: Implement OfType and Is support for queries with scalar discriminators
Improvements:
  • CSHARP-5496: Reduce locks contention on server selection and connection checkout
Fixes:
  • CSHARP-5513: Fix ChangeStream DisambiguatedPaths implementation
Maintenance:

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

v3.2.1: .NET Driver Version 3.2.1 Release Notes

This is a patch release that addresses some issues reported since 3.2.0 was released:

  • Fix potential leak with KMS retry mechanism - CSHARP-5489
  • Fix stack overflow exception on POCOs that represents tree-like structures - CSHARP-5493

An online version of these release notes is available here.

The list of JIRA tickets resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

Upgrading

There are no known backwards breaking changes in this release.

v3.2.0: .NET Driver Version 3.2.0 Release Notes

This is the general availability release for the 3.2.0 version of the driver.

The main new features in 3.2.0 include:

  • Support casting from an interface to a concrete type in a filter expression - CSHARP-4572
  • Support for BSON Binary Vector subtype that helps make MongoDB Vector Search more efficient and easy to work with - CSHARP-5202
  • Support for additional methods in LINQ, such as Append, OfType, Repeat, SequenceEqual - CSHARP-4872, CSHARP-4876, CSHARP-4878, CSHARP-4880
  • Support strings with "Range" operator for Atlas Search - CSHARP-5429
  • Added ObjectSerializerAllowedTypesConvention to more easily configure allowed types for ObjectSerializer - CSHARP-4495
  • Added Kubernetes Support for OIDC - CSHARP-5026
  • Added BsonDateOnlyOptionsAttribute to control the serialization of DateOnly - CSHARP-5345
  • Added array field support for "In" and "Range" operators in Atlas Search - CSHARP-5430
  • Fixed an error where BulkWrite command would not be retried when throwing a ClientBulkWriteException - CSHARP-5449
  • Fixed a bug where BsonGuidRepresentationAttribute will not work on nullable GUIDs - CSHARP-5456
  • EnumRepresentationConvention will now also be applied to collection of enums - CSHARP-2096
  • Automatically retry KMS requests on transient errors - CSHARP-5017
  • LINQ aggregate Group now supports $addToSet operator - CSHARP-5446
  • Minor bug fixes and improvements.

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

v3.1.0: .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
  • Support SearchIndexType option when creating Atlas Search indexes - CSHARP-4960
  • Support for valid SRV hostnames with less than 3 parts - CSHARP-5200
  • Support for search sequential pagination - CSHARP-5420
  • Support for Mql methods: Exists, IsMissing and IsNullOrMissing in filters when possible - CSHARP-5427
  • Support for Exact Vector Search (ENN) - CSHARP-5212
  • Allow sort option to be supplied to update commands (updateOne, etc.) - CSHARP-5201
  • Disabled TLS renegotiation when possible - CSHARP-2843
  • Fix a bug in discriminator convention inheritance - CSHARP-5349
  • New Serializers for ImmutableArray and other immutable collections - CSHARP-5335
  • Minor bug fixes and improvements.

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

v3.0.0: .NET Driver Version 3.0.0 Release Notes

The MongoDB .NET/C# driver team is pleased to announce our v3.0.0 release! The 3.0.0 release incorporates many user-requested fixes and improvements that have been deferred as backwards-incompatible, as well as internal improvements to pay down technical debt and improve maintainability. Additional major changes include removal of a large area of the public API (mainly from MongoDB.Driver.Core), which was not intended for public use. Removed APIs are marked as deprecated in v2.30.0 version.
For all the breaking changes and for the upgrade guidlines, please see the upgrade guide.

The main new features in 3.0.0 include:

  • CSHARP-4904: Adding .NET 6 target framework
  • CSHARP-4916: Removing .NETSTANDARD 2.0 target framework
  • CSHARP-5193: Removing LINQ2 provider
  • CSHARP-5233: Remove IMongoQueryable interface
  • CSHARP-4145: Improved Bulk Write API
  • CSHARP-4763: Client side projections with Find and Select
  • CSHARP-3899: Removing MongoDB.Driver.Legacy package
  • CSHARP-4917: Removing MongoDB.Driver.Core package and various non-user-facing APIs (see v2.30.0 for deprecation messages)
  • CSHARP-5232: Embedding MongoDB.Driver.GridFS package into MongoDB.Driver package
  • CSHARP-4912: Refactoring the Client Side field level description to an optional MongoDB.Driver.Encryption package. MongoDB.Libmongocrypt package is not in use anymore and will not get any further updates
  • CSHARP-4911: Refactoring the AWS authentication to an optional MongoDB.Driver.Authentication.AWS package
  • CSHARP-5291: Removing MONGODB-CR support
  • CSHARP-5263: Removing support for TLS1.0 and 1.1
  • CSHARP-2930: Changing default GUID serialization mode and removing GuidRepresentationMode
  • CSHARP-3717: Adding DateOnly/TimeOnly support

The full list of issues resolved in this release is available at CSHARP JIRA project.
Documentation on the .NET driver can be found here.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 38b3a4c to 424e3dc Compare December 5, 2024 17:14
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 424e3dc to 7a4a955 Compare January 20, 2025 08:58
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 7a4a955 to a7d542f Compare February 12, 2025 21:45
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from a7d542f to ca90a8d Compare February 20, 2025 22:33
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from ca90a8d to bcb678a Compare March 28, 2025 02:33
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from bcb678a to c1fa45d Compare May 1, 2025 22:55
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from c1fa45d to 678ef1d Compare July 16, 2025 23:42
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 678ef1d to 0481180 Compare July 25, 2025 19:23
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 0481180 to 4d87b79 Compare August 18, 2025 21:45
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 4d87b79 to 7973035 Compare September 10, 2025 21:33
@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 7973035 to 6655e5d Compare November 20, 2025 01:47
@coderabbitai
Copy link

coderabbitai bot commented Nov 20, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/mongo-csharp-driver-monorepo branch from 6655e5d to c98e91e Compare November 27, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant