Skip to content

Commit 615d9d1

Browse files
Merge pull request #216 from akkadotnet/dev
Hyperion v0.10.1 Release
2 parents 7b6f992 + fbe7ece commit 615d9d1

File tree

11 files changed

+946
-30
lines changed

11 files changed

+946
-30
lines changed

Hyperion.sln

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27004.2005
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31112.23
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hyperion", "src\Hyperion\Hyperion.csproj", "{7AF8D2B6-9F1F-4A1C-8673-48E533108385}"
77
EndProject
@@ -19,7 +19,11 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Hyperion.Tests.FSharpData",
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hyperion.Benchmarks", "src\Hyperion.Benchmarks\Hyperion.Benchmarks.csproj", "{CAE2DB69-0BE7-4B11-96DB-D5B61D35607F}"
2121
EndProject
22-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hyperion.Tests", "src\Hyperion.Tests\Hyperion.Tests.csproj", "{EA096BA2-3B4C-4878-B9AD-5A88D164EBF0}"
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hyperion.Tests", "src\Hyperion.Tests\Hyperion.Tests.csproj", "{EA096BA2-3B4C-4878-B9AD-5A88D164EBF0}"
23+
EndProject
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hyperion.Akka.Integration.Tests", "src\Hyperion.Akka.Integration.Tests\Hyperion.Akka.Integration.Tests.csproj", "{3DA946AF-0CCD-49A9-AA77-67FA515A83EE}"
25+
EndProject
26+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hyperion.API.Tests", "src\Hyperion.API.Tests\Hyperion.API.Tests.csproj", "{767FBBD2-869C-4AAD-ABF4-F23EC0D381AA}"
2327
EndProject
2428
Global
2529
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -43,6 +47,14 @@ Global
4347
{EA096BA2-3B4C-4878-B9AD-5A88D164EBF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
4448
{EA096BA2-3B4C-4878-B9AD-5A88D164EBF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
4549
{EA096BA2-3B4C-4878-B9AD-5A88D164EBF0}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{3DA946AF-0CCD-49A9-AA77-67FA515A83EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{3DA946AF-0CCD-49A9-AA77-67FA515A83EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{3DA946AF-0CCD-49A9-AA77-67FA515A83EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{3DA946AF-0CCD-49A9-AA77-67FA515A83EE}.Release|Any CPU.Build.0 = Release|Any CPU
54+
{767FBBD2-869C-4AAD-ABF4-F23EC0D381AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
55+
{767FBBD2-869C-4AAD-ABF4-F23EC0D381AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
56+
{767FBBD2-869C-4AAD-ABF4-F23EC0D381AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
57+
{767FBBD2-869C-4AAD-ABF4-F23EC0D381AA}.Release|Any CPU.Build.0 = Release|Any CPU
4658
EndGlobalSection
4759
GlobalSection(SolutionProperties) = preSolution
4860
HideSolutionNode = FALSE

RELEASE_NOTES.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,2 @@
1-
### 0.10.0 April 13 2021 ####
2-
* [Add a generic cross platform serialization support](https://github.com/akkadotnet/Hyperion/pull/208)
3-
4-
# Cross platform serialization
5-
6-
You can now address any cross platform package serialization differences by providing a list of package name transformation lambda function into the `SerializerOptions` constructor. The package name will be passed into the lambda function before it is deserialized, and the result of the string transformation is used for deserialization instead of the original package name.
7-
8-
This short example shows how to address the change from `System.Drawing` in .NET Framework to `System.Drawing.Primitives` in .NET Core:
9-
10-
```
11-
Serializer serializer;
12-
#if NETFX
13-
serializer = new Serializer(new SerializerOptions(
14-
packageNameOverrides: new List<Func<string, string>> {
15-
str => str.Contains("System.Drawing.Primitives") ? str.Replace(".Primitives", "") : str
16-
}));
17-
#elif NETCOREAPP
18-
serializer = new Serializer();
19-
#endif
20-
```
21-
22-
Note that only one package name transformation is allowed, any transform lambda function after the first applied transformation is ignored.
1+
### 0.10.1 April 20 2021 ####
2+
* [Fix SerializerOptions constructor backward compatibility issue with Akka.NET](https://github.com/akkadotnet/Hyperion/pull/214)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Linq;
3+
using System.Runtime.CompilerServices;
4+
using ApprovalTests;
5+
using ApprovalTests.Reporters;
6+
using PublicApiGenerator;
7+
using Xunit;
8+
9+
namespace Hyperion.API.Tests
10+
{
11+
#if(DEBUG)
12+
[UseReporter(typeof(DiffReporter), typeof(AllFailingTestsClipboardReporter))]
13+
#else
14+
[UseReporter(typeof(DiffReporter))]
15+
#endif
16+
public class CoreApiSpec
17+
{
18+
[Fact]
19+
[MethodImpl(MethodImplOptions.NoInlining)]
20+
public void ApproveApi()
21+
{
22+
var publicApi = Filter(typeof(Serializer).Assembly.GeneratePublicApi());
23+
Approvals.Verify(publicApi);
24+
}
25+
26+
static string Filter(string text)
27+
{
28+
return string.Join(Environment.NewLine, text.Split(new[]
29+
{
30+
Environment.NewLine
31+
}, StringSplitOptions.RemoveEmptyEntries)
32+
.Where(l =>
33+
!l.StartsWith("[assembly: ReleaseDateAttribute(")
34+
&& !l.StartsWith("[assembly: System.Security")
35+
&& !l.StartsWith("[assembly: System.Runtime.Versioning.TargetFramework("))
36+
.Where(l => !string.IsNullOrWhiteSpace(l))
37+
);
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)