See the release notes for more information on new features.
- Introduced Polysharp to lower .NET requirements to: .NET 5 and later, .NET Standard 2.0
- Added
TokenValueFormatException
to handle formatting errors - Created
string.Format
parity to improve performance - Classes within the
StringTokenFormatter.Impl
namespace have undergone a number of improvements
BlockCommands
has been replaced with the more flexibleCommands
Map
andStandard
commands added by default as well as the previous block commandsConditional
andLoop
- Added
FormatterDefinitions
property toIInterpolatedStringSettings
IInterpolatedStringSettings
now includesNameComparer
property (previously only onITokenValueContainerSettings
)TokenResolutionPolicy
property moved toICompositeTokenValueContainerSettings
as it is now only used byCompositeTokenValueContainer
- Included additional Value Converters by default, so that a token value of any type can be returned. Previously only
Func<string>
orFunc<object>
could be used, now for exampleFunc<int>
is supported. That applies to functions that take token name as input as well - Better settings validation is now enforced