Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Jun 23:33

Added

  • Added optional AmbientContextRegistrationAttribute for collision-resistant, assembly-specific aggregate registration methods.
  • Added generated I{Name}Context interfaces and synchronous ExecuteAs{Name} overloads.
  • Added generator diagnostics for invalid namespaces, open generic values, duplicate or invalid aggregate registration declarations, and generated name collisions.
  • Added approved public API snapshots and NuGet package validation.
  • Added integration guidance and buildable ASP.NET Core and message-processing samples.

Changed

  • Consolidated the public core runtime into AmbientContextRuntime<TContext, TValue>.
  • Generated markers, accessors, context implementations, constructors, and registration helpers are now internal.
  • Generated dependency injection registration is idempotent.
  • Analyzer matching now identifies generated AmbientContext methods semantically.

Removed

  • Removed public ValueTask execution overloads in favor of unambiguous Task-based delegates.
  • Removed the collision-prone parameterless AddAmbientContext() aggregate methods.
  • Removed the unused MAAC0001 analyzer rule.
  • Removed the previous public accessor, runner, state, and options infrastructure types.

Fixed

  • Updated Forgejo package publishing to use a dedicated package-scoped personal access token and support retrying an existing release tag manually.
  • Enabled automatic NuGet.org trusted publishing for release tag pushes while retaining safe manual retries for existing tags.
  • Publishing workflows now create idempotent GitHub and Forgejo releases from the matching changelog section after packages are published.