Skip to content

Latest commit

 

History

History
307 lines (200 loc) · 18.5 KB

CHANGELOG.md

File metadata and controls

307 lines (200 loc) · 18.5 KB

Changelog

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

For more details, please refer to PackageReleaseNotes.txt on a per assembly basis in the .nuget folder.

0.6.0 - 2026-11-12

This major release replaces .NET 9 with .NET 11 while retaining .NET 10, and updates dependencies and repository tooling.

Added

  • .NET 11 as a package target framework alongside .NET 10,
  • SonarAnalyzer.CSharp 10.36.0.15337 as a private build dependency for production projects.

Changed

  • Updated Codebelt.Coverlet.MTP from 10.1.0 to 11.0.0, Cuemon.Extensions.IO from 10.8.1 to 11.0.0, and Codebelt.Extensions.Xunit.App from 12.0.2 to 13.0.0,
  • Updated Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json from 5.0.13 to 6.0.0,
  • Updated Microsoft.NET.Test.Sdk from 18.11.0 to 18.12.0, Microsoft.Testing.Extensions.HangDump from 2.5.1 to 2.5.3, and xunit.v3 and xunit.v3.runner.console from 4.0.2 to 4.0.3,
  • Required file-scoped namespaces for existing and new C# files and normalized tracked text to LF and UTF-8 without BOM,
  • Split Docker test environments into .NET 10 and .NET 11 runners and updated CI runners and contributor guidance,
  • Updated the S3267 documentation link and pinned Scorecard workflow actions to current upstream revisions,
  • Disabled range requests for fingerprinted DocFX assets,
  • Updated service-update automation to preserve planned versions and validate release dates.

Removed

  • .NET 9 from package target frameworks; consumers must target .NET 10 or later,
  • The repository's benchmark prompt.

0.5.13 - 2026-10-18

This is a patch release focused on dependency maintenance, test diagnostics, documentation hosting, repository guidance, and a time-zone-independent UTC minimum.

Important

A longstanding time-zone dependency in CoordinatedUniversalTime.MinValue surfaced in Windows ARM64 CI after GitHub's September 21–30, 2026 migration of windows-11-arm to the Visual Studio 2026 image (actions/runner-images#14602). The image change is confirmed; a change to the runner's local time zone is a suspected trigger, not a confirmed upstream diagnosis. The fix makes the UTC minimum independent of the host's time zone.

UTC minimum: investigation evidence and reproduction

The original initializer, DateTime.MinValue.ToUniversalTime(), has been present since the April 2, 2024 initial commit. DateTime.MinValue.Kind is Unspecified, which ToUniversalTime() treats as local time. In UTC−08:00 it becomes 0001-01-01T08:00:00.0000000Z; in UTC it stays midnight. Positive local offsets can also produce midnight because conversion below DateTime.MinValue is clamped, masking the dependency.

Evidence Observation
September 14 passing Windows ARM64 Release job Image windows-11-arm64, version 20260906.161.1; tests passed.
October 18 failing Windows ARM64 Release job Image windows-11-vs2026-arm64, version 20261013.183.4; AccessKeyTest.Marshalling_ShouldRepresentCorrectly expected midnight but received 08:00Z.
Unmodified September 14 build-Release-X64 artifact, reproduced locally on October 18 The same archived .NET 10 test DLL passed in UTC and failed in UTC−08:00 with the identical 08:00Z mismatch, using .NET 10.0.12 on Linux x64. The new package versions are not required to reproduce the failure.

To repeat the archived-artifact comparison, use Bash on Linux or WSL with .NET 10 and an authenticated GitHub CLI. Download the artifact while it remains available under GitHub's retention policy, then run the same DLL twice without rebuilding:

