Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.2.0] — 2026-06-20

### Added

- Multi-targeting: the package now ships `net8.0` and `net10.0` assemblies (previously
`net10.0` only), broadening the range of consuming runtimes.

### Changed

- Switched the internal synchronization primitive from `System.Threading.Lock` (net9+)
to `object` so the same source compiles on `net8.0`.

## [0.1.1] — 2026-06-10

### Changed
Expand Down Expand Up @@ -60,5 +72,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `TreatWarningsAsErrors=true`, `AnalysisLevel=latest` — zero-warning public API.
- Package icon, with the editable source vector kept under `design/icons/`.

[0.2.0]: https://github.com/StuartMeeks/NextIteration.SpectreConsole.Settings/releases/tag/v0.2.0
[0.1.1]: https://github.com/StuartMeeks/NextIteration.SpectreConsole.Settings/releases/tag/v0.1.1
[0.1.0]: https://github.com/StuartMeeks/NextIteration.SpectreConsole.Settings/releases/tag/v0.1.0
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Authors>Stuart Meeks</Authors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
Expand All @@ -11,7 +11,7 @@

<PropertyGroup>
<PackageId>NextIteration.SpectreConsole.Settings</PackageId>
<Version>0.1.1</Version>
<Version>0.2.0</Version>
<Authors>Stuart Meeks</Authors>
<Description>Strongly-typed, JSON-persisted settings for CLI tools, with automatic or explicit persistence and ready-made Spectre.Console settings commands.</Description>
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace NextIteration.SpectreConsole.Settings.Persistence
/// </summary>
internal sealed class SettingsStore : ISettingsStore
{
private readonly Lock _gate = new();
private readonly object _gate = new();
private readonly Dictionary<Type, SettingsTypeDescriptor> _descriptors;
private readonly Dictionary<Type, Entry> _entries = new();
private readonly List<SettingsRegistration> _registrations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace NextIteration.SpectreConsole.Settings
/// </remarks>
public abstract class SettingsBase
{
private readonly Lock _gate = new();
private readonly object _gate = new();

private ISettingsPersister? _persister;
private PersistenceMode _persistenceMode = PersistenceMode.Automatic;
Expand Down