Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release / v0.12.0 #191

Merged
merged 6 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="FluentNHibernate" Version="3.4.0" />
<PackageVersion Include="Humanizer.Core" Version="2.14.1" />
<PackageVersion Include="Oracle.ManagedDataAccess.Core" Version="23.5.1" />
<PackageVersion Include="Oracle.ManagedDataAccess.Core" Version="23.6.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="8.0.8" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10" />
Expand Down
64 changes: 64 additions & 0 deletions docs/release-notes/v0-12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# v0.12

## v0.12.0

### Features

- Beta features are available in Baked.Recipe.Service package;
- `RuntimeLayer`is added which merges the following layers:
- `Configuration`
- `DependencyInjection`
- `Monitoring`
- `Oracle` implementation of `Database` feature is now added
- `Cors` feature is now added with `AspNetCore` implementation
- `Reporting` feature is introduced with three implenmentations `NativeSql`
for production, `Mock` and `Fake` for development
- `DataSource` recipe is available which includes minimal features for a web
application that only reads data from given database
- `RichTransient` coding style feature is now added
- `NamespaceAsRoute` coding style is introduced where namespaces are directly
reflected to the endpoints routes

### Improvements

- `MockConfiguration` feature now clears `FakeSettings` list on teardown
- `MockMe.TheClient` helper now provides optional parameter to clear previous
invocations
- `ConfigureAction` and `OverrideAction` helpers are now added to configure
`RestApi.ActionModel` before and after conventions
- `Enum<T>` helper class is added to use enum values within `ValueSource`
attribute
- `DataAccess` layer now exposes `FluentConfiguration` as configuration target
- `DataAccess` layer now introduces `IDatabaseInitializerCollection`
configuration target for registering database initialization actions
- `IServiceProvider` now has `UseCurrentScope` extensions to resolve services
using the scope provided by `IServiceProviderAccessor` implementations
- `TestRun` now creates and disposes a scope for each test run to
- `Runtime` layer now provides `IFileProvider`component with
`CompositeFileProvider` implementation
- `ReadAsString` and `ReadAsStringAsync` helper extensions are now added for
`IFileProvider`
- `DomainAssemblies` feature now have options to auto add embedded file
providers for give assemblies
- `Dotnet` feature now adds embedded and physical file providers for given
entry assembly
- Async overloads for `ShouldPass` and `ShouldFail` are now available
- `Default` exception handler is renamed as `ProblemDetails`
- `ITextTransformer` is introduced in `Core` feature to allow business to make
use of `Humanizer` methods without depending on it

### Library Upgrades

| Package | Old Version | New Version |
| ----------------------------------------- | ----------- | ----------- |
| Oracle.ManagedDataAccess.Core | new | 23.6.0 |
| Microsoft.AspNetCore.Mvc.NewtonsoftJson | 8.0.8 | 8.0.10 |
| Microsoft.AspNetCore.Mvc.Testing | 8.0.8 | 8.0.10 |
| Microsoft.Data.Sqlite.Core | 8.0.8 | 8.0.10 |
| Microsoft.Extensions.Logging.Abstractions | 8.0.1 | 8.0.2 |
| Microsoft.Extensions.TimeProvider.Testing | 8.9.1 | 8.10.0 |
| MySql.Data | 9.0.0 | 9.1.0 |
| NHibernate.Extensions.Sqlite | 8.0.13 | 8.0.14 |
| Npgsql | 8.0.4 | 8.0.5 |
| Swashbuckle.AspNetCore | 6.8.0 | 6.9.0 |
| Swashbuckle.AspNetCore.Annotations | 6.8.0 | 6.9.0 |
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<PropertyGroup>
<Product>Baked (Objects)</Product>
<Version>0.11.2</Version>
<Version>0.12.0</Version>
<Authors>Mouseless</Authors>
<Company>Mouseless</Company>
<Copyright>Copyright (c) 2024 Mouseless</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void Apply(ActionModelContext context)
if (context.Action.MappedMethod.Has<InitializerAttribute>()) { return; }

