From 19936c854dc88a631ee9520f6bd950a2e61285b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 17:33:19 +0000 Subject: [PATCH 1/2] [release/8.0]: Bump Microsoft.Azure.Cosmos from 3.37.1 to 3.63.3 --- updated-dependencies: - dependency-name: Microsoft.Azure.Cosmos dependency-version: 3.63.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- src/EFCore.Cosmos/EFCore.Cosmos.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EFCore.Cosmos/EFCore.Cosmos.csproj b/src/EFCore.Cosmos/EFCore.Cosmos.csproj index 1ab030399bd..4a7f1eefaa1 100644 --- a/src/EFCore.Cosmos/EFCore.Cosmos.csproj +++ b/src/EFCore.Cosmos/EFCore.Cosmos.csproj @@ -45,7 +45,7 @@ - + From f968e43a84de77229e3a7f203999c43000c83ecd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Nov 2026 22:26:43 +0000 Subject: [PATCH 2/2] Fix Cosmos Newtonsoft.Json dependency Co-authored-by: wtgodbe <14283640+wtgodbe@users.noreply.github.com> --- src/EFCore.Cosmos/EFCore.Cosmos.csproj | 1 + src/EFCore.Cosmos/Storage/Internal/ByteArrayConverter.cs | 2 +- src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs | 4 ++-- src/EFCore.Cosmos/Storage/Internal/CosmosDatabaseWrapper.cs | 4 ++-- src/EFCore.Cosmos/Storage/Internal/JsonCosmosSerializer.cs | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/EFCore.Cosmos/EFCore.Cosmos.csproj b/src/EFCore.Cosmos/EFCore.Cosmos.csproj index 4a7f1eefaa1..59a83dc32de 100644 --- a/src/EFCore.Cosmos/EFCore.Cosmos.csproj +++ b/src/EFCore.Cosmos/EFCore.Cosmos.csproj @@ -46,6 +46,7 @@ + diff --git a/src/EFCore.Cosmos/Storage/Internal/ByteArrayConverter.cs b/src/EFCore.Cosmos/Storage/Internal/ByteArrayConverter.cs index 75ca94f1a4e..fe63cd57d67 100644 --- a/src/EFCore.Cosmos/Storage/Internal/ByteArrayConverter.cs +++ b/src/EFCore.Cosmos/Storage/Internal/ByteArrayConverter.cs @@ -51,7 +51,7 @@ public override void WriteJson( public override object ReadJson( JsonReader reader, Type objectType, - object existingValue, + object? existingValue, JsonSerializer serializer) { if (reader.TokenType != JsonToken.StartArray) diff --git a/src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs b/src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs index 3bd43272772..56a5b606008 100644 --- a/src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs +++ b/src/EFCore.Cosmos/Storage/Internal/CosmosClientWrapper.cs @@ -266,7 +266,7 @@ private static async Task CreateItemOnceAsync( response.Diagnostics.GetClientElapsedTime(), response.Headers.RequestCharge, response.Headers.ActivityId, - parameters.Document["id"].ToString(), + parameters.Document["id"]!.ToString(), parameters.ContainerId, partitionKey); @@ -684,7 +684,7 @@ private static bool TryReadJObject(JsonTextReader jsonReader, [NotNullWhen(true) { if (jsonReader.TokenType == JsonToken.StartObject) { - jObject = Serializer.Deserialize(jsonReader); + jObject = Serializer.Deserialize(jsonReader)!; return true; } } diff --git a/src/EFCore.Cosmos/Storage/Internal/CosmosDatabaseWrapper.cs b/src/EFCore.Cosmos/Storage/Internal/CosmosDatabaseWrapper.cs index 87632517098..5b6dd5fbc47 100644 --- a/src/EFCore.Cosmos/Storage/Internal/CosmosDatabaseWrapper.cs +++ b/src/EFCore.Cosmos/Storage/Internal/CosmosDatabaseWrapper.cs @@ -245,7 +245,7 @@ private bool Save(IUpdateEntry entry) if (propertyName != null) { document[propertyName] = - JToken.FromObject(entityType.GetDiscriminatorValue(), CosmosClientWrapper.Serializer); + JToken.FromObject(entityType.GetDiscriminatorValue()!, CosmosClientWrapper.Serializer); } } @@ -313,7 +313,7 @@ private Task SaveAsync(IUpdateEntry entry, CancellationToken cancellationT if (propertyName != null) { document[propertyName] = - JToken.FromObject(entityType.GetDiscriminatorValue(), CosmosClientWrapper.Serializer); + JToken.FromObject(entityType.GetDiscriminatorValue()!, CosmosClientWrapper.Serializer); } } diff --git a/src/EFCore.Cosmos/Storage/Internal/JsonCosmosSerializer.cs b/src/EFCore.Cosmos/Storage/Internal/JsonCosmosSerializer.cs index 9028cd3b0e6..291e6747e20 100644 --- a/src/EFCore.Cosmos/Storage/Internal/JsonCosmosSerializer.cs +++ b/src/EFCore.Cosmos/Storage/Internal/JsonCosmosSerializer.cs @@ -28,7 +28,7 @@ public override T FromStream(Stream stream) using var streamReader = new StreamReader(stream); using var jsonTextReader = new JsonTextReader(streamReader); - return GetSerializer().Deserialize(jsonTextReader); + return GetSerializer().Deserialize(jsonTextReader)!; } }