Skip to content

v7.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 05:22
· 134 commits to main since this release
0b7e899

Added

  • Disposable.CreateRepeatable, AsyncDisposable.CreateRepeatable and AsyncDisposable.AdaptRepeatable run the action or dispose the resource on every call, Disposable.PostingContext disposes through the context's Post, and Disposable.CollectionIgnoringExceptions, AsyncDisposable.CollectionIgnoringExceptions, DisposeAllIgnoringExceptions() and DisposeAllIgnoringExceptionsAsync() ignore the exceptions items throw; the constructors and overloads without a flag, such as new DisposableAction(action), Disposable.Context(disposable, context) and DisposeAll(), pick the default behavior. (#68, ADR-1007)

Changed

  • The project template is v0.113.3, whose build/Update-PublicApi.ps1 and build/dod.ps1 find the projects when they run from a plan's worktree under .claude/worktrees/. (#70)
  • The tests create every mock from one MockRepository per test class, which verifies each expected call when the test ends. (#67)

Deprecated

  • The bool parameters that pick a behavior report NCDISP003: idempotent on Disposable.Create, AsyncDisposable.Create, AsyncDisposable.Adapt and the DisposableAction, AsyncDisposableAction and AsyncDisposableAdapter constructors, async on Disposable.Context and the DisposableContext constructor, and ignoreExceptions on Disposable.Collection, AsyncDisposable.Collection, the DisposableCollection and AsyncDisposableCollection constructors, DisposeAll and DisposeAllAsync. Use the members named for each behavior, because the next major version deletes these overloads. (#68, ADR-1007)

Fixed

  • Dispose on a context from Disposable.PostingContext, or from Disposable.Context with async: true, calls OperationCompleted and rethrows when the context's Post throws, so the context's count of operations stays balanced. (#71)