Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 18, 2025

Updated MongoDB.Driver from 2.28.0 to 3.4.2.

Release notes

Sourced from MongoDB.Driver's releases.

3.4.2

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.

3.4.1

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.

3.4.0

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.

3.3.0

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.

3.2.1

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.

3.2.0

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.

3.1.0

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.

3.0.0

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.

2.30.0

This is the general availability release for the 2.30.0 version of the driver. Version 2.30.0 of the driver is the last scheduled 2.x release. Further driver development will continue in 3.x versions.

Version 2.30.0 does not introduce new features or bug fixes. The single purpose of 2.30 is to ease the migration to 3.x by marking the public API that was removed in 3.0 as obsolete.

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

Documentation on the .NET driver can be found here.

2.29.0

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

Version 2.29.0 of the driver has been tested against MongoDB Server version 8.0 and adds support for the following new features in server version 8.0:

  • Support for v2 of the Queryable Encryption range protocol - CSHARP-4959
  • Range indexes for Queryable Encryption are now GA - CSHARP-5057

The following server 8.0 features are not yet supported and will be supported in a later release of the driver:

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

Documentation on the .NET driver can be found here.

Commits viewable in compare view.

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: MongoDB.Driver
  dependency-version: 3.4.2
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: MongoDB.Driver
  dependency-version: 3.4.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Aug 18, 2025
@dependabot dependabot bot force-pushed the dependabot/nuget/src/Library/multi-cc23bd5bec branch from 720229b to ec5ff7e Compare August 18, 2025 05:34
@dependabot dependabot bot added dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants