Skip to content

Commit

Permalink
Nuget publish
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyBP committed Feb 15, 2022
1 parent 83c3702 commit 8e2b9cb
Show file tree
Hide file tree
Showing 29 changed files with 177 additions and 128 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Apizr</RootNamespace>
</PropertyGroup>

Expand All @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="10.1.1" />
<PackageReference Include="AutoMapper" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Apizr</RootNamespace>
</PropertyGroup>

Expand All @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>Apizr</RootNamespace>
</PropertyGroup>

Expand Down
11 changes: 7 additions & 4 deletions Apizr/Docs/Apizr.Docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- [New] [Logging] Now fully relies on **MS Logging extensions**
- [New] [Logging] Static fluent configuration now offers a **WithLoggerFactory option** to provide a custom logger factory
- [BreakingChange] [Logging] TraceAttribute has been **renamed back to LogAttribute**
- [Breaking] [Logging] TraceAttribute has been **renamed back to LogAttribute**
- [New] [Logging] Now we can set logging settings within **LogAttribute at method level**
- [New] [Logging] Now we can set **http tracing mode within LogAttribute** to ajust log writting conditions (ExceptionsOnly, ErrorsAndExceptionsOnly or Everything)
- [New] [Logging] **No more HttpTracer NuGet package dependency** as source code has been integrated and largely adjusted to Apizr needs
Expand Down Expand Up @@ -34,25 +34,28 @@

### Apizr.Integrations.MediatR

- [Breaking] Now **Apizr.Integrations.MediatR targets .Net Standard 2.1** as MediatR v10+ does
- [New] Now we can let Apizr **auto map data** right before sending request and/or after recieving response **by providing types on Apizr mediators Send call**
- [New] Brand **new IApizrMediator & IApizrCrudMediator interfaces** to get things shorter than IMediator
- [New] Now we can ask for **clearing request cache before executing**
- [New] Brand new **onException Action parameter to handle it globally** (e.g. user dialog/toast) and let potential cached data return to caller as expected (e.g. refreshing UI)

### Apizr.Integrations.Optional

- [Breaking] Now **Apizr.Integrations.Optional targets .Net Standard 2.1** as Apizr.Integrations.MediatR v4+ does
- [New] Now we can let Apizr **auto map data** right before sending request and/or after recieving response **by providing types on Apizr optional mediators Send call**
- [New] Brand **new IApizrOptionalMediator & IApizrCrudOptionalMediator interfaces** to get things shorter than IMediator
- [New] Now we can ask for **clearing request cache before executing**

### Apizr.Integrations.AutoMapper

- [Breaking] Now **Apizr.Integrations.AutoMapper targets .Net Standard 2.1** as AutoMapper v11+ does
- [New] Now we can register AutoMapper directly with the brand new **WithAutoMapperMappingHandler option**
- [Improvement] **No more extended package dependency** to enjoy data mapping with both static and extended configurations

### ~~Apizr.Integrations.Shiny~~

