We are preparing for stable release, reviewing all current issues and documentation. Beta-10 solves some old (reference equality for classes) and recent (
Systen.Char) issues reported. Look for VS2017 installer here (VS2015 support upcoming).
- #734 Classes now have reference equality by default (you can override
Equalsas in .NET). Arrays, tuples, F# records and unions still use structural equality
System.Charis now translated to a 1-length
Chars have been updated.
- #742 C# 7.1 features are working.
printf ""compiles properly.
Guid.Emptyis usable client-side.
- #547 Numeric conversions in C# have the same semantics as F# helpers (parsing numbers, integral types truncate but no size checks).
- #549 You can use padding numbers in C# string interpolation syntax.
- #739 fix assembly resolution on Mono to read runtime Sitelet mertadata.
Stubattribute behaves in compatibile way with WS3: if all members of a class have the
Stubattribute, it is equivalent to the class having it (WS does not redefine the type, it is assumed to exist in outside JS), but having any non-Stub instance members causes WS to define the class. This is fixing issues in WebSharper.JQuery.
- #545 Nullable operators with correct semantics. In F#, you can use the
FSharp.Linq.NullableOperatorsmodules on the client-side. C# operations on Nullables now follow .NET semantics properly: a
nullvalue is propagated to the result.
- #744 Static members can be proxied across multiple projects.
- If you have relied on classes having automatic structural equality in the WebSharper translation, this is now incorrect. Implement an override for
New . Previously this was equivalent to
obj(), but now the latter translates to an instance of
WebSharper.Objwhich defines its own
- Default hash value of classes are now always
-1. This should not be breaking, but if you use a class as keys or rely on hashing in any other way, be sure to override
GetHashCodeon your class for performance.
System.Decimalsupport has been removed from WebSharper main libraries. It is now a part of
WebSharper.MathJSand now has correct precision.