baseline="$(mktemp -d)"
gh run download 34897095521 --repo codebeltnet/shared-kernel --name build-Release-X64 --dir "$baseline"
module="$baseline/test/Codebelt.SharedKernel.Tests/bin/Release/net10.0/Codebelt.SharedKernel.Tests.dll"
TZ=Etc/GMT+8 dotnet "$module" --filter-method '*AccessKeyTest.Marshalling_ShouldRepresentCorrectly'
TZ=UTC dotnet "$module" --filter-method '*AccessKeyTest.Marshalling_ShouldRepresentCorrectly'

Etc/GMT+8 denotes UTC−08:00. The first invocation failed with validFrom at 08:00Z; the second passed. Both used the archived assembly and its archived dependencies. These results establish the existing time-zone dependency, but do not establish which runner setting or runtime change first exposed it in CI. No matching upstream time-zone bug report was found during the October 18 investigation; #14602 documents the image migration only.

The corrected initializer uses DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc), preserving zero ticks without local-time conversion. The new minimum-value regression test failed before the fix in UTC−08:00. After the fix, all 229 tests per target framework passed on .NET 9 and .NET 10 under UTC−08:00, UTC, and UTC+08:00 in Linux x64, and under the local Copenhagen time zone in Windows x64. A new GitHub Windows ARM64 run is still required to verify the fix on the affected hosted image.

Added

  • Codebelt.Coverlet.MTP 10.1.0 and Microsoft.Testing.Extensions.HangDump 2.5.1 as shared test dependencies,
  • Nginx configuration that listens on port 8080, caches fingerprinted DocFX assets, and disables caching for stable page URLs.

Changed

  • Upgraded Cuemon.Extensions.IO from 10.7.1 to 10.8.1, Codebelt.Extensions.Xunit.App from 12.0.1 to 12.0.2, and Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json from 5.0.12 to 5.0.13,
  • Upgraded Microsoft.NET.Test.Sdk from 18.10.0 to 18.11.0, xunit.v3 and xunit.v3.runner.console from 4.0.1 to 4.0.2, and xunit.runner.visualstudio from 4.0.0 to 4.0.1,
  • Consolidated unit-test, benchmark, and XML documentation guidance into AGENTS.md, preserving examples and explicit file scopes,
  • Updated DocFX hosting to DHI nginx and the codebeltnet/docfx:2 image; configured separate member pages, the shared style template, and sitemap metadata,
  • Updated contributor test commands for the Microsoft.Testing.Platform runner,
  • Updated service-update automation to resolve the next patch from stable Git tags, reuse pending changelog entries, and preserve their content.

Removed

  • Direct test dependency on Microsoft.Testing.Extensions.CodeCoverage,
  • Deprecated .github/copilot-instructions.md; its guidance is maintained in AGENTS.md.

Fixed

  • CoordinatedUniversalTime.MinValue now consistently represents 0001-01-01T00:00:00.0000000Z, preventing local time-zone offsets from changing the default AccessKey.ValidFrom value.

0.5.12 - 2026-09-14

This is a patch release focused on test infrastructure modernization, build system improvements, and dependency upgrades to their latest compatible versions across all supported target frameworks.

Added

  • global.json file to configure Microsoft.Testing.Platform as the default test runner for the repository, ensuring consistent test execution behavior.

Changed

  • Cuemon.Extensions.IO upgraded to 10.7.1,
  • Codebelt.Extensions.Xunit.App upgraded to 12.0.1,
  • Microsoft.NET.Test.Sdk upgraded to 18.10.0 for improved testing infrastructure,
  • MinVer upgraded to 8.0.0,
  • Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json upgraded to 5.0.12,
  • xUnit testing framework updated to 4.0.1 (xunit.v3, xunit.v3.runner.console) and xUnit Visual Studio runner to 4.0.0 for enhanced .NET ecosystem integration,
  • CONTRIBUTING.md restructured with clarified build and test guidance, updated repository shape documentation, and improved integration testing instructions to match current CI practices,
  • Build infrastructure updated to use Microsoft.Testing.Extensions.CodeCoverage for improved code coverage reporting.

