Repository navigation
Bump SmartFormat from 3.3.0 to 3.6.2 - #226
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: SmartFormat dependency-version: 3.6.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This branch has not been deployed
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.
Updated SmartFormat from 3.3.0 to 3.6.2.
Release notes
Sourced from SmartFormat's releases.
3.6.2
What's Changed
IOutput.Write(...)overloads now have argumentIFormattingInfoset in fix:IOutput.Write(...)overloads now have argumentIFormattingInfoset axuno/SmartFormat#502Selectors in Allow Unicode characters inSelectors axuno/SmartFormat#510New Contributors
Full Changelog: axuno/SmartFormat@v3.6.1...v3.6.2
3.6.1
What's Changed
Publishworkflow branch-agnostic in MakePublishworkflow branch-agnostic axuno/SmartFormat#481Publishworkflow branch-agnostic in Fix: MakePublishworkflow branch-agnostic axuno/SmartFormat#482LocalizationProvider.GetStringwith fallback culture in Fix:LocalizationProvider.GetStringwith fallback culture axuno/SmartFormat#484Parser.ParseFormat: Reduce cognitive complexity in chore:Parser.ParseFormat: Reduce cognitive complexity axuno/SmartFormat#489Full Changelog: axuno/SmartFormat@v3.6.0...v3.6.1
3.6.0
Release Notes
Thread Safety Enhancements
Parser:Parserhas been refactored by replacing stateful instance variables.Parser.ParseFormat(...)method is now thread-safe, ensuring safe operations in multi-threaded environments.SmartFormatter:SmartFormatter.Format...methods are thread-safe.ThreadStaticattribute from theSmart.Defaultinstance ofSmartFormatter.SmartFormatterinstances using differentSmart.Extensions.Parser,Smart, andSmartFormatterclasses to clarify the thread safety of methods.Also see further remarks regarding thread-safety in the Wiki
Heads Up
ThreadStaticAttribute forSmart.Default:ThreadStaticattribute for theSmart.Defaultinstance ofSmartFormatterhas been removed.User Feedback
Sample Usage: Using One
SmartFormatterInstance with Several Threads in ParallelThe following example demonstrates how to use a single
SmartFormatterinstance with multiple threads in parallel. This ensures thread-safe operations and efficient resource utilization.New Contributors
Full Changelog: axuno/SmartFormat@v3.5.2...v3.5.3
3.5.2
What's Changed
StringBuilder.AppendSmart()andStringBuilder.AppendLineSmart()by @Klikini in Enable chaining from StringBuilder.AppendSmart() and StringBuilder.AppendLineSmart() axuno/SmartFormat#452Backstage Changes
New Contributors
Full Changelog: axuno/SmartFormat@v3.5.1...v3.5.2
3.5.1
What's Changed
Full Changelog: axuno/SmartFormat@v3.5.0...v3.5.1
3.5.0
What's Changed
Feature: Add interface IFormattingExtensionsToggle to skip formatting (#436)
IFormattingExtensionsToggleinterface to allow skipping formatting byIFormatterextensions.ISourceextensions that receive it with theISelectorInfoparameter.IFormattingExtensionsToggle.DisableFormattingExtensionstotrue, formatting can be skipped. This can be useful when theISourcefound a value inISource.TryEvaluateSelectorwhere default formatting cannot reasonably be done.Security: Update of System.Text.Json (#435)
System.Text.Jsonto v8.0.4Feature: Implement ISpanFormattable for DefaultFormatter (#434)
ISpanFormattableforDefaultFormatterISpanFormattableis 5% faster than IFormattable, with 24% less allocationsFeature: ReflectionSource (#426)
ReflectionSource.TypeCachestaticfor better performance.staticcache has undesired effects on your code logic, consider to disable the cache (ReflectionSource.IsTypeCacheEnabled = false).ReflectionSource.TypeCacheand remove the oldest item first.Enhancement: DictionarySource (#426)
DictionarySourcenow use case-sensitivity settingIReadOnlyDictionarynow has instance scopeRefactor: Split off classes Registry and Evaluator from SmartFormatter (#424)
SmartFormatter
... (truncated)
3.4.0
What's Changed
.NET Framework 4.6.2
SmartFormat has transitioned to using
.NET Framework 4.6.2 (net462)as its target framework, replacing the now unsupported.NET Framework 4.6.1 (net461). The support fornet461ended in 2022, whilenet462will continue to receive support until January 2027.Switching to a different patch version of a target framework is generally not considered a breaking change. This is referred to as an in-place update by Microsoft. In the case of SmartFormat, we have not encountered any runtime issues with the existing API after this transition.
The same holds true for the new
netstandard2.0reference to ZString..NET 6.0 and .NET 8.0
SmartFormat has expanded its compatibility by adding
.NET 6.0 (net60)and.NET 8.0 (net80)as additional target frameworks. You can find details about their end of support here.All Target Frameworks
We have removed the
SmartFormat.ZStringassembly and replaced it with a reference to the ZString package. This change does not affect the API.Commits in detail
Thanks to @thompson-tomo for his first contribution with axuno/SmartFormat#377
Full Changelog: axuno/SmartFormat@v3.3.2...v3.4.0
3.3.2
Reasoning for the Update
What's Changed
"fnr.exe" --cl --dir "SmartFormat.ZString\repo\src\ZString" --fileMask ".cs,.tt" --includeSubDirectories --caseSensitive --useRegEx --find "public (?=.*(class |struct |enum |interface |delegate ))" --replace "internal "
Full Changelog: axuno/SmartFormat@v3.3.1...v3.3.2
3.3.1
Fix
PluralRule for DualFromZeroToTwo: Now a value of 2 is covered and will not throw. Frend is one of the affected languages. Closes #369 in axuno/SmartFormat#370
Enhancement
Dictionary<string, PluralRuleDelegate> PluralRule.IsoLangToDelegateholdsdelegates with the pluralization rule per language. Changing a value of this dictionary will change the pluralization rules globally. This is not recommended, but possible. After a change callingPluralRules.RestoreDefault()will restore the default rules.Other Changes
Full Changelog: axuno/SmartFormat@v3.3.0...v3.3.1
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)