Skip to content

WebSharper 4.2.9

Compare
Choose a tag to compare
@Jand42 Jand42 released this 17 Apr 12:28
· 1300 commits to master since this release

This is a bugfix release for WebSharper 4.2. See the associated WebSharper.UI release.

Templates for .NET Core SDK: dotnet new -i WebSharper.Templates::4.2.9.232

Templates for Visual Studio 2017: http://websharper.com/installers/WebSharper.4.2.9.232.vsix

Enhancement

  • #921 Now JSON deserialization can handle the System.Object type, implemented as follows:
    • deserializing on the client side just returns the parsed value (ie. one of: null, a boolean, a string, a number, an array or a plain object).
    • deserializing on the server side produces a boxed value:
      • null, boolean, string return a value of the corresponding type.
      • number: returns a float (System.Double)
      • array: returns a recursively parsed obj[]
      • object: returns a recursively parsed Dictionary<string, obj>
    • serializing from System.Object is not supported. This is to avoid accidentally upcasting the argument of Json.Serialize to System.Object when a type annotation is missing.

Fixes

  • #935 Seq.chunkBySize and other similar functions does not fail erroneously on some inputs.
  • #934 If for a website project, there is no "outputdir" in ws.config or WebSharperOutputDir in project properties or a web.config file in the project folder, an explicit error is given that the unpack output directory cannot be determined.