Removed

  • coverlet.msbuild and coverlet.collector packages replaced by Microsoft.Testing.Extensions.CodeCoverage for standardized code coverage collection within the Microsoft Testing Platform ecosystem.

0.5.11 - 2026-08-17

This is a patch release that consolidates test infrastructure, adds comprehensive editor configuration for code style consistency, and upgrades dependencies to their latest compatible versions.

Added

  • Editor configuration file (.editorconfig) defining consistent code styling conventions across the repository, including character encoding, line endings, indentation, and diagnostics suppression for known framework compatibility patterns.

Changed

  • Cuemon.Extensions.IO upgraded to 10.7.0,
  • Codebelt.Extensions.Xunit.App upgraded to 11.2.1,
  • Microsoft.NET.Test.Sdk upgraded to 18.9.0 for improved testing infrastructure,
  • Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json upgraded to 5.0.11,
  • Docker test environments consolidated from separate .NET 9 and .NET 10 images into a single unified codebeltnet/ubuntu-testrunner:8-9-10-11 image, reducing configuration duplication and simplifying test environment setup.

0.5.10 - 2026-07-26

This is a patch release that focuses on package dependency upgrades and build system improvements.

Changed

  • Cuemon.Extensions.IO upgraded to 10.5.5,
  • Codebelt.Extensions.Xunit.App upgraded to 11.1.2,
  • Microsoft.NET.Test.Sdk upgraded to 18.8.1 for improved testing infrastructure,
  • Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json upgraded to 5.0.10,
  • Code analyzers enabled with Recommended analysis mode and style enforcement enforced in build process,
  • MinVer tag prefix configured to recognize v-prefixed version tags,
  • nginx base image version constraint in .docfx/Dockerfile.docfx relaxed to allow patch-level security updates within the 1.31 minor version.

0.5.9 - 2026-07-02

This is a minor release that adds DocFX API documentation structure and improves CI deployment safety.

Added

  • DocFX API documentation pages for all public APIs in Codebelt.SharedKernel and security types, including namespace overviews, type pages with usage examples, and extension member tables,

Changed

  • Cuemon.Extensions.IO upgraded to 10.5.4,
  • Codebelt.Extensions.Xunit.App upgraded to 11.1.1,
  • Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json upgraded to 5.0.9,
  • Microsoft.NET.Test.Sdk upgraded to 18.7.0 for improved testing infrastructure,
  • nginx base image to 1.31.2 in .docfx/Dockerfile.docfx for latest security and stability patches,
  • docfx.json configured to separate namespace and type overwrite files from generated content,
  • AGENTS.md extended with comprehensive DocFX maintenance requirements and expectations for API documentation,

Fixed

  • deploy job condition in ci-pipeline.yml to explicitly verify success of all dependent jobs and account for skipped optional matrix runs.

0.5.8 - 2026-06-06

This is a service update that focuses on package dependencies.

0.5.7 - 2026-05-27

This is a patch release that improves test coverage, infrastructure resilience, and code quality through CI/CD enhancements, package updates, and developer guidance.

Added

  • Optional macOS test matrix in ci-pipeline.yml with conditional job gating, enabling ARM64 and X64 architecture testing when explicitly triggered.

Changed

  • Microsoft.NET.Test.Sdk upgraded to 18.6.0,
  • coverlet.collector and coverlet.msbuild upgraded to 10.0.1,
  • .github/copilot-instructions.md extended with comprehensive code coverage prohibition guidance and refactoring best practices,
  • ci-pipeline.yml enhanced with test result evaluation quality gate and improved platform-specific test orchestration,
  • Test coverage expanded across TokenTest.cs, TimeToLiveTest.cs, CorrelationIdTest.cs, ClockSkewTest.cs, and SecretTest.cs with additional test cases.

0.5.6 - 2026-04-18

This is a service update that focuses on package dependencies.

0.5.5 - 2026-03-29

This is a service update that focuses on package dependencies.

