Skip to content

Commit a9b0fb3

Browse files
authored
Bump version to v3.3.0 (#356)
1 parent 746ef9d commit a9b0fb3

File tree

10 files changed

+19
-98
lines changed

10 files changed

+19
-98
lines changed

.github/workflows/SonarCloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
# (PRs from forks can't access secrets other than secrets.GITHUB_TOKEN for security reasons)
1414
if: ${{ !github.event.pull_request.head.repo.fork }}
1515
env:
16-
version: '3.2.2'
17-
versionFile: '3.2.2'
16+
version: '3.3.0'
17+
versionFile: '3.3.0'
1818
steps:
1919
- name: Set up JDK 17
2020
uses: actions/setup-java@v3

CHANGES.md

Lines changed: 2 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,10 @@
11
Latest Changes
22
====
33

4-
v3.2.2
4+
Changes after v3.0.0
55
===
66

7-
See https://github.com/axuno/SmartFormat/releases/tag/v3.2.2
8-
9-
v3.2.1
10-
===
11-
12-
### PluralLocalizationFormatter
13-
14-
* Fix: Auto-detection of PluralLocalizationFormatter does not throw for values not convertible to decimal by @axunonb in https://github.com/axuno/SmartFormat/pull/330 Resolves #329 (Thanks to @BtbN)
15-
16-
* Current behavior, introduced in v3.2.0:
17-
When `PluralLocalizationFormatter.CanAutoDetect == true`, values that are not convertible to `decimal` will throw then trying to `IConvertible.ToDecimal(...)`
18-
19-
* New behavior, equivalent to v3.1.0:
20-
When `PluralLocalizationFormatter.CanAutoDetect == true`, for values that are not convertible to `decimal`, `IFormatter.TryEvaluateFormat(...)` will return `false`
21-
22-
* Fix processing for Singular languages by @axunonb in https://github.com/axuno/SmartFormat/pull/322
23-
24-
### Other Changes
25-
26-
* EditorConfig and appveyor.yml by @axunonb in https://github.com/axuno/SmartFormat/pull/319
27-
* Integrate Cysharp.ZString release v2.5.0 (26 Oct 2022) by @axunonb in https://github.com/axuno/SmartFormat/pull/323
28-
* Fix: PluralRules for Czech locale by @alexheb in https://github.com/axuno/SmartFormat/pull/325
29-
* Fixes for Demo App and NUnit TestAdapter by @axunonb in https://github.com/axuno/SmartFormat/pull/328
30-
31-
**Full Changelog**: https://github.com/axuno/SmartFormat/compare/v3.2.0...v3.2.1
32-
33-
v3.2.0
34-
===
35-
### Enhancements
36-
37-
* Remove usage of Linq for less GC
38-
* Add `IConvertable` support for `PluralLocalizationFormatter` and `ConditionalFormatter`
39-
* `ListFormatter`
40-
* ListFormatter handles selector name "Index" in `IEnumerable`s and `IList`s: In `v1.6.1` a Selector was tested for having the name **"index"**, even if data was not an `IList`, and returned the `CollectionIndex`. This is now implemented again in the `ListFormatter.TryEvaluateSelector(...)`
41-
* Set the `ParentPlaceholder` property for item `Format`s
42-
* Use `PooledObject<T>` where possible, so objects will be returned to `ObjectPool` also in case of exceptions
43-
44-
### Fixes
45-
* `FormatItem.AsSpan()` returns the correct name
46-
* Remove potential namespace collisions: All public types in namespace `Cysharp.Text` are now internal
47-
48-
49-
v3.1.0
50-
===
51-
52-
This is a feature update, that is released upon feedback from the community.
53-
54-
### Thread-safe Mode
55-
56-
Thread-safe mode is now enabled by default:
57-
`SmartSettings.IsThreadSafeMode == true`.<br/>
58-
This has no impact on the API.
59-
60-
In case *SmartFormat* is *exclusively* utilized in a single-threaded context, `SmartSettings.IsThreadSafeMode=false` should be considered for enhanced performance.
61-
62-
### Static `Smart` Methods for Formatting
63-
64-
Static `Smart` methods like Smart.Format(*format*, *args*) can now be called in an `async` / multi-threaded context.
65-
66-
The `SmartFormatter` instance returned by `Smart.Default` is flagged with the `ThreadStatic` attribute.
67-
68-
### `ListFormatter` may have Placeholders in "spacers"
69-
70-
Thanks to **[karljj1](https://github.com/axuno/SmartFormat/commits?author=karljj1)** for the PR.
71-
72-
Before *v3.1.0* the format options for `ListFormatter` could only contain literal text. Now `Placeholder`s are allowed.
73-
74-
#### Example:
75-
76-
```CSharp
77-
var args = new {
78-
Names = new[] { "John", "Mary", "Amy" },
79-
IsAnd = true, // true or false
80-
Split = ", " // comma and space as list separator
81-
};
82-
_ = Smart.Format("{Names:list:{}|{Split}| {IsAnd:and|nor} }", args);
83-
// Output for "IsAnd=true": "John, Mary and Amy"
84-
// Output for "IsAnd=false": "John, Mary nor Amy"
85-
```
86-
<br/>
7+
Please see release notes for all versions after v3.0.0 on https://github.com/axuno/SmartFormat/releases/
878

889
v3.0.0
8910
===

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for:
2323
- ps: dotnet restore SmartFormat.sln --verbosity quiet
2424
- ps: dotnet add .\SmartFormat.Tests\SmartFormat.Tests.csproj package AltCover
2525
- ps: |
26-
$version = "3.2.2"
26+
$version = "3.3.0"
2727
$versionFile = $version + "." + ${env:APPVEYOR_BUILD_NUMBER}
2828
2929
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Copyright>Copyright 2011-$(CurrentYear) SmartFormat Project</Copyright>
99
<RepositoryUrl>https://github.com/axuno/SmartFormat.git</RepositoryUrl>
1010
<PublishRepositoryUrl>true</PublishRepositoryUrl>
11-
<Version>3.2.2</Version>
12-
<FileVersion>3.2.2</FileVersion>
11+
<Version>3.3.0</Version>
12+
<FileVersion>3.3.0</FileVersion>
1313
<AssemblyVersion>3.0.0</AssemblyVersion> <!--only update AssemblyVersion with major releases -->
1414
<LangVersion>latest</LangVersion>
1515
<EnableNETAnalyzers>true</EnableNETAnalyzers>

src/SmartFormat.Extensions.Newtonsoft.Json/SmartFormat.Extensions.Newtonsoft.Json.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1010
<AssemblyTitle>SmartFormat.Extensions.Newtonsoft.Json</AssemblyTitle>
1111
<AssemblyName>SmartFormat.Extensions.Newtonsoft.Json</AssemblyName>
1212
<PackageId>SmartFormat.Extensions.Newtonsoft.Json</PackageId>
13-
<PackageReleaseNotes>See the change log for the main project at
14-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
13+
<PackageReleaseNotes>Please see release notes on
14+
https://github.com/axuno/SmartFormat/releases/
1515
</PackageReleaseNotes>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageLicenseFile></PackageLicenseFile>

src/SmartFormat.Extensions.System.Text.Json/SmartFormat.Extensions.System.Text.Json.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1010
<AssemblyTitle>SmartFormat.Extensions.System.Text.Json</AssemblyTitle>
1111
<AssemblyName>SmartFormat.Extensions.System.Text.Json</AssemblyName>
1212
<PackageId>SmartFormat.Extensions.System.Text.Json</PackageId>
13-
<PackageReleaseNotes>See the change log for the main project at
14-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
13+
<PackageReleaseNotes>Please see release notes on
14+
https://github.com/axuno/SmartFormat/releases/
1515
</PackageReleaseNotes>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageLicenseFile></PackageLicenseFile>

src/SmartFormat.Extensions.Time/SmartFormat.Extensions.Time.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1010
<AssemblyTitle>SmartFormat.Extensions.Time</AssemblyTitle>
1111
<AssemblyName>SmartFormat.Extensions.Time</AssemblyName>
1212
<PackageId>SmartFormat.Extensions.Time</PackageId>
13-
<PackageReleaseNotes>See the change log for the main project at
14-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
13+
<PackageReleaseNotes>Please see release notes on
14+
https://github.com/axuno/SmartFormat/releases/
1515
</PackageReleaseNotes>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageLicenseFile></PackageLicenseFile>

src/SmartFormat.Extensions.Xml/SmartFormat.Extensions.Xml.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1010
<AssemblyTitle>SmartFormat.Extensions.Xml</AssemblyTitle>
1111
<AssemblyName>SmartFormat.Extensions.Xml</AssemblyName>
1212
<PackageId>SmartFormat.Extensions.Xml</PackageId>
13-
<PackageReleaseNotes>See the change log for the main project at
14-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
13+
<PackageReleaseNotes>Please see release notes on
14+
https://github.com/axuno/SmartFormat/releases/
1515
</PackageReleaseNotes>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageLicenseFile></PackageLicenseFile>

src/SmartFormat.Net/SmartFormat.Net.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1515
<AssemblyOriginatorKeyFile>../SmartFormat/SmartFormat.snk</AssemblyOriginatorKeyFile>
1616
<SignAssembly>true</SignAssembly>
1717
<PackageId>SmartFormat.NET</PackageId>
18-
<PackageReleaseNotes>See the change log for details of this release:
19-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
18+
<PackageReleaseNotes>Please see release notes on
19+
https://github.com/axuno/SmartFormat/releases/
2020
</PackageReleaseNotes>
2121
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2222
<PackageLicenseFile></PackageLicenseFile>

src/SmartFormat/SmartFormat.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ It uses extensions to provide named placeholders, localization, pluralization, g
1010
<AssemblyTitle>SmartFormat</AssemblyTitle>
1111
<AssemblyName>SmartFormat</AssemblyName>
1212
<PackageId>SmartFormat</PackageId>
13-
<PackageReleaseNotes>See the change log for details of this release:
14-
https://github.com/axuno/SmartFormat/blob/main/CHANGES.md
13+
<PackageReleaseNotes>Please see release notes on
14+
https://github.com/axuno/SmartFormat/releases/
1515
</PackageReleaseNotes>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageLicenseFile></PackageLicenseFile>

0 commit comments

Comments
 (0)