Fable 6.0.0-beta.1

This is a prerelease version of Fable.
dotnet tool install --global Fable --version 6.0.0-beta.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Fable --version 6.0.0-beta.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Fable&version=6.0.0-beta.1&prerelease
                    
nuke :add-package Fable --version 6.0.0-beta.1
                    

Fable: F# |> JS

Nuget Build Join the chat at https://gitter.im/fable-compiler/Fable

Follow us on Twitter!

Fable is an F# to JavaScript compiler powered FSharp Compiler Services, designed to make F# a first-class citizen of the JavaScript ecosystem. Check the website for more information and if you find the project useful, don't forget to give us a star!

Fable actually uses a fork of FCS with a few tweaks. Binaries are in lib/fcs folder. See this PR for more info.

Getting started

Check this page.

Building

Requirements

Use VSCode Dev Container

You can use VSCode Dev Container to get a preconfigured environment both with requirements and VSCode extensions.

  1. You need to have docker installed and running.
  2. Install the Dev Container extension in VSCode
  3. Open the project in VSCode and click on the green button in the bottom left corner.
Use your machine

Make sure the following requirements are installed in your system:

Build

Run ./build.sh or ./build.cmd to see the build options.

When using VSCode, you can also run the build tasks from the command palette (Ctrl+Shift+P) by typing Run Task and selecting the task you want to run.

We also configured several debug configurations that you can use from the debug panel (Ctrl+Shift+D). This is useful as you can attach the debugger to the Fable compiler process to check what's going on.

Contributing

Just by using Fable you're already contributing! You can help the community a lot by sharing examples and experiences in your personal (or Fable's) blog and/or by editing the Fable Resources page.

Send bug reports (ideally with minimal code to reproduce the problem) and feature requests to this GitHub repository. To interact with the community you can use the Gitter chat but please note maintainers are not checking the chat regularly.

If you are up to contribute a fix or a feature yourself, you're more than welcome! Please send first an issue or a minimal Work In Progess PR so we can discuss the implementation details in advance.

List of changelogs

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
6.0.0-beta.1 63 12/4/2026
5.28.0 2,800 11/20/2026
5.27.0 9,024 11/4/2026
5.26.0 5,905 10/29/2026
5.25.0 2,110 10/29/2026
5.24.0 5,604 10/22/2026
5.23.0 764 10/21/2026
5.22.0 6,558 10/16/2026
5.21.0 1,246 10/12/2026
5.20.1 315 10/12/2026
5.20.0 2,936 10/7/2026
5.19.0 1,103 10/3/2026
5.18.0 13,402 9/25/2026
5.17.2 8,837 9/12/2026
5.17.1 446 9/12/2026
5.17.0 6,806 9/8/2026
5.16.0 2,466 9/3/2026
5.15.0 3,980 8/25/2026
5.14.0 377 8/25/2026
5.13.0 52,511 7/24/2026
Loading failed

### 🏗️ Breaking changes

