Skip to content

Commit

Permalink
Update changelog & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Mar 3, 2022
1 parent 29a3c6b commit efce1da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Service>(options => options
Expand All @@ -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()`.
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/wrappers-resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit efce1da

Please sign in to comment.