Skip to content

Commit

Permalink
fix(Solution): Updated all packages to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
cdavernas committed Sep 8, 2024
1 parent 93746de commit 9213484
Show file tree
Hide file tree
Showing 28 changed files with 58 additions and 66 deletions.
4 changes: 2 additions & 2 deletions src/Neuroglia.Blazor.Dagre/Neuroglia.Blazor.Dagre.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.6" />
<PackageReference Include="Neuroglia.Serialization.NewtonsoftJson" Version="4.11.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" />
<PackageReference Include="Neuroglia.Serialization.NewtonsoftJson" Version="4.15.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Jint" Version="3.1.3" />
<PackageReference Include="Jint" Version="4.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="EventStore.Client.Grpc.PersistentSubscriptions" Version="23.3.3" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" Version="23.3.3" />
<PackageReference Include="EventStore.Client.Grpc.Streams" Version="23.3.3" />
<PackageReference Include="EventStore.Client.Grpc.PersistentSubscriptions" Version="23.3.5" />
<PackageReference Include="EventStore.Client.Grpc.ProjectionManagement" Version="23.3.5" />
<PackageReference Include="EventStore.Client.Grpc.Streams" Version="23.3.5" />
<PackageReference Include="Lambda2Js" Version="3.1.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="StackExchange.Redis" Version="2.7.33" />
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="MongoDB.Driver" Version="2.26.0" />
<PackageReference Include="MongoDB.Driver" Version="2.28.0" />
<PackageReference Include="Pluralize.NET.Core" Version="1.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Minio" Version="6.0.2" />
<PackageReference Include="Minio" Version="6.0.3" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

using Microsoft.Extensions.Logging;
using Minio;
using Minio.ApiEndpoints;
using Minio.DataModel;
using Minio.DataModel.Args;
using Minio.DataModel.Tags;
Expand Down Expand Up @@ -170,7 +171,7 @@ public virtual async IAsyncEnumerable<IObjectDescriptor> ListObjectsAsync(string
.WithBucket(bucketName)
.WithRecursive(true);
if (!string.IsNullOrWhiteSpace(prefix)) args = args.WithPrefix(prefix);
items = this.MinioClient.ListObjectsAsync(args, cancellationToken).ToAsyncEnumerable();
items = this.MinioClient.ListObjectsEnumAsync(args, cancellationToken);
}
catch (MinioException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="StackExchange.Redis" Version="2.7.33" />
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="JsonSchema.Net" Version="7.0.4" />
<PackageReference Include="JsonSchema.Net" Version="7.2.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="System.Reactive.Linq" Version="6.0.1" />
<PackageReference Include="YamlDotNet" Version="15.3.0" />
<PackageReference Include="YamlDotNet" Version="16.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="StackExchange.Redis" Version="2.7.33" />
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

<ItemGroup>
<PackageReference Include="JsonCons.Utilities" Version="1.0.0" />
<PackageReference Include="JsonPatch.Net" Version="3.1.0" />
<PackageReference Include="JsonSchema.Net" Version="7.0.4" />
<PackageReference Include="JsonPatch.Net" Version="3.1.1" />
<PackageReference Include="JsonSchema.Net" Version="7.2.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="JsonSchema.Net.Generation" Version="4.3.0.2" />
<PackageReference Include="JsonSchema.Net.Generation" Version="4.5.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Polly" Version="8.4.0" />
<PackageReference Include="Polly" Version="8.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Neuroglia.Plugins/Neuroglia.Plugins.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="NuGet.PackageManagement" Version="6.10.0" />
<PackageReference Include="NuGet.Protocol" Version="6.10.0" />
<PackageReference Include="NuGet.PackageManagement" Version="6.11.0" />
<PackageReference Include="NuGet.Protocol" Version="6.11.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Json.More.Net" Version="2.0.1.2" />
<PackageReference Include="Json.More.Net" Version="2.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="JsonSchema.Net" Version="7.0.4" />
<PackageReference Include="YamlDotNet" Version="15.3.0" />
<PackageReference Include="JsonSchema.Net" Version="7.2.2" />
<PackageReference Include="YamlDotNet" Version="16.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public class DateTimeOffsetSerializer
public virtual bool Accepts(Type type) => typeof(DateTimeOffset).IsAssignableFrom(type);

/// <inheritdoc/>
public virtual object ReadYaml(IParser parser, Type type)
public virtual object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
{
Scalar scalar = (Scalar)parser.Current!;
parser.MoveNext();
return DateTimeOffset.Parse(scalar.Value, CultureInfo.InvariantCulture);
}

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
{
if (value == null || value is not DateTimeOffset dateTime) return;
emitter.Emit(new Scalar(dateTime.ToString("o", CultureInfo.InvariantCulture)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class EquatableDictionarySerializer(Func<YamlDotNet.Serialization.ISerial
public virtual bool Accepts(Type type) => type.GetGenericType(typeof(EquatableDictionary<,>))?.GetGenericTypeDefinition() == typeof(EquatableDictionary<,>);

/// <inheritdoc/>
public virtual object? ReadYaml(IParser parser, Type type) => throw new NotImplementedException();
public virtual object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) => throw new NotImplementedException();

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer)
{
if (value == null) return;
var serializer = serializerFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class EquatableListSerializer(Func<YamlDotNet.Serialization.ISerializer>
public virtual bool Accepts(Type type) => type.GetGenericType(typeof(EquatableList<>))?.GetGenericTypeDefinition() == typeof(EquatableList<>);

/// <inheritdoc/>
public virtual object? ReadYaml(IParser parser, Type type) => throw new NotImplementedException();
public virtual object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) => throw new NotImplementedException();

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer)
{
if (value == null || value is not IEnumerable collection) return;
var serializer = serializerFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,24 @@ namespace Neuroglia.Serialization.Yaml;
/// <summary>
/// Represents the <see cref="IYamlTypeConverter"/> used to convert <see cref="JsonNode"/>s
/// </summary>
public class JsonNodeTypeConverter
/// <param name="preservePropertyNameCase">A boolean indicating whether or not to preserve the case of the name of converted properties</param>
public class JsonNodeTypeConverter(bool preservePropertyNameCase = false)
: IYamlTypeConverter
{

/// <summary>
/// Initializes a new <see cref="JsonNodeTypeConverter"/>
/// </summary>
/// <param name="preservePropertyNameCase">A boolean indicating whether or not to preserve the case of the name of converted properties</param>
public JsonNodeTypeConverter(bool preservePropertyNameCase = false)
{
this.PreservePropertyNameCase = preservePropertyNameCase;
}

/// <summary>
/// Gets a boolean indicating whether or not to preserve the case of the name of converted properties
/// </summary>
protected bool PreservePropertyNameCase { get; }
protected bool PreservePropertyNameCase { get; } = preservePropertyNameCase;

/// <inheritdoc/>
public virtual bool Accepts(Type type) => typeof(JsonElement).IsAssignableFrom(type) || typeof(JsonNode).IsAssignableFrom(type);

/// <inheritdoc/>
public virtual object? ReadYaml(IParser parser, Type type) => throw new NotSupportedException();
public virtual object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) => throw new NotSupportedException();

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer)
{
if (value is JsonElement jsonElement) value = Json.JsonSerializer.Default.SerializeToNode(jsonElement);
this.WriteJsonNode(emitter, value as JsonNode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Neuroglia.Serialization.Yaml;
/// </remarks>
/// <param name="inner">The inner <see cref="INodeDeserializer"/></param>
public class JsonObjectDeserializer(INodeDeserializer inner)
: INodeDeserializer
: INodeDeserializer
{

/// <summary>
Expand All @@ -34,10 +34,10 @@ public class JsonObjectDeserializer(INodeDeserializer inner)
protected INodeDeserializer Inner { get; } = inner;

/// <inheritdoc/>
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value)
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value, ObjectDeserializer rootDeserializer)
{
if (!typeof(JsonObject).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value);
if (!this.Inner.Deserialize(reader, typeof(Dictionary<object, object>), nestedObjectDeserializer, out value)) return false;
if (!typeof(JsonObject).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value, rootDeserializer);
if (!this.Inner.Deserialize(reader, typeof(Dictionary<object, object>), nestedObjectDeserializer, out value, rootDeserializer)) return false;
value = Json.JsonSerializer.Default.Deserialize<JsonObject>(Json.JsonSerializer.Default.SerializeToText(value!));
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Neuroglia.Serialization.Yaml;
/// </remarks>
/// <param name="inner">The inner <see cref="INodeDeserializer"/></param>
public class JsonSchemaDeserializer(INodeDeserializer inner)
: INodeDeserializer
: INodeDeserializer
{

/// <summary>
Expand All @@ -35,10 +35,10 @@ public class JsonSchemaDeserializer(INodeDeserializer inner)
protected INodeDeserializer Inner { get; } = inner;

/// <inheritdoc/>
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value)
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value, ObjectDeserializer rootDeserializer)
{
if (!typeof(JsonSchema).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value!);
if (!this.Inner.Deserialize(reader, typeof(JsonObject), nestedObjectDeserializer, out value!)) return false;
if (!typeof(JsonSchema).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value!, rootDeserializer);
if (!this.Inner.Deserialize(reader, typeof(JsonObject), nestedObjectDeserializer, out value!, rootDeserializer)) return false;
var jsonObject = (JsonObject)value;
var jsonSchema = Json.JsonSerializer.Default.Deserialize<JsonSchema>(jsonObject)!;
value = jsonSchema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public class JsonSchemaTypeConverter
public virtual bool Accepts(Type type) => typeof(JsonSchema).IsAssignableFrom(type);

/// <inheritdoc/>
public virtual object? ReadYaml(IParser parser, Type type) => throw new NotSupportedException();
public virtual object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) => throw new NotSupportedException();

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer)
{
var schema = value as JsonSchema;
if (schema == null) return;
var node = Json.JsonSerializer.Default.Deserialize<JsonObject>(Json.JsonSerializer.Default.SerializeToText(schema));
new JsonNodeTypeConverter().WriteYaml(emitter, node, type);
new JsonNodeTypeConverter().WriteYaml(emitter, node, type, rootSerializer);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public StringEnumDeserializer(INodeDeserializer inner)
protected INodeDeserializer Inner { get; }

/// <inheritdoc/>
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value)
public virtual bool Deserialize(IParser reader, Type expectedType, Func<IParser, Type, object?> nestedObjectDeserializer, out object? value, ObjectDeserializer rootDeserializer)
{
if (!typeof(Enum).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value);
if (!this.Inner.Deserialize(reader, typeof(string), nestedObjectDeserializer, out value)) return false;
if (!typeof(Enum).IsAssignableFrom(expectedType)) return this.Inner.Deserialize(reader, expectedType, nestedObjectDeserializer, out value, rootDeserializer);
if (!this.Inner.Deserialize(reader, typeof(string), nestedObjectDeserializer, out value, rootDeserializer)) return false;
var valueStr = (string?)value;
if (string.IsNullOrWhiteSpace(valueStr)) value = expectedType.GetDefaultValue();
else value = EnumHelper.Parse(valueStr, expectedType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public class StringEnumSerializer
public virtual bool Accepts(Type type) => type.IsEnum;

/// <inheritdoc/>
public virtual object ReadYaml(IParser parser, Type type) => throw new NotImplementedException();
public virtual object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer) => throw new NotImplementedException();

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type) => emitter.Emit(new Scalar(EnumHelper.Stringify((Enum)value!, type)));
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer) => emitter.Emit(new Scalar(EnumHelper.Stringify((Enum)value!, type)));

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public class UriTypeSerializer
public virtual bool Accepts(Type type) => typeof(Uri).IsAssignableFrom(type);

/// <inheritdoc/>
public virtual object ReadYaml(IParser parser, Type type)
public virtual object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
{
var scalar = (Scalar)parser.Current!;
parser.MoveNext();
return new Uri(scalar.Value, UriKind.RelativeOrAbsolute);
}

/// <inheritdoc/>
public virtual void WriteYaml(IEmitter emitter, object? value, Type type)
public virtual void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer rootSerializer)
{
if (value == null) return;
emitter.Emit(new Scalar(((Uri)value).OriginalString));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using Esprima;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Neuroglia.Data.Infrastructure.EventSourcing;
Expand Down
8 changes: 4 additions & 4 deletions test/Neuroglia.UnitTests/Neuroglia.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="RichardSzalay.MockHttp" Version="7.0.0" />
<PackageReference Include="Testcontainers" Version="3.9.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<PackageReference Include="Testcontainers" Version="3.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit 9213484

Please sign in to comment.