Skip to content

Conversation

@giovanninocco
Copy link
Member

Release v6.2.0

This pull request includes updates to version numbers in workflows and a significant update to the CHANGELOG.md file to document the new release.

Workflow Updates:

Documentation Updates:

  • CHANGELOG.md: Added entries for version v6.2.0 including notable changes such as refactoring OpenAPI and middleware handling, updating package versions, and enhancing Azure setup.
  • CHANGELOG.md: Documented multiple package updates and refactoring efforts across various projects. [1] [2] [3]

Updated `Directory.Build.props` to change `Roslynator.Analyzers` version from `4.12.7` to `4.12.8`.
Added a period to the comment in `ICommand.cs`.
Explicitly used `string` type instead of `var` in `MongoOutboxInitializer.cs`.
Reformatted `channel.ExchangeDeclare` calls and changed `foreach` loop variable to `string?` in `RabbitMqExchangeInitializer.cs` for better readability and type clarity.
Updated PackageTags in .csproj files for better categorization.
Removed unused using directives in IQueryDispatcher.cs.
Allowed nullable TResult in DispatcherEndpointsBuilder and IDispatcher.
Refactored InMemoryDispatcher for nullable TResult and better formatting.
Fixed null reference issues in PublicContractsMiddleware and CertificateMiddleware.
Added null checks and default values in SecurityOptions and Extensions.
Replaced SwaggerOptions with OpenApiSettings and OpenApiSettingsBuilder.
Added support for custom operation IDs and server lists in OpenAPI.
Introduced a new builder pattern for configuring OpenAPI settings.
Added helloworld.bicep for Azure resource deployment.
Added `helloworld.bicep` to define Azure resources including a storage account, an App Service Plan, and a web app.

Updated project files (`Genocs.Auth.csproj`, `Genocs.Common.csproj`, `Genocs.Core.csproj`, `Genocs.Discovery.Consul.csproj`, `Genocs.HTTP.csproj`) to modify `<PackageTags>`, adding tags like `genocs`, `authentication`, `service-discovery`, and `http-client`.

Removed unused `using` directives in `IQueryDispatcher.cs`.

Modified `DispatcherEndpointsBuilder.cs` to allow `afterDispatch` function to accept nullable `TResult`.

Updated `Extensions.cs` to make the `middleware` parameter nullable in `UseDispatcherEndpoints`.

Changed `IDispatcher.cs` and `InMemoryDispatcher.cs` to make the return type of `QueryAsync` nullable.

Refactored `IDispatcherEndpointsBuilder.cs` to improve formatting and make `afterDispatch` function accept nullable `TResult`.

Updated `PublicContractsMiddleware.cs` to add null checks and improve command and event registration handling.

Refactored `CertificateMiddleware.cs` to initialize dictionaries inline and added null checks for `options.Certificate`.

Updated `SecurityOptions.cs` to improve formatting of the `GetHeaderName` method.

Enhanced `Extensions.cs` to add null checks and default value handling for `sectionName` in `AddCertificateAuthentication`.
Updated `appsettings.json` to include a comprehensive "swagger" section with configuration options such as `enabled`, `title`, `description`, `version`, `termsOfService`, `contactName`, `contactEmail`, `contactUrl`, `licenseName`, `licenseUrl`, `includeSecurity`, and a list of `servers`.

Extended `SwaggerOptions` class to include new properties: `Description`, `ContactName`, `ContactEmail`, `ContactUrl`, `LicenseName`, `LicenseUrl`, `TermsOfService`, and a list of `OpenApiServer` objects. Added an inner class `OpenApiServer` to represent server details.

Modified `AddSwaggerDocs` method in `Extensions.cs` to handle the new `SwaggerOptions` properties, including logic for security definitions, custom operation IDs, and server details. Added XML comments to the Swagger documentation.

Provided specific values for the "swagger" section in `appsettings.json` for different environments (local development, containerized, and production).
…Metrics, Genocs.WebApi, Genocs.Security, Genocs.Logging, Genocs.Secrets.Vault, Genocs.MessageBrokers, Genocs.WebApi.Swagger, Genocs.ServiceBusAzure, Genocs.Persistence.Redis, Genocs.Core.Demo.Contracts, Genocs.Persistence.MongoDb, Genocs.WebApi.Security, Genocs.Secrets.AzureKeyVault, Genocs.MessageBrokers.Outbox, Genocs.MessageBrokers.RabbitMQ, Genocs.Auth, Genocs.WebApi.CQRS, Genocs.Discovery.Consul, Genocs.Persistence.MongoDb.UnitTests, and Genocs.Core.Demo.Domain projects
@giovanninocco giovanninocco merged commit efc5040 into main Oct 22, 2024
1 check passed
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.

2 participants