Skip to content

Commit 72d6188

Browse files
Merge pull request #94 from akkadotnet/dev
v0.9.8 production release
2 parents 84eb198 + b596a93 commit 72d6188

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

RELEASE_NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 0.9.8 January 31 2018 ####
2+
**Maintenance release for Hyperion v0.9.***
3+
This small patch conists of the following bug fixes to Hyperion v0.9.* branch:
4+
5+
* [Support for FSharpSet<T>](https://github.com/akkadotnet/Hyperion/pull/92)
6+
17
### 0.9.7 January 18 2018 ####
28
**Maintenance release for Hyperion v0.9.***
39

src/Hyperion.Tests/FSharpTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ public void CanSerializeFSharpList()
4444
Assert.Equal(expected, actual);
4545
}
4646

47+
[Fact]
48+
public void CanSerializeFSharpSet()
49+
{
50+
var expected = SetModule.OfArray(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 });
51+
Serialize(expected);
52+
Reset();
53+
var actual = Deserialize<object>();
54+
Assert.Equal(expected, actual);
55+
}
56+
4757
[Fact]
4858
public void CanSerializeSimpleDU()
4959
{

src/Hyperion/SerializerFactories/EnumerableSerializerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public override ValueSerializer BuildSerializer(Serializer serializer, Type type
139139

140140
Func<object, int> countGetter = o => (int)countProperty.GetValue(o);
141141
ObjectReader reader = null;
142-
if (addMethod != null)
142+
if (HasParameterlessConstructor(type) && addMethod != null)
143143
{
144144
var add = CompileMethodToDelegate(addMethod, type, elementType);
145145
reader = (stream, session) =>

src/common.props

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
<PropertyGroup>
33
<Copyright>Copyright © 2016-2017 Akka.NET Team</Copyright>
44
<Authors>Akka.NET Team</Authors>
5-
<VersionPrefix>0.9.7</VersionPrefix>
6-
<PackageReleaseNotes>Maintenance release for Hyperion v0.9.0**
7-
This patch mostly contains bugfixes and enhancements to the existing Hyperion v0.9.* branch. No major API changes have been made.
8-
[EnumerableSerializeFactory fixes](https://github.com/akkadotnet/Hyperion/pull/81)
9-
[Fix: ObjectDisposedException cannot be deserialized](https://github.com/akkadotnet/Hyperion/issues/64)
10-
[Added support for DateTimeOffset as a primitive](https://github.com/akkadotnet/Hyperion/pull/79)
11-
You can [see the full set of changes for Hyperion v0.9.7 here](https://github.com/akkadotnet/Hyperion/milestone/5).</PackageReleaseNotes>
5+
<VersionPrefix>0.9.8</VersionPrefix>
6+
<PackageReleaseNotes>Maintenance release for Hyperion v0.9.***
7+
This small patch conists of the following bug fixes to Hyperion v0.9.*:
8+
[Support for FSharpSet&lt;T&gt;](https://github.com/akkadotnet/Hyperion/pull/92)</PackageReleaseNotes>
129
<PackageIconUrl>http://getakka.net/images/akkalogo.png</PackageIconUrl>
1310
<PackageProjectUrl>https://github.com/akkadotnet/Hyperion</PackageProjectUrl>
1411
<PackageLicenseUrl>https://github.com/akkadotnet/Hyperion/blob/master/LICENSE</PackageLicenseUrl>

0 commit comments

Comments
 (0)