Skip to content

v2.0.0

Compare
Choose a tag to compare
@hlaueriksson hlaueriksson released this 29 Jul 07:24
· 112 commits to master since this release

CommandQuery

  • Removed target framework net461 🎯
  • Renamed method ProcessWithResultAsync to ProcessAsync in CommandProcessor 💥
  • Added CancellationToken parameter to ProcessAsync methods in CommandProcessor and QueryProcessor
  • Renamed CommandTypeCollection to CommandTypeProvider 💥
  • Renamed QueryTypeCollection to QueryTypeProvider 💥
  • Added method AssertConfigurationIsValid to CommandProcessor and QueryProcessor
  • CommandProcessor, CommandTypeProvider, QueryProcessor and QueryTypeProvider are now added to IServiceCollection as singletons
  • CommandTypeException is now thrown if multiple commands with the same name is added to the CommandTypeProvider
  • QueryTypeException is now thrown if multiple queries with the same name is added to the QueryTypeProvider

CommandQuery.Abstractions

  • Removed target framework net461 🎯
  • Changed the class Error to a interface IError
  • Added CancellationToken parameter to HandleAsync methods in ICommandHandler<TCommand>, ICommandHandler<TCommand, TResult> and IQueryHandler<TQuery, TResult> 💥

CommandQuery.AspNet.WebApi

  • Excluded from further development 🔥

CommandQuery.AspNetCore

  • Changed the target frameworks to netstandard2.0 and netcoreapp3.1 🎯
  • Added extension methods AddCommandControllers and AddQueryControllers on IServiceCollection

CommandQuery.AWSLambda

  • Changed target framework to netcoreapp3.1 🎯
  • Now uses System.Text.Json, instead of Newtonsoft.Json 📜
  • Added the new abstractions ICommandFunction and IQueryFunction
  • Added JsonSerializerOptions constructor parameter in CommandFunction and QueryFunction
  • Renamed method to HandleAsync in CommandFunction and QueryFunction 💥
  • Changed the ILambdaContext parameter to ILambdaLogger in HandleAsync methods in CommandFunction and QueryFunction 💥
  • Added extension methods AddCommandFunction and AddQueryFunction on IServiceCollection
  • Nested object graph queries via GET is now supported

CommandQuery.AzureFunctions

  • Changed target frameworks to netcoreapp3.1 and net5.0 🎯
  • netcoreapp3.1 uses Newtonsoft.Json 📜
  • net5.0 uses System.Text.Json 📜
  • Added JsonSerializerSettings/JsonSerializerOptions constructor parameter in CommandFunction and QueryFunction
  • Renamed method to HandleAsync in CommandFunction and QueryFunction 💥
  • Added CancellationToken parameter to HandleAsync method in netcoreapp3.1
  • Added extension methods AddCommandFunction and AddQueryFunction on IServiceCollection
  • Nested object graph queries via GET is now supported

CommandQuery.Client

  • Removed target framework net461 🎯
  • Now uses System.Text.Json, instead of Newtonsoft.Json 📜
  • Added constructor with HttpClient and JsonSerializerOptions parameters to CommandClient and QueryClient
  • Removed sync over async methods in CommandClient and QueryClient 💥
  • Added CancellationToken parameter to methods in CommandClient and QueryClient
  • Nested object graph queries via GET is now supported

CommandQuery.DependencyInjection

  • Excluded from further development 🔥
  • Code moved to CommandQuery

CommandQuery.Extensions

  • Excluded from further development 🔥
  • Code moved to CommandQuery.NewtonsoftJson

CommandQuery.GoogleCloudFunctions

  • New project ✨
  • Target framework netcoreapp3.1 🎯
  • Uses System.Text.Json 📜

CommandQuery.NewtonsoftJson

  • New project ✨
  • Code moved from CommandQuery.Extensions
  • Target framework netstandard2.0 🎯
  • Depends on Newtonsoft.Json version 11.0.2 📜

CommandQuery.SystemTextJson

  • New project ✨
  • Target framework netstandard2.0 🎯
  • Depends on System.Text.Json version 5.0.2 📜