* *(all)* Start Fable 6 beta pre-releases (#5401) ([8939e17d](https://github.com/fable-compiler/Fable/commit/8939e17d43c03e7ac3689290570b5b0d8de22b63))
* *(all)* Support `AllowOverloadOnReturnType` overloads (#5403) ([45e35e18](https://github.com/fable-compiler/Fable/commit/45e35e18da6bcaed844a11f6e179c4e266379dcb))

### 🚀 Features

* *(all)* Update FCS to latest (F# 11, commit [66187a](https://github.com/ncave/fsharp/commits/66187a30e8bb81d571f0244d4bd64405182ca219/)) (#5350) ([f52e9291](https://github.com/fable-compiler/Fable/commit/f52e9291fd44818f6cc56638f3df3e31eea09147))
* *(js/ts)* Warn when a date/time API drops sub-millisecond precision (#5339) ([8c1dcb33](https://github.com/fable-compiler/Fable/commit/8c1dcb33b9ec1136e331fe13d2b405c6a2e00a13))
* *(js/ts/python)* Support MailboxProcessor.TryReceive and Receive timeouts (#5360) ([dd4af742](https://github.com/fable-compiler/Fable/commit/dd4af742868b1ee1513f32a717ea47f102ea907b))

### 🐞 Bug Fixes

* Keep the output of a project's ancestor directories inside outDir (#5366) ([d89368b4](https://github.com/fable-compiler/Fable/commit/d89368b48e66adfb6a8b02145205aaed20f455cb))
* Compile struct tuple patterns inside array patterns (#5363) ([87155479](https://github.com/fable-compiler/Fable/commit/871554798fb9aa0a30ef9c07eb209a6bd79a4a9f))
* *(all)* Return the property members of an entity in a stable order (#5331) ([6055a941](https://github.com/fable-compiler/Fable/commit/6055a9417c620906a87b21cd67b54a06de25f5b9))
* *(all)* Rebuild string templates from F# 11 interpolation (#5353) ([fc54353a](https://github.com/fable-compiler/Fable/commit/fc54353af0bd2906ea88f1b00ca7d8eda65bcce8))
* *(all)* Rename repeated `InlineIfLambda` lambda copies (#5370) ([ab97efde](https://github.com/fable-compiler/Fable/commit/ab97efde179a5a7bd9a0ff6b8a23670b33785d54))
* *(all)* Update FCS-Fable to latest (#5390) ([1fa014d0](https://github.com/fable-compiler/Fable/commit/1fa014d0c3cb976480bf5e85d9b8507842ee3a51))
* *(all)* Use FCS built with --realsig- (#5391) ([88de25e0](https://github.com/fable-compiler/Fable/commit/88de25e05dddfff5a556ae7bf30a043e2a60ed9c))
* *(all)* Support struct record sources in spreads (#5355) ([b24fdd43](https://github.com/fable-compiler/Fable/commit/b24fdd431e1e208151131a746b432494e22d658b))
* *(js/ts)* Add `TimeSpan.MaxValue`, `UnixEpoch` and `TimeSpan.Equals` (#5333) ([c5e11cf5](https://github.com/fable-compiler/Fable/commit/c5e11cf5c659eec871bbd6906726b37c43c2ea0b))
* *(js/ts)* Validate `Regex` `count`, `startat` and timeout arguments (#5337) ([6aebb8f8](https://github.com/fable-compiler/Fable/commit/6aebb8f8b1bbe80ffd238db0d058fc6efe63dcca))
* *(js/ts)* Support `DateTime`/`DateTimeOffset` microsecond constructors (#5338) ([a8f8a711](https://github.com/fable-compiler/Fable/commit/a8f8a711490e21fa93773687b5c15ba2eade3867))
* *(js/ts)* Throw .NET exception types in `Dictionary`, add `TryAdd` (#5334) ([045539ad](https://github.com/fable-compiler/Fable/commit/045539ad25c414e697318ce7b6a2203e504ee836))
* *(js/ts)* Apply `reduceBack` from the last element (#5341) ([d6294872](https://github.com/fable-compiler/Fable/commit/d62948728a2ccd458237330545d491867ccc4250))
* *(js/ts)* Align tasks and cancellation with .NET (#5199) ([4c9a619d](https://github.com/fable-compiler/Fable/commit/4c9a619d3019e92cf6cddf14fd937737d7acdad2))
* *(js/ts)* Unwrap generic `Some null` and inline `.Value` (#5342) ([b7120c33](https://github.com/fable-compiler/Fable/commit/b7120c33357822df607fa9c22c3cf2a2b6dd70f9))
* *(js/ts)* Match .NET for `sprintf` float formats (#5400) ([4a2cc0fd](https://github.com/fable-compiler/Fable/commit/4a2cc0fdfc07d40b4b1d373a1c100442ab91c778))
* *(js/ts)* Match .NET for array errors and edge cases (#5404) ([9170a73a](https://github.com/fable-compiler/Fable/commit/9170a73a6c7b1893e3c2415ab7d6b1e5f5c1fe8a))
* *(js/ts/python)* Make MailboxProcessor disposable (#5364) ([306438b8](https://github.com/fable-compiler/Fable/commit/306438b87216259390b6e58515cd7a732733e1d4))
* *(js/ts/python)* Project each element once in sortBy (#5367) ([82f39c02](https://github.com/fable-compiler/Fable/commit/82f39c02ecdd5cdaa2f2755c17ea934dadb1e855))
* *(js/ts/python)* Support `[<ParamArray>]` in constructors (#5397) ([f4e74d22](https://github.com/fable-compiler/Fable/commit/f4e74d2242aa4eb9c4e65623d5856f986b872c89))
* *(js/ts/python/dart)* Keep the sign of `Set` hash (#5398) ([d24c70ba](https://github.com/fable-compiler/Fable/commit/d24c70baa2ebb46d0afb6ef5d6414f5bd607268e))
* *(js/ts/python/dart/beam)* Match only `System.Exception` in `Failure` (#5396) ([f3428a3a](https://github.com/fable-compiler/Fable/commit/f3428a3a1cabb75dfc53d52470b76e954c521c07))
* *(js/ts/python/dart/rust/beam)* Break min and max ties like FSharp.Core (#5198) ([bbba1dd1](https://github.com/fable-compiler/Fable/commit/bbba1dd11a6b51f9eec4c330795a22c097f2193a))
* *(python)* Match .NET in `Regex.Matches`, `Regex.Replace` and `Regex.Split` ([135b7343](https://github.com/fable-compiler/Fable/commit/135b7343616c5eea4f2861a24dce12032d16755e))
* *(python)* Make `_exprN`, `_arrowN`, `ObjectExprN` names deterministic (#5332) ([f0852781](https://github.com/fable-compiler/Fable/commit/f08527819cccf6b247fbdaa8765944a4b32a201e))
* *(python)* Draw what .NET draws from a seeded System.Random (#5357) ([7bccf4ee](https://github.com/fable-compiler/Fable/commit/7bccf4eed25875dae8b35e6a40fe37e2b6aec517))
* *(python)* Complete Stopwatch semantics and API (#5104) ([7442d683](https://github.com/fable-compiler/Fable/commit/7442d683f808411055c74e28caf0aee4bd2a2ae1))
* *(python)* Mix typed and generic arrays in `Array.append` and `concat` (#5393) ([82a46247](https://github.com/fable-compiler/Fable/commit/82a462478f6fc2507e1715a2edfda64826d97bfe))
* *(python)* Support Array.replicate (#5358) ([a7a05b90](https://github.com/fable-compiler/Fable/commit/a7a05b90da86702d91e90342d3d8a4de3ee7eb41))
* *(rust)* Support Console.Error.WriteLine (#5117) ([d7c27a6e](https://github.com/fable-compiler/Fable/commit/d7c27a6ed4cae43aebd4bb774a64bc04cc8cca48))
* *(rust)* Support more `TextWriter` members (#5387) ([87c71c7b](https://github.com/fable-compiler/Fable/commit/87c71c7bad93faa9552066057c0979662bc3b929))
* *(rust)* More Array tests (#5402) ([4bdc2558](https://github.com/fable-compiler/Fable/commit/4bdc25586e58cc5c4d8621364cc767761597f90a))
* *(ts)* Enable `isolatedModules`, `noPropertyAccessFromIndexSignature` and `noUncheckedSideEffectImports` ([ee8bf736](https://github.com/fable-compiler/Fable/commit/ee8bf7360be86fcb43727f13d7f914773a20bd6a))
* *(ts)* Enable `exactOptionalPropertyTypes` ([85127aff](https://github.com/fable-compiler/Fable/commit/85127aff55e57813ee4ec3b39bf1ea1cfb32174d))

### ⚡ Performance Improvements

* *(js/ts)* Emit `new Array(n).fill(x)` for `Array.zeroCreate` (#5335) ([53f56a39](https://github.com/fable-compiler/Fable/commit/53f56a397e51ad8afa9384e2cb75a820e5962c0a))
* *(js/ts)* Skip `setItem` bounds check in `Array` library loops (#5336) ([1cb28f76](https://github.com/fable-compiler/Fable/commit/1cb28f7650eee5c1afec0fe1e113e15157b0d28e))
* *(js/ts)* Use loops for `Array` functions on typed arrays (#5340) ([e62ba45f](https://github.com/fable-compiler/Fable/commit/e62ba45ff434936bed537dc3fadec9df4bf38153))
* *(js/ts)* Make `float` and `float32` to string faster (#5380) ([5b557dbf](https://github.com/fable-compiler/Fable/commit/5b557dbf914a987336d5dd53a48f0aa853d99c6d))
* *(js/ts)* Speed up structural `equals` and `compare` (#5381) ([8bbcf86b](https://github.com/fable-compiler/Fable/commit/8bbcf86b9dbae02684f26100fbc014cdc3c6297b))
* *(js/ts)* Keep the date format parser out of `sprintf` bundles (#5382) ([f2c34c18](https://github.com/fable-compiler/Fable/commit/f2c34c1846af3c14fc74084617802ebbe101ac1f))
* *(js/ts/python)* Parse the XML doc summary without a `Regex` (#5379) ([144c4ba7](https://github.com/fable-compiler/Fable/commit/144c4ba7308f4d514e0bf394d4a2f34438fcf72e))
* *(python)* Project keys once in `Array.sortBy`/`sortInPlaceBy` (#5395) ([573b4563](https://github.com/fable-compiler/Fable/commit/573b45631308cff8553a0a575d06ea8c1dad6305))

<strong><small>[View changes on Github](https://github.com/fable-compiler/Fable/compare/1b98e05f7319e14827edfa6a1c27db52e99ac766..9170a73a6c7b1893e3c2415ab7d6b1e5f5c1fe8a)</small></strong>