Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 28, 2024

This PR contains the following updates:

Package Change Age Confidence
MongoDB.Driver (source) 2.22.0 -> 3.4.3 age confidence

Release Notes

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

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.

v2.30.0: .NET Driver Version 2.30.0 Release Notes

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.

v2.29.0: .NET Driver Version 2.29.0 Release Notes

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.

v2.28.0: .NET Driver Version 2.28.0 Release Notes

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

NOTICE: MongoDB 3.6 reached end-of-life in April 2021. The .NET/C# Driver will be removing support for MongoDB 3.6 in an upcoming release.

The main new features in 2.28.0 include:

  • Provide Strong-Named Assemblies - CSHARP-1276
  • Support additional numeric conversions involving Nullable - CSHARP-5180
  • CSFLE/QE KMIP support "delegated" protocol - CSHARP-4941

Bug fixes:

  • Verify that operands to numeric operators in LINQ expressions are represented as numbers on the server - CSHARP-4985
  • IReadOnlyDictionary indexer access fails to translate in v3 - CSHARP-5171
  • Projection Expressions Fail to Deserialize Data Correctly - CSHARP-5162
  • Enum conversion within IQueryable fails with Expression not supported exception - CSHARP-5043
  • IMongoCollection.AsQueryable().Select() fails for array type (regression) - CSHARP-4957

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

Documentation on the .NET driver can be found here.

v2.27.0: .NET Driver Version 2.27.0 Release Notes

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

The main new features in 2.27.0 include:

  • Support $sample aggregation operator - CSHARP-2659
  • Implement Equals method for serializers in LINQ3 - CSHARP-3315
  • Avoid Appending Write/Read Concern in Atlas Search Index Helper Commands - CSHARP-4839
  • Disallow comma character in authMechanismProperties connection string value - CSHARP-5106
  • Fix translation issue during serialization of numbers with differing sizes - CSHARP-5163
  • Support Linux distros using libdl.so.2 CSHARP-4889
  • Multiple 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.

v2.26.0: .NET Driver Version 2.26.0 Release Notes

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

The main new features in 2.26.0 include:

  • Support SelectMany inside Project/Select - CSHARP-5081
  • Support Dictionary.ContainsValue in LINQ queries - CSHARP-2509
  • Support string concatenation of mixed types - CSHARP-5071
  • Enable use of native crypto in libmongocrypt bindings - CSHARP-4944
  • Support serialization of Memory and ReadOnlyMemory structs - CSHARP-4807
  • OIDC: support for GCP Identity Provider - CSHARP-4610
  • Implement signing of NuGet packages - CSHARP-5050
  • Direct read/write retries to another mongos if possible - CSHARP-3757
  • Multiple 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.

v2.25.0: .NET Driver Version 2.25.0 Release Notes

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

NOTICE: MongoDB 3.6 reached end-of-life in April 2021. The .NET/C# Driver will be removing support for MongoDB 3.6 in an upcoming release.

The main new features in 2.25.0 include:

  • Support of MONGODB-OIDC Authentication mechanism - CSHARP-4448
  • MONGODB-OIDC: Automatic token acquisition for Azure Identity Provider - CSHARP-4474
  • Improved error message when no matching constructor found - CSHARP-5007
  • Driver Container and Kubernetes Awareness - CSHARP-4718
  • Logging of executed MQL for a LINQ query - CSHARP-4684
  • Allow custom service names with srvServiceName URI option - CSHARP-3745
  • BulkWrite enumerates requests argument only once - CSHARP-1378
  • Support of Range Explicit Encryption - CSHARP-5009
  • Multiple 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.

v2.24.0: .NET Driver Version 2.24.0 Release Notes

.NET Driver Version 2.24.0 Release Notes

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

The main new features in 2.24.0 include:

  • New DistinctMany method in IMongoCollection
  • Support for latest $dateFromString optional arguments
  • ExceededTimeLimit server error is now retryable for reads as well as writes
  • Support sort by score in $search stage
  • New custom method to test if a field exists or is missing in LINQ (Mql.Exists, Mql.IsMissing, Mql.IsNullOrMissing)
  • Enable TLS 1.3 support
  • Fix a GridFS error when attempting to upload a GridFS file with a duplicate id and the new file is smaller than the original file
  • Add support for Atlas Search $in operator
  • Add support for IComparable CompareTo method in LINQ queries
  • Add VectorSearchScore builder for $vectorSearch stage
  • Update libmongocrypt package version
  • Support for nested AsQueryable in LINQ queries (not a common use case but legal, primarily added for use by the EF Core Provider)
  • Updated authentication to occur over OP_MSG on supporting servers to improve MongoDB Atlas Serverless compatibility
  • Use polling monitoring when running within a FaaS environment such as AWS Lambda
  • Fixed segfault in Kerberos (libgssapi) on newer Linux distros

An online version of these release notes is available here.

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

Documentation on the .NET driver can be found here.

v2.23.2: .NET Driver Version 2.23.2 Release Notes

This is a patch release that addresses some issues reported since 2.23.1 was released.

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.

v2.23.1: .NET Driver Version 2.23.1 Release Notes

This is a patch release that addresses some issues reported since 2.23.0 was released.

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.

v2.23.0: .NET Driver Version 2.23.0 Release Notes

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

The main new features in 2.23.0 include:

An online version of these release notes is available here.

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 - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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.

@bitwarden-bot bitwarden-bot changed the title [deps]: Update MongoDB.Driver to v3 [PM-14134] [deps]: Update MongoDB.Driver to v3 Oct 28, 2024
@bitwarden-bot
Copy link

Internal tracking:

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 7.04%. Comparing base (c2cc6c7) to head (7b83de3).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #189   +/-   ##
=====================================
  Coverage   7.04%   7.04%           
=====================================
  Files         49      49           
  Lines       1818    1818           
  Branches      99      99           
=====================================
  Hits         128     128           
  Misses      1685    1685           
  Partials       5       5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate renovate bot changed the title [PM-14134] [deps]: Update MongoDB.Driver to v3 [deps]: Update MongoDB.Driver to v3 Oct 28, 2024
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 1f8b6b0 to aed1a5e Compare December 5, 2024 17:28
@jlf0dev jlf0dev requested a review from a team December 16, 2024 15:29
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from aed1a5e to 9051b14 Compare February 19, 2025 18:26
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 9051b14 to 275596f Compare February 27, 2025 21:28
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 275596f to 603d6c9 Compare April 4, 2025 01:01
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 603d6c9 to 341b24f Compare May 8, 2025 21:05
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 341b24f to f32ac63 Compare July 24, 2025 05:03
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from f32ac63 to 51ae0ea Compare August 1, 2025 19:58
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 51ae0ea to c8c81df Compare August 13, 2025 13:03
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from c8c81df to 9e8cea8 Compare August 24, 2025 10:56
@renovate renovate bot force-pushed the renovate/major-mongo-csharp-driver-monorepo branch from 9e8cea8 to 7b83de3 Compare August 25, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant