Skip to content

WebSharper 4.5.1

Compare
Choose a tag to compare
@Tarmil Tarmil released this 29 Aug 16:16
· 1141 commits to master since this release

This is a minor release for WebSharper 4.5. See the associated WebSharper.UI release

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

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

Features

  • #1005: Add MouseEvent.Buttons property.
  • #1006: WIG: Add the capability to declare abstract classes and abstract and virtual methods.
  • #1016: Macros: Add NeedsTranslatedArguments property defaulting to false. If overridden to true, the arguments to the macro are translated before being passed to the macro.
  • As a result of #1016: the New macro now compiles to a plain JS object in more cases. In particular, it recognizes a list of members declared using a function call that inlines into a literal (string, obj) pair.
  • #1018: Add support for argument-less Nullable.GetValueOrDefault().

Bugfixes

  • #1010: Add empty WIG classes to the metadata, fixing VerifyRPC error.
  • #1015: Fix translation of let values in Stub modules.
  • #1017: Fix compilation of the C# ?? null-coalescing operator.