comment
Here comes another release of WebSharper 3.0 alpha! This release focuses on small fixes and improvements, as well as a couple new proxies for useful classes such as System.Random and System.Guid.
Changes
Improvements:
- WIG: The
(?)operator for naming a method argument now properly overrides the JavaScript field access operator. This means that you can nowopen IntelliFactory.WebSharper.JavaScriptin a WIG project, provided that you do it beforeopen IntelliFactory.WebSharper.InterfaceGenerator. - Added xml documentation for attributes and sitelets.
- Added
Sitelets.UserSession.LoginPersistentto create login sessions that persist beyond the current browser session. - Added client-side
Remoting.UseHttps()which forces all RPC calls to use HTTPS.
New proxies:
The following classes and methods can now be used from the client side.
System.RandomSystem.GuidSystem.String.TrimStart/End
Fixes:
- Fix #315:
Sitelet.Protectlogin redirect now usesRedirectTemporaryinstead ofRedirect. - Fix #322: Compile-time error when a project's
NameandAssemblyNameare different. - Fix #323: Fields for primary constructor arguments shadow inherited ones
- Fix #325: Add
Console.Logoverload with a single argument
Future plans
We have two final major changes to push for WebSharper 3.0, which affect the typing conventions for tupled and multiple argument functions (see the work in progress) and the interface generator API. Our current plan is to have another alpha release for this (and other, smaller changes), and ideally to release the first stable version of WebSharper 3.0 before the end of February.
Happy coding!






