Skip to content

Latest commit

 

History

History
492 lines (301 loc) · 29.3 KB

CHANGELOG.md

File metadata and controls

492 lines (301 loc) · 29.3 KB
last_commit_released 1b98e05f7319e14827edfa6a1c27db52e99ac766
updaters
package.json
file
package.json
regex
file pattern
./../Fable.Transforms/Global/Compiler.fs
(?<=let JS_LIBRARY_VERSION = ").*(?=")

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

2.13.1 - 2026-11-20

🐞 Bug Fixes

  • (all) Pass defaults for DefaultValue fields to ctors (#5267) (cc94c9cc)
  • (all) groupBy and countBy with NaN keys (#5307) (d422d3d2)
  • (all) Match .NET for float ranges with a step (#5310) (2b5aa6e3)
  • (all) Distinguish delegates in overload suffixes (#5274) (40bd93ca)
  • (all) Name anonymous record types in reflection (#5322) (bb8f745e)
  • (all) Stop integer ranges at the bounds of their type (#5324) (e9c68b6b)
  • (js/ts) Keep TimeSpan.Ticks exact for big values (#5250) (3c1cea99)
  • (js/ts) IReadOnlyList indexer and failed Regex match members (#5301) (0adb969d)
  • (js/ts) string and ToString() on DateTimeOffset like .NET (#5308) (4f1c7016)
  • (js/ts) Throw OverflowException in abs and pown (#5309) (e7333e81)
  • (js/ts) Make String.Replace and ignore-case comparisons match .NET (#5283) (a29dbb69)
  • (js/ts) Reject integer formats .NET rejects (#5273) (f6144e89)
  • (js/ts) Support NumberStyles in BigInteger parsing (#5276) (e3a5cc50)
  • (js/ts) Follow NumberStyles in integer Parse and Convert (#5313) (0506b4b5)
  • (js/ts) Add Regex group members, .NET group order (#5314) (103875f6)
  • (js/ts) Regex.Matches/Split hang and startat like .NET (#5320) (a62efd32)
  • (js/ts) Keep Char.ToUpper/ToLower to one char like .NET (#5319) (235bb0ff)
  • (js/ts/python) Handle cyclic records in formatting (#5298) (78a006a5)
  • (js/ts/python) Support Option.count and Match.NextMatch (#5300) (22a8ee46)
  • (js/ts/python/beam) Make a failed Regex.Match behave like Match.Empty (#5321) (1644eeb7)

View changes on Github

2.13.0 - 2026-11-03

🚀 Features

  • (js/ts/python/dart/rust/beam) Support Convert.ToHexString, ToHexStringLower and FromHexString (#5204) (3a3acf4e)

🐞 Bug Fixes

  • (js/ts) Round float32 results like .NET (#5222) (7b176e7e)
  • (js/ts) Unescape doubled braces in String.Format (#5231) (24e01fd3)
  • (js/ts) Treat null as empty in String.Join and Concat (#5230) (a7dcab8d)
  • (js/ts) Support MidpointRounding in Math.Round (#5233) (5a7ea990)
  • (js/ts) Print null strings as empty (6c22c162)
  • (js/ts) Round exact midpoints to even in numeric formats (#5245) (350a3900)
  • (js/ts) Round Math.Round ties on the exact value (#5254) (8014fb20)
  • (js/ts) Write floats like .NET's ToString (#5246) (c958156c)
  • (js/ts) Keep format of interpolated StringFormat (#5248) (03712db9)
  • (js/ts) Evaluate reflection parents lazily (#5243) (7d46c714)
  • (js/ts/python/dart/rust/beam) Use FSharp.Core's algorithms for random collection functions (#5197) (dd860cc1)

View changes on Github

2.12.0 - 2026-10-29

🚀 Features

  • (js/ts) Support the "R" numeric format and choose "G" notation like .NET (#5212) (24d9c41a)
  • (js/ts/python/dart/beam) Support ArgumentException.ParamName (#5203) (8ed77788)

View changes on Github

2.11.0 - 2026-10-29

🚀 Features

  • (js/ts/python/dart/beam) Support System.Array.BinarySearch and ResizeArray.BinarySearch (#5172) (d332e7d4)

🐞 Bug Fixes

  • (all) Accept RegexOptions.NonBacktracking (#5178) (a61ec8a1)
  • (js/ts) Format DateTimeOffset in its own offset (#5171) (04ddbd20)
  • (js/ts) Support %o in sprintf and interpolated strings (#5175) (e13e7b0f)
  • (js/ts) Parse numbers like .NET and raise its exception types (#5200) (82e606e9)
  • (js/ts) Honor NumberStyles when parsing floats (#5217) (82b935f3)
  • (js/ts/python/dart/beam) Raise typed exceptions from invalidArg and invalidOp (60f2f5b9)
  • (js/ts/python/dart/beam) Align collection exception types with FSharp.Core (#5153) (7d7ceb33)
  • (js/ts/python/dart/beam) Add FSharp.Core's argument checks to collection functions (#5154) (5185e654)

⚡ Performance Improvements

  • (js/ts) Standard library combine numeric hash from snapshot of object instead of mapping (#5151) (44495104)
  • (js/ts) Standard library remove .map result array from record hash using snapshot (#5150) (0ceb5e9e)
  • (js/ts) Standard library one pass List.append builder (#5148) (2ed9d6dd)
  • (js/ts) List node as a class with a shared empty node (#5185) (187f8985)
  • (js/ts) Check array bounds only on undefined reads (#5188) (435fc0bb)
  • (js/ts) Closure-free ref cells and out-arg value cells (#5189) (91bca925)
  • (js/ts) Keep the curried original on its adapter (#5191) (bfb4a2a4)
  • (js/ts) Walk arrays by index when enumerated as seq (#5192) (d88621c3)
  • (js/ts) Hash unions without allocating (#5195) (2b66a5d2)
  • (js/ts) Probe dictionary buckets without allocating (#5196) (9517eafd)

View changes on Github

2.10.0 - 2026-10-22

🚀 Features

  • (js/ts) Support System.Diagnostics.Stopwatch (#5100) (eb68225f)

🐞 Bug Fixes

  • (js/ts) Round decimals below 0.1 correctly (fca4c408)
  • (js/ts) Keep decimal zero scale without leading zeros (3076b45a)
  • (js/ts) Hash decimals by value in collections (32a69e0d)
  • (js/ts) Keep .NET decimal scale through arithmetic (#5126) (bdf0a6c8)
  • (js/ts) Accept decimal integers up to 2^96 (c9feb339)
  • (js/ts) Align decimal conversion, parsing and G format (6430cdac)
  • (js/ts) Add missing Async and Task members, cancel timed-out StartChild, bind Async in task { } (#5097) (d063630d)
  • (js/ts) Respect maxDegreeOfParallelism and cancel on failure in Async.Parallel (#5098) (5de3271d)

View changes on Github

2.9.0 - 2026-10-16

🚀 Features

  • (js/ts/python/beam) Support Async.TryCancelled (#5083) (1643297d)

🐞 Bug Fixes

  • (js/ts) Avoid full array copy in Encoding.GetString (#5069) (e6b72ec7)
  • (js/ts/python) Preserve cancelled cleanup and generic unit callbacks (#5062) (5dd6b497)

View changes on Github

2.8.1 - 2026-10-12

🐞 Bug Fixes

  • (js/ts/python) Synchronize cancellation registrations (#5036) (07db576c)
  • (js/ts/python) Settle cancelled delays and finalizers once (#5038) (a9802484)

View changes on Github

2.8.0 - 2026-09-25

🐞 Bug Fixes

  • (js/ts) Fix Dictionary.Remove and HashSet.Remove to remove empty buckets (#4985) (aea61b56)
  • (js/ts) Clear custom System.Collections.IList implementations (2369fbd2)

⚡ Performance Improvements

  • (js/ts) Faster resizeArray.Clear() in JS/TS (32d85add)

View changes on Github

2.7.1 - 2026-09-11

🐞 Bug Fixes

  • (js/ts) Keep the sign of negative decimals below 0.1 (91d80f18)
  • (js/ts) Respect the precision when formatting decimals below 0.1 (1c02557e)
  • (js/ts) Omit the decimal sign when the rounded result is zero (ef63087d)

View changes on Github

2.7.0 - 2026-09-08

🚀 Features

  • Add Temporal dates and times (opt-in) (#4759) (3e8f56f7)

🐞 Bug Fixes

  • (js/ts) Match .NET for G, E and custom numeric formats (6fb03090)
  • (js/ts) Allow the E format specifier on Int64 and UInt64 (c49d1ec5)

View changes on Github

2.6.0 - 2026-09-03

🚀 Features

  • (all) Quotations: DerivedPatterns, and captured locals as Value nodes (#4919) (fae5093f)

🐞 Bug Fixes

  • (all) Emit instance calls for virtual methods inherited from Object (#4926) (2fb535a7)

View changes on Github

2.5.1 - 2026-07-24

🐞 Bug Fixes

  • (js/ts,python) Inline Option/ValueOption combinators to avoid closures and allocations (#4836) (61cac646)

View changes on Github

2.5.0 - 2026-07-15

🚀 Features

  • (js/ts) Add System.IO.Directory support (Exists, CreateDirectory) (#4798) (6568f35e)
  • (js/ts/python/beam) Preserve member calls and pattern matches in quotations (#4780) (55482e6b)

View changes on Github

2.4.2 - 2026-07-11

🐞 Bug Fixes

  • (js/ts) Async cancellation propagation and continuation double-resolve (#4746) (c78a9a8e)
  • (js/ts) Date arithmetic: PM parsing, AddMonths day clamp, AddYears offset (#4744) (be0558eb)
  • (js/ts) Int64 non-decimal parsing and BitConverter .NET mismatches (#4748) (2704d9c5)

View changes on Github

2.4.1 - 2026-07-09

🐞 Bug Fixes

  • MailboxProcessor dropping falsy messages and unit replies (8299b2e7)
  • (all) Add Seq.enumerateTryWith for try/with in seq, list, array comprehensions (#4750) (448c90d7)
  • (js/ts) Match .NET NaN semantics in JS comparison, min and max (7e5106f9)
  • (js/ts) BigInteger byte-array corruption, checked conversions, gcd, log2 (#4743) (f3cb7f2b)
  • (js/ts) Observable/Event dropping null/undefined/unit values (#4742) (75bff73b)
  • (js/ts) EndsWith regression for empty pattern with non-ordinal comparison (7793ed7b)
  • (js/ts/python) Quote strings with the %A format specifier (#4749) (75321f3b)
  • (ts/js) Regex.Replace count/substitutions and Regex.Split semantics (#4741) (d6ae6bd3)

View changes on Github

2.4.0 - 2026-07-05

🚀 Features

  • (js/ts) Add System.IO.Path and System.IO.File API support (ec99fac5)
  • (js/ts/python) Add Environment and Console.Error support (6e082f95)

🐞 Bug Fixes

  • (js/ts) DateTime.ToString() and %A are now consistent across all DateTimeKind values (#4714) (de98b0e4)

View changes on Github

2.3.0 - 2026-06-30

🚀 Features

  • (js/ts) Map task { } to Promise (97f54d36)
  • (js/ts/python/beam) Add support for Async.AwaitEvent (#4693) (71c98179)

🐞 Bug Fixes

  • (js) Respect StringComparison in String.IndexOf/LastIndexOf (#4681) (7cb92d52)
  • (js/ts) Int list is not a union type (#4698) (ecbecbe7)
  • (js/ts) Pass TypeInfo to getRecordFields to handle None fields in anonymous records (#4704) (c977d78b)
  • (ts) Widen isEnumDefined value parameter to accept any value (#4690) (0d6498dd)

View changes on Github

2.2.0 - 2026-06-24

🚀 Features

  • (all) Support Exception.InnerException across all targets (#4677) (c9b3ee24)

View changes on Github

2.1.1 - 2026-06-10

🐞 Bug Fixes

  • (js/ts) Reject JS-permissive date strings that .NET TryParse rejects (#4588) (09003de)
  • (js/ts) Make Exception.ToString() return the message instead of "Exception" (#4635) (4c36f76)

View changes on Github

2.1.0 - 2026-05-28

🚀 Features

  • (js/ts/python) Add missing standard DateTime format specifiers for JS/TS and Python (#4547) (90f5eb7)
  • (js/ts/python) Add missing StringBuilder.Append overloads for numeric types (#4568) (b402c30)

🐞 Bug Fixes

  • [JS/TS] Fix DatetimeOffset.ToString("s") (#4596) (3ce6f3f)
  • (js/ts) Fix datetime custom format off by one year (#4558) (83bdbb5)
  • (js/ts) Hex format specifier uses no padding unless precision is specified (#4603) (ba9857a)
  • (js/ts) Fix Decimal.GetBits returning incorrect mantissa after round arithmetic result (#4561) (345bcd4)
  • (js/ts) Fix G/g format specifier corrupting exponential notation when trimming trailing zeros (#4587) (773c098)
  • (js/ts/python) Fix FSharpOption not recognized as union type in F# reflection (#4529) (d78a37d)
  • (ts) Enforce browser-only compatibility in fable-library-ts tsconfig (#4563) (10c81c1)

View changes on Github

2.0.0 - 2026-04-21

Fixed

  • [JS/TS] Fix ResizeArray (System.Collections.Generic.List) equality to use reference equality instead of structural equality (fixes #3718)
  • [JS/TS] Fix String.Contains ignoring StringComparison argument (second argument was silently discarded)

2.0.0-rc.6 - 2026-04-07

Fixed

  • [JS/TS] Fix Async.StartChild with timeout always timing out even when the computation finishes before the deadline (fixes #4481) (by @MangelMaxime)

2.0.0-rc.5 - 2026-03-31

Fixed

  • [JS/TS] Improve Regex.Escape and Regex.Unescape handling (by @MangelMaxime)
  • [JS/TS] Fixed quotation for union string cases (by @MangelMaxime)

2.0.0-rc.4 - 2026-03-19

Fixed

  • [JS/TS] Fix Unchecked.defaultof<char> being emitted as null instead of '\0' (by @MangelMaxime)

2.0.0-rc.3 - 2026-03-10

Fixed

  • [TS] Expose optional stack property on Exception (by @MangelMaxime)

2.0.0-rc.2 - 2026-03-03

Fixed

  • [JS/TS] Allows compiling fable-library-ts for Browser environment (by @goswinr)

2.0.0-rc.1 - 2026-02-26

2.0.0-beta.7 - 2026-02-03

  • [JS/TS] Fix StringBuilder.Chars getter and setter (by @MangelMaxime)

2.0.0-beta.6 - 2025-12-26

Fixed

  • [JS/TS] Fix #4305 DateTimeOffset.Now returns wrong time (by @ncave)

2.0.0-beta.5 - 2025-11-19

Changed

  • [JS/TS] Replace the deprecated substr method with slice (by @Thorium)

2.0.0-beta.4 - 2025-07-25

Added

  • [JS/TS] Initial support for Nullable Reference Types (by @ncave)

2.0.0-beta.3 - 2025-03-14

Fixed

  • [JS/TS] Make nullArgCheck report the same error message as on .NET (by @MangelMaxime)

2.0.0-beta.2 - 2025-03-03

  • [JS/TS] Fix #4049: decimal/bigint to integer conversion checks (by @ncave)
  • [JS/TS] Fix decimal to char conversion checks (by @ManngelMaxime)
  • [JS/TS] Propagate non-captured exception when running Async.Start or Async.StartImmediate (by @MangelMaxime)
  • [JS/TS] Remove Async.RunSynchronously (by @MangelMaxime)
  • [JS/TS] Change signature of startWithContinuations to always require all its arguments (by @MangelMaxime)
  • [JS/TS] Fix short DateTime and DateTimeOffset short format strings (by @MangelMaxime)
  • [JS/TS] Add C and c format for numeric types (by @MangelMaxime)
  • [JS/TS] Add B and b format for numeric types (by @MangelMaxime)
  • [JS/TS] Add n format for numeric types (by @MangelMaxime)
  • [JS/TS] Fix numeric formats (by @MangelMaxime)

2.0.0-beta.1 - 2025-02-16

  • Compiled with Fable 5.0.0-alpha.10

1.10.0 - 2025-01-23

Added

  • [JS/TS] Add StringBuiler.Append(c: char, repeatCount: int) overload (by @roboz0r)

1.9.0 - 2025-01-09

Added

  • [JS/TS] Add new TimSpane overload support coming from .NET 9 (by @MangelMaxime)

Fixed

  • [JS/TS] Fix DateTimeOffset.ToLocalTime (by @MangelMaxime)

1.8.0 - 2024-11-19

  • [JS/TS] Fix h in DateTime.ToString (@MangelMaxime)
  • [JS/TS] Fix hh in DateTime.ToString (@MangelMaxime)

1.7.0 - 2024-11-19

Fixed

  • [JS/TS] Added missing IReadOnlyCollection helpers (#3953)

1.6.0 - 2024-10-02

Removed

  • Remove Async (from Async.ts) class (by @MangelMaxime)

Changed

  • Renamed IAsync to Async in AsyncBuilder.ts (#3906) (by @ncave)

1.5.0 - 2024-09-19

Added

  • [JS/TS] Add support for OrdinalIgnoreCase overload for String.EndsWith (#3892) (by @goswinr)
  • [JS/TS] Add uri.Port, uri.IsDefaultPort (by @MangelMaxime)

Fixed

  • [JS/TS] Fix escaping of { and } in FormattableString (#3890) (by @roboz0r)
  • [JS/TS] Fix uri.Host to return the host name without the port (by @MangelMaxime)
  • [JS/TS] Fix TypeScript compilation by resolving type of jsOptions (#3894) (by @MangelMaxime)

1.4.3 - 2024-09-04

  • [JS/TS] Fixed Decimal comparisons (#3884) (by @ncave)

1.4.2 - 2024-06-13

Fixed

  • [JS/TS] Fixed BigInt.ToDecimal with negative values (#3500) (by @ncave)

1.4.1 - 2024-06-13

Fixed

  • [JS/TS] Fixed DateTime.MinValue, DateTime.MaxValue (#3836) (by @ncave)

1.4.0 - 2024-03-20

Added

  • [JS/TS] Add ConditionalWeakTable (by @chkn)

1.3.0 - 2024-03-18

  • [JS/TS] Boolean.tryParse should not crash on null string (@goswinr)

1.2.0 - 2024-03-01

Fixed

  • GH-3772 [JS/TS] Re-implement DateTime.ToString custom format handling (by @MangelMaxime)

    It now supports all custom format specifiers, and behave as if CultureInfo.InvariantCulture was used (Fable does not support Globalization).

1.1.0 - 2024-02-20

Added

JavaScript

  • GH-3759 Add StringBuilder.Chars (by @MangelMaxime)
  • Add StringBuilder.AppendFormat (by @ncave)
  • GH-3748 Add Array.getItem and Array.setItem (by @MangelMaxime)

1.0.0 - 2024-02-13

  • Release stable version

1.0.0-beta-001 - 2024-02-12

Changed

  • Separate Result from Choice
  • Released as part of Fable 4.12.0