var initializer = members.Methods.Having<InitializerAttribute>().Single();
var initilzerParameters = context.Action.Parameters.Where(p => !p.FromServices && !p.IsInvokeMethodParameter && (p.FromQuery || p.FromRoute));
context.Action.FindTargetStatement = $"target.{initializer.Name}({initilzerParameters.Select(p => $"{p.InternalName}: {p.RenderLookup($"@{p.Name}")}").Join(", ")})";
var initializerParameters = context.Action.Parameters.Where(p => initializer.DefaultOverload.Parameters.Contains(p.Id));
context.Action.FindTargetStatement = $"target.{initializer.Name}({initializerParameters.Select(p => $"{p.InternalName}: {p.RenderLookup($"@{p.Name}")}").Join(", ")})";
}
}
61 changes: 0 additions & 61 deletions unreleased.md
Original file line number Diff line number Diff line change
@@ -1,62 +1 @@
# Unreleased

## Features

- Beta features are available in Baked.Recipe.Service package;
- `RuntimeLayer`is added which merges the following layers:
- `Configuration`
- `DependencyInjection`
- `Monitoring`
- `Oracle` implementation of `Database` feature is now added
- `Cors` feature is now added with `AspNetCore` implementation
- `Reporting` feature is introduced with three implenmentations `NativeSql`
for production, `Mock` and `Fake` for development
- `DataSource` recipe is available which includes minimal features for a web
application that only reads data from given database
- `RichTransient` coding style feature is now added
- `NamespaceAsRoute` coding style is introduced where namespaces are directly
reflected to the endpoints routes

## Improvements

- `MockConfiguration` feature now clears `FakeSettings` list on teardown
- `MockMe.TheClient` helper now provides optional parameter to clear previous
invocations
- `ConfigureAction` and `OverrideAction` helpers are now added to configure
`RestApi.ActionModel` before and after conventions
- `Enum<T>` helper class is added to use enum values within `ValueSource`
attribute
- `DataAccess` layer now exposes `FluentConfiguration` as configuration target
- `DataAccess` layer now introduces `IDatabaseInitializerCollection`
configuration target for registering database initialization actions
- `IServiceProvider` now has `UseCurrentScope` extensions to resolve services
using the scope provided by `IServiceProviderAccessor` implementations
- `TestRun` now creates and disposes a scope for each test run to
- `Runtime` layer now provides `IFileProvider`component with
`CompositeFileProvider` implementation
- `ReadAsString` and `ReadAsStringAsync` helper extensions are now added for
`IFileProvider`
- `DomainAssemblies` feature now have options to auto add embedded file
providers for give assemblies
- `Dotnet` feature now adds embedded and physical file providers for given
entry assembly
- Async overloads for `ShouldPass` and `ShouldFail` are now available
- `Default` exception handler is renamed as `ProblemDetails`
- `ITextTransformer` is introduced in `Core` feature to allow business to make
use of `Humanizer` methods without depending on it

### Library Upgrades

| Package | Old Version | New Version |
| ----------------------------------------- | ----------- | ----------- |
| Oracle.ManagedDataAccess.Core | new | 23.5.1 |
| Microsoft.AspNetCore.Mvc.NewtonsoftJson | 8.0.8 | 8.0.10 |
| Microsoft.AspNetCore.Mvc.Testing | 8.0.8 | 8.0.10 |
| Microsoft.Data.Sqlite.Core | 8.0.8 | 8.0.10 |
| Microsoft.Extensions.Logging.Abstractions | 8.0.1 | 8.0.2 |
| Microsoft.Extensions.TimeProvider.Testing | 8.9.1 | 8.10.0 |
| MySql.Data | 9.0.0 | 9.1.0 |
| NHibernate.Extensions.Sqlite | 8.0.13 | 8.0.14 |
| Npgsql | 8.0.4 | 8.0.5 |
| Swashbuckle.AspNetCore | 6.8.0 | 6.9.0 |
| Swashbuckle.AspNetCore.Annotations | 6.8.0 | 6.9.0 |