Skip to content

MemoryToolkit.Maui v2.0.0

Latest

Choose a tag to compare

@AdamEssenmacher AdamEssenmacher released this 13 Apr 22:19

MemoryToolkit.Maui v2.0.0

V2 modernizes MemoryToolkit.Maui for .NET 10 / MAUI 10 and re-centers the library around low-destruction leak detection plus opt-in containment.

NuGet: https://www.nuget.org/packages/AdamE.MemoryToolkit.Maui/2.0.0

Highlights

  • Targets .NET 10 / MAUI 10 with net10.0, net10.0-ios, and net10.0-maccatalyst builds.
  • Adds the V2 UseMemoryToolkit(options) entry point while keeping UseLeakDetection as a compatibility wrapper.
  • Adds strategy-based teardown with DetectOnly, DisconnectHandlers, and opt-in Compartmentalize.
  • Defaults teardown to MAUI's handler disconnection path rather than legacy dispose-heavy cleanup.
  • Keeps managed graph clearing behind Compartmentalize, including binding contexts, behaviors, content, item sources/templates, gesture recognizers, formatted text spans, logical children, parents, and resources.
  • Refactors lifecycle tracking for Shell, Flyout, NavigationPage, modal navigation, and fallback unloaded handling.
  • Adds XML documentation, refreshed README guidance, a modernized Shell sample, pure unit tests, and a focused Mac Catalyst e2e lifecycle test app.

Fixes

Validation

Validated with unit tests, .NET 10 / Mac Catalyst library builds, sample Mac Catalyst build, package generation, and the opt-in Mac Catalyst e2e runner. The e2e runner verified that LeakMonitorBehavior and TearDownBehavior run from real MAUI lifecycle events and that a popped page graph is collected after Compartmentalize.

Package SHA-256:

8f63d505f08fe9862765d2caf1fcce48e6d98e1c1e22a4bb33f41e95046eda9a