ADR: Technology versions
- Status
- accepted
- Date
- 2026-10-03
Every NuGet and npm package this repository names, the .NET SDK and runtime, the SQL build tool and Node.js: the version in use, the newest stable version on the day it was read, and the reason when the two differ.
In plain words
This page lists the libraries, the runtime and the build tools the site is built from, which version each uses, and the newest stable version available when the list was checked. Where the site is behind, the reason is written beside it. A test reads this table against the project files, so the table cannot say one version while the code uses another.
What that is worth: a developer and the organization can see from one page what the site runs on, what was current on 3 October 2026, and why anything was held back. The Latest stable column is only as fresh as the last read.
How the list was read
Every "latest stable" below was read live on 2026-10-03 from nuget.org, the npm registry, Docker Hub, the Node.js release schedule and Microsoft's .NET release metadata, through the runner on the build machine and never from memory. Preview, beta and release-candidate versions are left out of "latest stable". TechnologyVersionsTests holds the "In use" column to the project files: every package reference in api/ and every dependency in package.json has a row, each row's version is the one the project uses, and a row that is behind carries a reason.
C# 14, where it landed
The language moved with .NET 10. Each feature was used only where it removes code or says the intent more plainly:
- Extension members.
StandingRules in api/TheYard.Domain/Shared/Auction/StandingRules.cs gives Vehicle a RaisedTo method and a Reserve property, the one copy of the rule the buyer's bids, the room's bids and the room's price to beat all use; it replaced three hand-written copies. UtcBuckets in api/TheYard.Application/Shared/History/UtcBuckets.cs gives DateTimeOffset the UtcDay, UtcHour and UtcMinute properties and replaced five helper methods spread across four classes.
- Null-conditional assignment.
cosmos?.Logger = ... in api/TheYard.Api/Composition/Startup.cs (since 1.0.3.188 document.Store?.Logger = ... in api/TheYard.Api/Shared/Hosted/StoreAnnouncement.cs) replaced a four-line null check.
- The
field keyword. Not used. No property here wraps a backing field that field would remove, and adding one to use the keyword would be the opposite of the point.
The test that holds the table above to the project files, read from this build:
private sealed record Row(string Package, string InUse, string Latest, string Why);
private static Dictionary<string, Row> Rows()
{
string record = File.ReadAllText(Path.Combine(Repo.Root(), "docs", "decisions", "ADR-089-technology-versions.md"));
var rows = new Dictionary<string, Row>(StringComparer.OrdinalIgnoreCase);
foreach (Match row in Regex.Matches(record, @"^\| ([^|]+?) \| ([^|]+?) \| ([^|]+?) \| ?([^|]*?) ?\|$", RegexOptions.Multiline))
{
string package = row.Groups[1].Value.Trim();
if (package is "Package" || package.StartsWith("---", StringComparison.Ordinal))
{
continue;
}
rows[package] = new Row(package, row.Groups[2].Value.Trim(), row.Groups[3].Value.Trim(), row.Groups[4].Value.Trim());
}
return rows;
}
[Fact]
public void Every_dotnet_package_reference_has_a_row_with_the_version_in_use()
{
var rows = Rows();
Assert.NotEmpty(rows);
var wrong = new List<string>();
foreach (string project in Directory.EnumerateFiles(Path.Combine(Repo.Root(), "api"), "*.csproj", SearchOption.AllDirectories))
{
foreach (Match reference in Regex.Matches(File.ReadAllText(project), @"<PackageReference Include=""([^""]+)"" Version=""([^""]+)"""))
{
string package = reference.Groups[1].Value;
string version = reference.Groups[2].Value;
if (!rows.TryGetValue(package, out var row))
{
wrong.Add($"{Path.GetFileName(project)} uses {package} {version}, which the record does not list");
}
else if (row.InUse != version)
{
wrong.Add($"{Path.GetFileName(project)} uses {package} {version} and the record says {row.InUse}");
}
}
}
Assert.True(wrong.Count == 0, string.Join(Environment.NewLine, wrong));
}
[Fact]
public void Every_front_end_package_has_a_row_with_the_version_in_use()
{
var rows = Rows();
using var manifest = JsonDocument.Parse(File.ReadAllText(Path.Combine(Repo.Root(), "package.json")));
var wrong = new List<string>();
foreach (string section in new[] { "dependencies", "devDependencies" })
{
foreach (var dependency in manifest.RootElement.GetProperty(section).EnumerateObject())
{
string version = dependency.Value.GetString()!.TrimStart('^', '~');
if (!rows.TryGetValue(dependency.Name, out var row))
{
wrong.Add($"package.json uses {dependency.Name} {version}, which the record does not list");
}
else if (row.InUse != version)
{
wrong.Add($"package.json uses {dependency.Name} {version} and the record says {row.InUse}");
}
}
}
Assert.True(wrong.Count == 0, string.Join(Environment.NewLine, wrong));
}
[Fact]
public void The_build_tools_in_the_record_are_the_ones_the_build_uses()
{
var rows = Rows();
string root = Repo.Root();
string sqlProject = File.ReadAllText(Path.Combine(root, "api", "TheYard.Database", "TheYard.Database.sqlproj"));
Assert.Contains($"Microsoft.Build.Sql/{rows["Microsoft.Build.Sql"].InUse}\"", sqlProject, StringComparison.Ordinal);
string node = rows["node (Docker build stage and CI)"].InUse;
Assert.Contains($"FROM mirror.gcr.io/library/node:{node}-alpine", File.ReadAllText(Path.Combine(root, "Dockerfile")), StringComparison.Ordinal);
Assert.Contains($"FROM mirror.gcr.io/library/node:{node}-alpine", File.ReadAllText(Path.Combine(root, "render", "Dockerfile")), StringComparison.Ordinal);
string ci = File.ReadAllText(Path.Combine(root, ".github", "workflows", "ci.yml"));
Assert.DoesNotMatch(new Regex(@"node-version: (?!" + node + @"\b)\d+"), ci);
}
[Fact]
public void Every_row_that_is_behind_says_why()
{
var unexplained = Rows().Values
.Where(row => row.InUse != row.Latest && row.Why.Length == 0)
.Select(row => $"{row.Package} is at {row.InUse} with {row.Latest} out and no reason given")
.ToList();
Assert.True(unexplained.Count == 0, string.Join(Environment.NewLine, unexplained));
}
Live from api/TheYard.Tests/TechnologyVersionsTests.cs, region versions, read from this build at 99df7a8.
Addendum, 14 October 2026: a package named only to raise its version
Two advisories published on 13 October cover System.Security.Cryptography.Pkcs 9.0.11 (GHSA-846f-f764-76mx, high, and GHSA-2fmv-rv2c-59x7, moderate). No project here names it: it arrives under SQL Server's client, Microsoft.Data.SqlClient 6.1.6, which the Entity Framework provider brings. NuGet's audit reports it as a warning, every warning is red, and the gate for 1.0.3.124 stopped at the build on it. TheYard.Infrastructure.csproj now names the package at 10.0.13, the patched release, so every project that reaches SQL Server's client resolves that version instead; nothing in the code calls it. The row above is held by TechnologyVersionsTests like every other. The reference can go once the provider brings a patched version on its own.
Where it sits
Outside the code: the project files, package.json and the Dockerfile, which TechnologyVersionsTests reads against this table. It cost a live read of five sources and one test. A package with a reason to stay behind gets a row that says why, and a new release changes the right-hand column the next time the list is read.
Addendum, 2026-10-20 (1.0.3.188): the null-conditional assignment moved
The example above names Composition/Startup.cs, which 1.0.3.188 retired; the same assignment is in Hosted/StoreAnnouncement.cs (ADR: The onion cut into vertical slices, rule 2).
Addendum, 2026-10-22 (1.0.4.31): the home page's table
On Steve's word at 14:20 Central ("we need to add a tech stack section to the home page"), after a post had called the site .NET 9 when it runs .NET 10, the home page gained a Tech stack table under the proof strip: Layer, What we use, Where it runs, Version and Proof, one panel with the header band and the gold bar, as the preview he picked showed. No version in it is typed by hand.
- Generated, not typed.
scripts/stack.mjs reads the project files' TargetFramework and PackageReference, package-lock.json, the Dockerfiles' FROM lines, the Bicep files and the workflow folder, and writes src/generated/stack.json through src/lib/stackDerive.ts; the panel (src/components/landing/TechStack/) renders only that file. src/lib/stackLayers.json names each row, where it runs and which file holds its version; every version, count and flag comes from that file. A row whose proof is not in the repository is left out rather than claimed (Stryker appears the day it is in package.json).
- A test fails CI when the table drifts.
src/lib/techStack.test.ts reads the same files through the bundler, derives the table with the same function, and fails when the committed file differs, with a test per layer and one for the chips; another holds every Proof link to a file or folder in this repository. The fix is one command, node scripts/stack.mjs.
- The one piece behind is said, not hidden. The job hunt's Function runs .NET 9 isolated while the site runs .NET 10; the row is flagged in the warning colour, worked out by comparing the two TargetFrameworks.
- Not a Vite step. The site's image builds the page from
src/ without the project files, and this project carries no Node types for the config to read the disk with, so the table is written by the script and held by the test instead of regenerated inside the build.
Addendum, 2026-10-25 (1.0.4.71): the flagged row cleared
The tech stack table flagged one row from 1.0.4.31: the job hunt's Function ran .NET 9 isolated while the site ran .NET 10. The flag was worked out from the two project files rather than written by hand, so it would clear itself once they matched. From 1.0.4.71 they do. The five projects under functions/ target net10.0, the Flex Consumption app runs dotnet-isolated 10.0 (infra/jobhunt.bicep, set on the app the same day), and the Worker packages are the versions NuGet listed as current on 25 October, read by the laptop that morning: Microsoft.Azure.Functions.Worker 2.52.0, Worker.Sdk 2.1.0, Extensions.Http 3.3.0 and Extensions.Timer 4.3.1 (unchanged). Flex Consumption in westus3 was read live that morning before anything moved, and it lists dotnet-isolated 10 with an end of support in November 2028. .NET 9 reaches its own end of support on 10 November 2026. The row now reads ".NET 10 isolated" in the ordinary colour, and no row is flagged. The flag stays in the code for the next piece that falls behind.
Addendum, 2026-12-01 (1.0.5.232): .NET 11
The table above was read again on 1 December 2026 from nuget.org and Microsoft's release metadata. The SDK is 11.0.100 (global.json, the Dockerfile's build stage and the dotnet action, held together by DotnetInstallTests), the runtime image is aspnet:11.0 on Ubuntu 26.04, and every project under api/, samples/ and server/ targets net11.0. The Microsoft packages built with the framework moved to 11.0.0 with it, except the EF Core family and Identity's EF Core store, which stay on 10.0.15, the newest .NET 10 patch: EF Core 11.0.0 asks Microsoft.Data.SqlClient 7.1.1, every Microsoft.Data.SqlClient.Extensions.Azure 7.x that carries its managed identity sign-in asks Azure.Identity 1.18.0, and the pin below holds 1.17.1 until a live read moves it. EF Core 10.0.15 brings SqlClient 6.1.7, which asks for exactly 1.17.1. The job hunt's Function and its projects stay on net10.0 until their own version (ADR: Moving to .NET 11 in four ships), so the home page's tech stack table flags that row again, as its addendum of 1.0.4.71 said it would.
Enforced by
One rule in the rulebook cites this record, each held by a test on every release.