Changed

  • Dependencies upgraded: Cuemon.Extensions.IO to 10.5.0, Codebelt.Extensions.Xunit.App to 11.0.8, Savvyio.Domain, Savvyio.Extensions.Newtonsoft.Json, and Savvyio.Extensions.Text.Json to 5.0.5, and coverlet.collector/coverlet.msbuild to 8.0.1,
  • Directory.Build.targets now reads PackageReleaseNotes.txt via System.IO.File.ReadAllText instead of ReadLinesFromFile, preserving blank lines in NuGet package release notes,
  • testenvironments.json Docker test environment split into dedicated .NET 9 and .NET 10 entries using versioned image tags (:9 and :10) instead of a single combined image,
  • service-update.yml fixed spurious trailing whitespace in the ENTRY bash template for the service-update workflow,
  • bump-nuget.py extended SOURCE_PACKAGE_MAP with the carter → Codebelt.Extensions.Carter package mapping.

0.5.4 - 2026-02-28

This is a service update that focuses on package dependencies.

0.5.3 - 2026-02-21

This is a service update that focuses on package dependencies.

0.5.2 - 2026-02-15

This is a service update that focuses on package dependencies.

0.5.1 - 2026-01-24

This is a service update that focuses on package dependencies.

0.5.0 - 2025-11-15

This is a major release that focuses on adapting the latest .NET 10 release (LTS) in exchange for current .NET 8 (LTS).

To ensure access to current features, improvements, and security updates, and to keep the codebase clean and easy to maintain, we target only the latest long-term (LTS), short-term (STS) and (where applicable) cross-platform .NET versions.

0.4.6 - 2025-10-20

This is a service update that focuses on package dependencies.

0.4.5 - 2025-09-16

This is a service update that focuses on package dependencies.

0.4.4 - 2025-08-26

This is a service update that focuses on package dependencies.

0.4.3 - 2025-05-29

This is a service update that focuses on package dependencies.

0.4.2 - 2025-04-19

This is a service update that focuses on package dependencies.

0.4.1 - 2025-01-31

Purely an ALM release. No changes to the codebase.

0.4.0 - 2024-11-13

Codebelt.SharedKernel

Purely an ALM release. No changes to the codebase.

0.3.0 - 2024-09-08

Codebelt.SharedKernel

Purely an ALM release. No changes to the codebase.

0.2.0 - 2024-04-11

Added

Codebelt.SharedKernel

  • Token record in the Codebelt.SharedKernel namespace that represents an object that can be used for storing sensitive data
  • TokenOptions class in the Codebelt.SharedKernel namespace that specifies options that is related to the Token record
  • CorrelationId record in the Codebelt.SharedKernel namespace that represents an object that can be used as unique identifier that help you trace requests across multiple services in a distributed system

0.1.0 - 2024-04-03

Added

Codebelt.SharedKernel

  • AccessKey record in the Codebelt.SharedKernel.Security namespace that represents an object that can be used for API key-based authentication and similar
  • AccessKeyExtensions class in the Codebelt.SharedKernel.Security namespace that consist of extension methods for the AccessKey record: IsValid
  • AccessKeyOptions class in the Codebelt.SharedKernel.Security namespace that specifies options that is related to the AccessKey record
  • Secret record in the Codebelt.SharedKernel.Security namespace that represents an object that can be used for storing sensitive data
  • ClockSkew record in the Codebelt.SharedKernel namespace that represents an object that can be used to warrant for clock skew related scenarios such as authentication
  • ComparableValueObject class in the Codebelt.SharedKernel namespace that provides an implementation of SingleValueObject{T} tailored for handling a single value that implements the IComparable{T} interface
  • CoordinatedUniversalTime record in the Codebelt.SharedKernel namespace that represents an object that can be used when you need a timestamp that is based on an absolute time (UTC)
  • TimeToLive record in the Codebelt.SharedKernel namespace that represents an object that can be used when issuing authentication tokens or similar (TTL)