Update to MongoDB Driver 3.4.0 #102
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to dependencies, a migration to .NET 8.0, and refactoring of MongoDB-related serializers. The most significant changes involve upgrading package versions, removing support for .NET 6.0, and improving the structure and functionality of the
TypeObjectSerializerclass.Dependency Updates:
Directory.Packages.props, includingMoq(4.16.1 → 4.20.72),Snapshooter.Xunit(0.13.0 → 0.14.1), andMicrosoft.SourceLink.GitHub(1.1.1 → 8.0.0), among others.Microsoft.VisualStudio.Azure.Containers.Tools.Targets(1.17.0 → 1.21.0) andNSwag.AspNetCore(14.0.8 → 14.3.0) insamples/Directory.Packages.props.Migration to .NET 8.0:
Migration.csprojandMigration.Tests.csproj, tonet8.0and removed support fornet6.0. [1] [2] [3] [4]IsExternalInit.csconditionally included fornet6.0inContext.Tests.csproj.MongoDB Serializer Refactoring:
TypeObjectSerializerto expose anObjectSerializerproperty, replacing the private_objectSerializerfield. Updated methods to use this property for serialization and equality checks. [1] [2]TryRegisterObjectSerializerinMongoDatabaseBuilderto register theObjectSerializerfromTypeObjectSerializer.MongoDatabaseBuilderTests.csto assert againstObjectSerializerinstead ofTypeObjectSerializer. [1] [2] [3]Codebase Simplification:
System.Collections.Immutableto convert convention names to immutable lists inRegisterConventionsfor better immutability and safety.usingdirectives inMongoDatabaseBuilderTests.cs.These changes improve compatibility with .NET 8.0, enhance dependency management, and refine the MongoDB serialization mechanism for better maintainability and performance.