-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from akkadotnet/dev
v0.10.0 Release
- Loading branch information
Showing
17 changed files
with
129 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
### 0.9.17 March 25 2021 #### | ||
* [Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.1](https://github.com/akkadotnet/Hyperion/pull/182) | ||
* [Fix unit test problem](https://github.com/akkadotnet/Hyperion/pull/191) | ||
* [Bump FSharp.Core from 4.7.2 to 5.0.0](https://github.com/akkadotnet/Hyperion/pull/189) | ||
* [Fix issue #40 regarding partial streams](https://github.com/akkadotnet/Hyperion/pull/185) | ||
* [Fix Hyperion not using known serializers when defined](https://github.com/akkadotnet/Hyperion/pull/184) | ||
* [Bump Microsoft.NET.Test.Sdk from 16.7.1 to 16.8.3](https://github.com/akkadotnet/Hyperion/pull/196) | ||
* [Bump System.Collections.Immutable from 1.7.1 to 5.0.0](https://github.com/akkadotnet/Hyperion/pull/195) | ||
* [Bump FSharp.Core from 5.0.0 to 5.0.1](https://github.com/akkadotnet/Hyperion/pull/202) | ||
* [Update the cross framework spec to include complex POCO object, Type serialization, and support for netcoreapp3.1 and net5.0](https://github.com/akkadotnet/Hyperion/pull/204) | ||
### 0.10.0 April 13 2021 #### | ||
* [Add a generic cross platform serialization support](https://github.com/akkadotnet/Hyperion/pull/208) | ||
|
||
# Cross platform serialization | ||
|
||
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. | ||
|
||
This short example shows how to address the change from `System.Drawing` in .NET Framework to `System.Drawing.Primitives` in .NET Core: | ||
|
||
``` | ||
Serializer serializer; | ||
#if NETFX | ||
serializer = new Serializer(new SerializerOptions( | ||
packageNameOverrides: new List<Func<string, string>> { | ||
str => str.Contains("System.Drawing.Primitives") ? str.Replace(".Primitives", "") : str | ||
})); | ||
#elif NETCOREAPP | ||
serializer = new Serializer(); | ||
#endif | ||
``` | ||
|
||
Note that only one package name transformation is allowed, any transform lambda function after the first applied transformation is ignored. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv2.0.tf
Binary file not shown.
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv2.1.tf
Binary file not shown.
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv2.2.tf
Binary file not shown.
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv3.0.tf
Binary file not shown.
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv3.1.tf
Binary file not shown.
Binary file modified
BIN
+450 Bytes
(160%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netcoreappversionv5.0.tf
Binary file not shown.
Binary file modified
BIN
+373 Bytes
(150%)
src/Hyperion.Tests/testfiles/mixed_test_file_.netframeworkversionv4.6.1.tf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters