Feature: Add interface IFormattingExtensionsToggle to skip formatting (#436)
Added the IFormattingExtensionsToggle interface to allow skipping formatting by IFormatter extensions.
This interface is primarily used by ISource extensions that receive it with the ISelectorInfo parameter.
By setting IFormattingExtensionsToggle.DisableFormattingExtensions to true, formatting can be skipped. This can be useful when the ISource found a value in ISource.TryEvaluateSelector where default formatting cannot reasonably be done.
Fixed a vulnerability in .NET when calling the JsonSerializer.DeserializeAsyncEnumerable method against an untrusted input using System.Text.Json, which could result in Denial of Service.
Feature: Implement ISpanFormattable for DefaultFormatter (#434)
Implemented ISpanFormattable for DefaultFormatter
ISpanFormattable is 5% faster than IFormattable, with 24% less allocations
// Performance test case
Smart.FormatInto(output, null, _placeholder0005Format, 1234567.890123f, 1234567.890123f, 1234567.890123f, 1234567.890123f, 1234567.890123f);
Feature: Add interface IFormattingExtensionsToggle to skip formatting (#436)
Added the IFormattingExtensionsToggle interface to allow skipping formatting by IFormatter extensions.
This interface is primarily used by ISource extensions that receive it with the ISelectorInfo parameter.
By setting IFormattingExtensionsToggle.DisableFormattingExtensions to true, formatting can be skipped. This can be useful when the ISource found a value in ISource.TryEvaluateSelector where default formatting cannot reasonably be done.
Fixed a vulnerability in .NET when calling the JsonSerializer.DeserializeAsyncEnumerable method against an untrusted input using System.Text.Json, which could result in Denial of Service.
Feature: Implement ISpanFormattable for DefaultFormatter (#434)
Implemented ISpanFormattable for DefaultFormatter
ISpanFormattable is 5% faster than IFormattable, with 24% less allocations
// Performance test case
Smart.FormatInto(output, null, _placeholder0005Format, 1234567.890123f, 1234567.890123f, 1234567.890123f, 1234567.890123f, 1234567.890123f);
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps SmartFormat.NET and SmartFormat. These dependencies needed to be updated together. Updates
SmartFormat.NET
from 3.4.0 to 3.5.0Release notes
Sourced from SmartFormat.NET's releases.
... (truncated)
Commits
c097ea6
Bump version to v3.5.0 (#437)9a43056
Add interface IFormattingExtensionsToggle to skip formatting (#436)a2a4969
Denial of Service Vulnerability in System.Text.Json < 8.0.4 (#435)7ef11f4
Implement ISpanFormattable for DefaultFormatter (#434)6874471
chore: Remove Github workflow for wiki updates (#433)65714e2
chore: Fix missing double quote at end of the line for commit message (#432)a2e2aa3
chore: Try to fix errors with wiki commit message (#431)3cc88a0
chore: Remove disallowed characters in commit message (#430)16e432c
Url-encode special characters in the commit message (#429)2bf827f
feature: ReflectionSource and DictionarySource (#426)Updates
SmartFormat
from 3.4.0 to 3.5.0Release notes
Sourced from SmartFormat's releases.
... (truncated)
Commits
c097ea6
Bump version to v3.5.0 (#437)9a43056
Add interface IFormattingExtensionsToggle to skip formatting (#436)a2a4969
Denial of Service Vulnerability in System.Text.Json < 8.0.4 (#435)7ef11f4
Implement ISpanFormattable for DefaultFormatter (#434)6874471
chore: Remove Github workflow for wiki updates (#433)65714e2
chore: Fix missing double quote at end of the line for commit message (#432)a2e2aa3
chore: Try to fix errors with wiki commit message (#431)3cc88a0
chore: Remove disallowed characters in commit message (#430)16e432c
Url-encode special characters in the commit message (#429)2bf827f
feature: ReflectionSource and DictionarySource (#426)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show