Skip to content

WebSharper 4.2.13

Compare
Choose a tag to compare
@Jand42 Jand42 released this 13 Jun 15:15
· 1281 commits to master since this release

This is a feature release for WebSharper 4.2.

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

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

Enhancements

  • #954 More support for decimal, numeric conversions, abs, sign all work as expected on client-side. Referencing the WebSharper.MathJS nuget package is still needed for using decimals (as well as Complex and BigInteger), which is now have a version that is matching WebSharper package version because of tighter coupling.
  • #956 Added client-side support for DateTime.DaysInMonth/IsLeapYear.
  • #900 Added a new attribute called JavaScriptExport. This can be used to mark parts of code (members or whole types, files or assemblies) to be always included in JavaScript output for Bundle/BundleOnly projects (serving additional starting points for dead-code elimination next to SPAEntryPoint). Also SPAEntryPoint is now optional. See ticket #900 for full specification.
  • The JavaScript attribute has also got enhancements, same as JavaScriptExport:
    • You can now have multiple JavaScript attributes, this is useful on assembly-level for annotating multiple types/files remotely.
    • You can use a type as argument, for example [<JavaScript(typeof<MyType>)>]. This is equivalent to marking the type named with [<JavaScript>]. The attribute must be on the assembly or on a type/module that is containing the targeted type as a nested type.

Fixes

  • #953 Dictionary methods do not return undefined instead of false.