Update dependency Pure.DI to 2.5.2#33
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.5.0→2.5.2Release Notes
DevTeam/Pure.DI (Pure.DI)
v2.5.2Compare Source
🚀 New Features
Owned and Own Infrastructure Enhancements
Owned<T>graphs.Own.Emptyshared no-op owner for graphs that are known to contain no disposable resources.Ownconstruction to coordinate resource registration with disposal when thread safety is enabled.Disposal Exception Tracing
OnDisposeException<T>(T disposableInstance, Exception exception)hooks for tracing cleanup failures.Owned<T>disposal through the generatedPure.DI.Ownedaccumulator.readme/tracing-exceptions-during-composition-disposal.mdandreadme/tracing-exceptions-during-owned-disposal.md.🛠 Improvements
Owned Disposal Semantics
try/catchblocks forOwned<T>factory scenarios when no cleanup work is required.Autofac-Parity Coverage
Owned<T>disposal behavior using Autofac scenarios as a reference.Documentation
What's Changed
New Contributors
Full Changelog: DevTeam/Pure.DI@2.5.1...2.5.2
v2.5.1Compare Source
🚀 New Features
Union Type Contracts — Pure.DI now supports preview C# union types as DI contracts.
DIE050with candidate details and related binding locations.readme/union-types.md.Non-Boxing Union Results
readme/non-boxing-union-result.md.Ref-Like and Stack-Only Type Support
Span<T>,ReadOnlySpan<T>, customref structtypes, andwhere T : allows ref struct.allows ref struct.Func<ReadOnlySpan<char>, T>roots.Span<T>/ReadOnlySpan<T>root argument conversion.readme/span-and-readonlyspan.md,readme/default-func-with-readonlyspan.md, andreadme/allows-ref-struct-factory.md.C# 14 Constructor and Overload Features
OverloadResolutionPriorityAttributewhen selecting constructors.OrdinalAttributewas refined and documented.readme/partial-constructor-injection.mdandreadme/overload-resolution-priority.md.Method and Member Injection Ordering
OrdinalAttributenow applies consistently to fields, properties, methods, and method parameters.initproperties are initialized before regular member injection.🛡 Diagnostics and Validation
Stack-Only Safety Diagnostics
DIE046: stack-only dependency cannot be used with stored lifetimes.DIE047: stack-only dependency cannot be injected into fields or properties.DIE048: stack-only implementation cannot be injected through an interface conversion.DIE049: stack-only dependency cannot be captured in generated delegates or factories.DIW012: warns when stack-only dependencies are injected into heap-type constructors.DIW013: warns when stack-only factory overrides are not synchronized.Union and Overload Diagnostics
DIE050: reports ambiguous union case bindings.DIW014: warns when an injection method may resolve to another overload because ofOverloadResolutionPriority.⚡ High-Performance Scenarios
ThreadSafe = Offfor single-threaded compositions.ValueTask<T>roots.🧰 Maintenance
4.8to5.6.Uno Platform Sample Application
net10.0-desktop.DesignTimeCompositionoverrides for tooling, and a sharedCompositionresource without adding a runtime DI container.readme/UnoApp.md.Full Changelog: DevTeam/Pure.DI@2.5.0...2.5.1
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.