- [BreakingChange] This integration **project has been dropped out** as Shiny no longer provide built-in caching and logging feature anymore. Apizr now either relies on MS Caching extensions, Akavache or MonkeyCache for caching feature and MS Logging extensions for logging feature. You'll have to provide a connectivity handler if you want Apizr to check it.
>[!WARNING]**Apizr.Integrations.Shiny has been discontinued**
>
>This integration project has been dropped out as Shiny no longer provide built-in caching and logging feature anymore. Apizr now either relies on MS Caching extensions, Akavache or MonkeyCache for caching feature and MS Logging extensions for logging feature. You'll have to provide a connectivity handler if you want Apizr to check it.
3.0 (current)
---
Expand Down
22 changes: 11 additions & 11 deletions Apizr/Docs/Apizr.Docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ Refit based web api client, but resilient (retry, connectivity, cache, auth, log

[Change Log - Mar 12, 2021 (with v4 changes)](changelog.md)

|Project|NuGet|
|-------|-----|
|Apizr|[![NuGet](https://img.shields.io/nuget/v/Apizr.svg)](https://www.nuget.org/packages/Apizr/)|
|Apizr.Extensions.Microsoft.DependencyInjection|[![NuGet](https://img.shields.io/nuget/v/Apizr.Extensions.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.DependencyInjection/)|
|Apizr.Extensions.Microsoft.Caching|[![NuGet](https://img.shields.io/nuget/v/Apizr.Extensions.Microsoft.Caching.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.Caching/)|
|Apizr.Integrations.Akavache|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Akavache.svg)](https://www.nuget.org/packages/Apizr.Integrations.Akavache/)|
|Apizr.Integrations.MonkeyCache|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.MonkeyCache.svg)](https://www.nuget.org/packages/Apizr.Integrations.MonkeyCache/)|
|Apizr.Integrations.Fusillade|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Fusillade.svg)](https://www.nuget.org/packages/Apizr.Integrations.Fusillade/)|
|Apizr.Integrations.MediatR|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.MediatR.svg)](https://www.nuget.org/packages/Apizr.Integrations.MediatR/)|
|Apizr.Integrations.Optional|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Optional.svg)](https://www.nuget.org/packages/Apizr.Integrations.Optional/)|
|Apizr.Integrations.AutoMapper|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.AutoMapper.svg)](https://www.nuget.org/packages/Apizr.Integrations.AutoMapper/)|
|Project|Current|V-Next|
|-------|-----|-----|
|Apizr|[![NuGet](https://img.shields.io/nuget/v/Apizr.svg)](https://www.nuget.org/packages/Apizr/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.svg)](https://www.nuget.org/packages/Apizr/)|
|Apizr.Extensions.Microsoft.DependencyInjection|[![NuGet](https://img.shields.io/nuget/v/Apizr.Extensions.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.DependencyInjection/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Extensions.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.DependencyInjection/)|
|Apizr.Extensions.Microsoft.Caching|[![NuGet](https://img.shields.io/nuget/v/Apizr.Extensions.Microsoft.Caching.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.Caching/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Extensions.Microsoft.Caching.svg)](https://www.nuget.org/packages/Apizr.Extensions.Microsoft.Caching/)|
|Apizr.Integrations.Akavache|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Akavache.svg)](https://www.nuget.org/packages/Apizr.Integrations.Akavache/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.Akavache.svg)](https://www.nuget.org/packages/Apizr.Integrations.Akavache/)|
|Apizr.Integrations.MonkeyCache|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.MonkeyCache.svg)](https://www.nuget.org/packages/Apizr.Integrations.MonkeyCache/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.MonkeyCache.svg)](https://www.nuget.org/packages/Apizr.Integrations.MonkeyCache/)|
|Apizr.Integrations.Fusillade|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Fusillade.svg)](https://www.nuget.org/packages/Apizr.Integrations.Fusillade/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.Fusillade.svg)](https://www.nuget.org/packages/Apizr.Integrations.Fusillade/)|
|Apizr.Integrations.MediatR|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.MediatR.svg)](https://www.nuget.org/packages/Apizr.Integrations.MediatR/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.MediatR.svg)](https://www.nuget.org/packages/Apizr.Integrations.MediatR/)|
|Apizr.Integrations.Optional|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.Optional.svg)](https://www.nuget.org/packages/Apizr.Integrations.Optional/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.Optional.svg)](https://www.nuget.org/packages/Apizr.Integrations.Optional/)|
|Apizr.Integrations.AutoMapper|[![NuGet](https://img.shields.io/nuget/v/Apizr.Integrations.AutoMapper.svg)](https://www.nuget.org/packages/Apizr.Integrations.AutoMapper/)|[![NuGet Pre Release](https://img.shields.io/nuget/vpre/Apizr.Integrations.AutoMapper.svg)](https://www.nuget.org/packages/Apizr.Integrations.AutoMapper/)|

Install the NuGet package of your choice:

Expand Down
8 changes: 8 additions & 0 deletions Apizr/Docs/Apizr.Docs/log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-08T13:32:32.8944536Z","message_severity":"warning","correlation_id":"1D35198C-CE39-42BB-B6F3-8BD4566700FF.1.1.9"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-09T13:06:36.0161801Z","message_severity":"warning","correlation_id":"928F2F74-7954-48A8-98C0-A8C7DFBAAFFF.1.1.9"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-09T13:10:17.9436825Z","message_severity":"warning","correlation_id":"4236D2EE-6BF0-49F3-8D34-6B54135C62D6.1.1.9"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-15T13:06:41.1123733Z","message_severity":"warning","correlation_id":"79FA6784-0226-405A-92BE-BF2370A19AD3.1.1.9"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-15T13:09:35.7254405Z","message_severity":"warning","correlation_id":"757014BA-DEE4-48D2-B4F4-28FEF095F053.1.1.9"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-15T13:20:17.8840777Z","message_severity":"warning","correlation_id":"C365158A-0C61-4444-8BDB-A9432FC5AFB7.1.1.9"}
{"message":"The content part of NOTE/WARNING/CAUTION/IMPORTANT/NEXT syntax is suggested to start in a new line.","source":"BuildCommand.BuildCore.Build Document.CompilePhaseHandlerWithIncremental.ConceptualDocumentProcessor.Build.BuildConceptualDocument","file":"changelog.md","line":"56","date_time":"2022-02-15T13:20:20.8564249Z","message_severity":"warning","code":"MissingNewLineBelowSectionHeader","correlation_id":"C365158A-0C61-4444-8BDB-A9432FC5AFB7.2.181.1.31.15.2.3.854"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-15T13:21:57.0335251Z","message_severity":"warning","correlation_id":"3AAC57B1-C455-4B1E-8BAD-43C8A4BB495B.1.1.9"}
{"message":"The content part of NOTE/WARNING/CAUTION/IMPORTANT/NEXT syntax is suggested to start in a new line.","source":"BuildCommand.BuildCore.Build Document.CompilePhaseHandlerWithIncremental.ConceptualDocumentProcessor.Build.BuildConceptualDocument","file":"changelog.md","line":"56","date_time":"2022-02-15T13:22:00.1545192Z","message_severity":"warning","code":"MissingNewLineBelowSectionHeader","correlation_id":"3AAC57B1-C455-4B1E-8BAD-43C8A4BB495B.2.181.1.31.14.2.3.851"}
{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Dev\\Community\\Apizr\\Apizr\\Apizr.Extensions.Microsoft.DependencyInjection\\Apizr.Extensions.Microsoft.DependencyInjection.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Dev/Community/Apizr/Apizr/Apizr.Extensions.Microsoft.Caching/Apizr.Extensions.Microsoft.Caching.csproj","date_time":"2022-02-15T13:24:26.0431213Z","message_severity":"warning","correlation_id":"2117AF3E-34AA-4281-B712-16A7E0D4A98A.1.1.9"}
{"message":"The content part of NOTE/WARNING/CAUTION/IMPORTANT/NEXT syntax is suggested to start in a new line.","source":"BuildCommand.BuildCore.Build Document.CompilePhaseHandlerWithIncremental.ConceptualDocumentProcessor.Build.BuildConceptualDocument","file":"changelog.md","line":"56","date_time":"2022-02-15T13:24:28.743913Z","message_severity":"warning","code":"MissingNewLineBelowSectionHeader"}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="fusillade" Version="2.4.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
<Version>2.4.3.3003</Version>
</PackageReference>
<PackageReference Include="Shiny.Extensions.Dialogs.XfMaterial">
<Version>2.0.0.131</Version>
<Version>2.1.0.151</Version>
</PackageReference>
<PackageReference Include="Shiny.Framework">
<Version>2.0.0.131</Version>
<Version>2.1.0.151</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.RecyclerView">
<Version>1.2.1.3</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@
<Version>2.4.3.3003</Version>
</PackageReference>
<PackageReference Include="Shiny.Extensions.Dialogs.XfMaterial">
<Version>2.0.0.131</Version>
<Version>2.1.0.151</Version>
</PackageReference>
<PackageReference Include="Shiny.Framework">
<Version>2.0.0.131</Version>
<Version>2.1.0.151</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials.Interfaces" Version="1.7.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

<ItemGroup>
<PackageReference Include="Acr.UserDialogs" Version="7.2.0.562" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="9.0.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
<PackageReference Include="Refit.Newtonsoft.Json" Version="6.3.2" />
<PackageReference Include="Shiny" Version="2.4.3.3003" />
<PackageReference Include="Shiny.Extensions.Dialogs.XfMaterial" Version="2.0.0.131" />
<PackageReference Include="Shiny.Framework" Version="2.0.0.131" />
<PackageReference Include="Shiny.Extensions.Dialogs.XfMaterial" Version="2.1.0.151" />
<PackageReference Include="Shiny.Framework" Version="2.1.0.151" />
<PackageReference Include="Xamarin.Essentials.Interfaces" Version="1.7.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions Apizr/Samples/Apizr.Sample.MAUI/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public static MauiApp CreateMauiApp()
var services = builder.Services;

// Mvvm
services.AddSingleton<MainPage>();
services.AddSingleton<MainPageViewModel>();
services.AddTransient<MainPage>();
services.AddTransient<MainPageViewModel>();
services.AddSingleton<INavigationService, NavigationService>();

// Apizr
Expand Down
2 changes: 1 addition & 1 deletion Apizr/Samples/Apizr.Sample/Apizr.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Apizr/Tests/Apizr.Tests/Apizr.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
<PackageReference Include="FluentAssertions" Version="6.4.0" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MonkeyCache.FileStore" Version="1.5.2" />
Expand Down
Loading

0 comments on commit 8e2b9cb

Please sign in to comment.