# WebSharper 9.1.4.586 released!

**URL:** <https://forum.devtalk.com/t/websharper-9-1-4-586-released/206274>\
**Category:** Backend Official News\
**Tags:** newsbot, websharper, official-news\
**Created:** [9 July 2025 15:23 UTC](https://forum.devtalk.com/t/websharper-9-1-4-586-released/206274 "2025-07-09T15:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewsBot](https://forum.devtalk.com/user_avatar/forum.devtalk.com/newsbot/32/1114_2.png) [@NewsBot](https://forum.devtalk.com/u/NewsBot)\
**Post date:** [9 July 2025 15:23 UTC](https://forum.devtalk.com/t/websharper-9-1-4-586-released/206274/1 "2025-07-09T15:23:43Z")

</div>

[WebSharper](https://devtalk.com/websharper) 9.1.4.586 has been released.

> [@](#):
>
> This is a minor release of WebSharper 9.1. NuGet version `9.1.4.586`.
> 
> Templates for .NET Core SDK: `dotnet new install WebSharper.Templates::9.1.4.586`
> 
> Web workers are now well supported by templates out of the box, including using npm or local script resource dependencies inside worker code. Test it by creating a worker async method:
> 
> ```fsharp
> [<JavaScript>]
> module WebWorker =
> let run(str: string) =
> let worker = new Worker(fun self ->
> self.OnMessage <- fun e ->
> self.PostMessage("[worker]: " + As<string> e.Data)
> )        
> async {
> let! res =
> Async.FromContinuations (fun (ok, err, cc) ->
> worker.OnMessage <- fun e -> ok (As<string> e.Data)
> worker.PostMessage(str)
> )
> worker.Terminate()
> return res
> }
> 
> ```
> 
> This will automatically create a `workers/MyProject.worker.js` script for the worker code, and call it when needed. Works for all project types (web, SPA, HTML), and both with vite and esbuild setup.
> 
> ## Enhancements
> 
> - #1483 Support for automatic bundling web worker files. Automatically generated web worker scripts will now be found under a `workers` directory inside `Scripts/WebSharper`, enabling bundler code to iterate on them to create final code. This allows using npm packages from web workers, which previously did not work. Web workers with dependencies will now work out of the box with the template updates with esbuild bundling.
> - #1488 More methods available for the StringBuilder proxy (constructor with string argument, `Chars`, `Length`, `Clear`, `Insert`, `Remove`, `Replace`).
> - #1487 If the `LoadScript` helper fails (used for loading non-module scripts in module contexts or from web workers), it will give a precise error.
> 
> ## Fixes
> 
> - #1482 Fixed a typo in `DedicatedWorkerGlobalScope.OnMesssage`
> - #1485 Fix inheriting from `BaseResource` to serve an `Embe…

Link: [Release WebSharper 9.1.4 · dotnet-websharper/core · GitHub](https://github.com/dotnet-websharper/core/releases/tag/9.1.4.586)
