Skip to content

WebSharper 4.0 RC bugfix-1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Jand42 Jand42 released this 15 Sep 13:28
· 1621 commits to master since this release

WebSharper.4.0.190.100-rc

Fixes

  • #760 CompareTo and Equals works on number types, Char, String, Guid
  • #763 Additional methods working in translation for System.Array, System.Collections.Generic.List<T> , System.Threading.Tasks.Task and Task<T>, System.String, System.Guid, System.Char
  • #773 Fix translation failure when using Inline members of classes with a static constructor.

Enhancements

  • #771 Updated to latest FSharp.Compiler.Service (14.0.2)
  • #761 Type checks against interfaces translate to name checks. Default names of interface members contain the full type name, so that is guaranteed to be unique, can be shortened by using the Name attribute on the interface method definition, then it is recommended to name it something that is not used in the project for anything else.
  • #754 New feature for the JavaScript attribute: JavaScript "FileName/TypeName" on assembly level can annotate a file or type from outside of that file (useful when sharing code files with non-WebSharper projects). File names should contain no path and are case sensitive, type name must be exact FullName (for a nested generic type it can look like MyNamespace.MyClass+MyNestedClass`2).
  • #416 Enum comparison and equality translates to simple operators
  • #769 Translation errors are caught for individual members, so that better errors can be reported if there is any failure in the translation layer, as now should report the name and usually the source position of the failing members.
  • #764 EmbedAST is a new helper that allows inlining WebSharper AST values inside F# quotations to return from a Generator. Full mixability of JS strings, WS.AST and F# quotations coming soon, to make metaprogramming/code generation as easy as possible.