WebSharper 4 (codename Zafir) beta-2
Pre-release
Pre-release
Jand42
released this
14 Sep 09:27
·
2012 commits
to master
since this release
Improvements and new features
- #599: Improve error on an invalid annotation for an abstract method.
- #601: JS output improvements: local named functions are defined by
function X() {...}
instead ofvar x = function() {...}
. 2-case F# match expressions are simplified, as is matching against constants. - #600:
JS.Inline
helper insideWebSharper.JavaScript.Pervasives
(auto-open module in F#). Parses a JavaScript expression at compile-time, for exampleJS.Inline("1 + 2")
. You can also add parameters by using$0
... for holes:JS.Inline("$0 + $1", 1, 2)
. - #598: RPC functions are now identified by assembly, full name, and a hash of the signature instead of a generated identifier. This means reordering or adding RPC methods are not breaking against previous builds of client-side. Unrecognized incoming RPC request or non-maching signature errors are reported with specific errors.
Fixes
- #594: Enabled the use of
Json.Serialize
outside ASP.NET. - Support for translating from F#
ReflectedDefinition
correctly, accounting for tupling/currying added by the F# compiler.