Skip to content

chore(main): release 2.0.0 - #39

Merged
Frognar merged 2 commits into
mainfrom
release-please--branches--main
Nov 12, 2026
Merged

Frognar merged 2 commits into
mainfrom
release-please--branches--main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

2.0.0 (2026-11-12)

Highlights

A ground-up rewrite for .NET 11 and C# 15 unions. The 1.x line is retired.

  • Maybe<T> is a C# 15 union with exactly two cases, T and None: values convert implicitly, a switch over
    both is exhaustive, and pattern matching works in generic code too.
  • No invalid states: default(Maybe<T>) is None, a null never becomes a value, and there is no .Value or
    any other throwing accessor.
  • Functional API: Match, OrDefault, Map, Bind, Filter, OrElse, Zip, Fold, Iter, Tap,
    Flatten, and query syntax (from, where, let, select).
  • Collections and interop: Choose, Traverse, Sequence, FirstOrNone, SingleOrNone, GetValueOrNone,
    FromNullable, ToNullable and Maybe.Parse<T>.
  • Ordering like Option in F# (None first), with no </> operators on purpose.
  • System.Text.Json without configuration: a value is written as itself and None as null. Works with
    source-generated contexts.
  • Async: *Async counterparts returning ValueTask, plus pipelines and query syntax over Task<Maybe<T>> and
    ValueTask<Maybe<T>> with a single await.
  • Zero allocations for value-type T (checked on every build); trimming and Native AOT compatible.
  • Requires .NET 11.

Performance Improvements

  • allocate nothing in async queries with two from clauses (590045a)

This PR was generated with Release Please. See documentation.

Added detailed highlights and performance improvements for version 2.0.0.
@Frognar
Frognar merged commit 840b691 into main Nov 12, 2026
6 checks passed
@Frognar
Frognar deleted the release-please--branches--main branch November 12, 2026 22:35
@github-actions

Copy link
Copy Markdown
Contributor Author

🤖 Created releases:

🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant