diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e304f8..be0742a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [v5.2.0] - ### Added -- Null-state analysis by setting the nullable context to `enable`. +- Null-safety by enabling null-state analysis. - Option to exclude a factory's result from dispose tracking, even if it would be tracked by default. This gives the ability to decide within the factory delegate that the result should be tracked or not. ```cs .Register(options => options @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ``` - A new `ResolveFactoryOrDefault()` method that allows `null` results. - A new `ResolveOrDefault()` method that allows `null` results. +- `ValueTuple<,>` [metadata](https://z4kn4fein.github.io/stashbox/#/advanced/wrappers-resolvers?id=metadata-amp-tuple) support. ### Changed - `Resolve()` with the `nullResultAllowed` parameter became obsolete, it was replaced by `ResolveOrDefault()`. diff --git a/docs/advanced/wrappers-resolvers.md b/docs/advanced/wrappers-resolvers.md index e1370ffc..3d701f96 100644 --- a/docs/advanced/wrappers-resolvers.md +++ b/docs/advanced/wrappers-resolvers.md @@ -6,7 +6,7 @@ Stashbox uses so-called *Wrapper* and *Resolver* implementations to handle those * `EnumerableWrapper`: Used to resolve a collection of services wrapped in one of the collection interfaces that a .NET `Array` implements. (`IEnumerable<>`, `IList<>`, `ICollection<>`, `IReadOnlyList<>`, `IReadOnlyCollection<>`) * `LazyWrapper`: Used to resolve services [wrapped](advanced/wrappers-resolvers?id=lazy) in `Lazy<>`. * `FuncWrapper`: Used to resolve services [wrapped](advanced/wrappers-resolvers?id=func) in `Func<>` delegates. -* `MetadataWrapper`: Used to resolve services [wrapped](advanced/wrappers-resolvers?id=metadata-amp-tuple) in `Tuple<>` or `Metadata<>`. +* `MetadataWrapper`: Used to resolve services [wrapped](advanced/wrappers-resolvers?id=metadata-amp-tuple) in `ValueTuple<,>`, `Tuple<>` or `Metadata<>`. * `KeyValueWrapper`: Used to resolve services [wrapped](advanced/wrappers-resolvers?id=keyvaluepair-amp-readonlykeyvalue) in `KeyValuePair` or `ReadOnlyKeyValue<>`. * `OptionalValueResolver`: Used to resolve optional parameters. * `DefaultValueResolver`: Used to resolve default values.