Sodium has shipped three patch releases since the current pinned version (2.2.2). The upgrade is fully backward-compatible and delivers substantial performance gains that directly reduce the per-operation cost of every Set-Context and Get-Context call.
Why upgrade
| Release |
Change |
| v2.2.3 |
Per-call overhead cut 22–49% across all crypto operations; fail-fast input validation |
| v2.2.4 |
System.Management.Automation dependency bumped 7.4.0 → 7.4.12 |
| 2.2.5 |
Cold module import 37% faster (66.7 ms → 42.3 ms); parallel runspace startup −35% |
Impact on Context
The three Sodium functions used by Context (New-SodiumKeyPair -Seed, ConvertTo-SodiumSealedBox, ConvertFrom-SodiumSealedBox) have no breaking API changes. The version pin in #Requires on Get-Context.ps1 and Set-Context.ps1 is the only required source change.
Notable new capability (not currently used but available): -PublicKey on ConvertFrom-SodiumSealedBox is now optional — the public key can be derived internally from -PrivateKey.
Acceptance criteria
Sodium has shipped three patch releases since the current pinned version (2.2.2). The upgrade is fully backward-compatible and delivers substantial performance gains that directly reduce the per-operation cost of every
Set-ContextandGet-Contextcall.Why upgrade
System.Management.Automationdependency bumped 7.4.0 → 7.4.12Impact on Context
The three Sodium functions used by Context (
New-SodiumKeyPair -Seed,ConvertTo-SodiumSealedBox,ConvertFrom-SodiumSealedBox) have no breaking API changes. The version pin in#RequiresonGet-Context.ps1andSet-Context.ps1is the only required source change.Notable new capability (not currently used but available):
-PublicKeyonConvertFrom-SodiumSealedBoxis now optional — the public key can be derived internally from-PrivateKey.Acceptance criteria
#Requiresversion updated to2.2.5inGet-Context.ps1andSet-Context.ps1