Skip to content

fix: remove affine conversions and add Rankine - #43

Merged
ScottishTapWater merged 1 commit into
mainfrom
fix/remove-affine-conversions
Oct 25, 2026
Merged

ScottishTapWater merged 1 commit into
mainfrom
fix/remove-affine-conversions

Conversation

@ScottishTapWater

Copy link
Copy Markdown
Contributor

Summary

Remove Fahrenheit helpers and the offset-based conversion API. A temperature difference currently shares the same Temperature type as a temperature reading, so an affine accessor can silently apply an absolute offset to a difference. We will revisit affine scales as a separate feature after settling their value semantics.

Add Rankine as a scale-only Imperial temperature conversion (K = °R × 5/9). Update the package smoke test and README accordingly.

This deliberately removes the public UnitConversionAttribute API before it has external consumers.

Verification

  • Release solution build: 0 warnings, 0 errors.
  • Full suite: 1,013 passed, including 13 packaged integration tests.
  • Focused dotnet format --verify-no-changes --no-restore passed for changed C# files.
  • Independent production, test, and documentation reviews found no actionable issues.

The branch was rebased onto current main after the extension stack merged. Its resulting tree is identical to the verified local tree.

@ScottishTapWater
ScottishTapWater merged commit 9dfbdfe into main Oct 25, 2026
2 checks passed
@ScottishTapWater
ScottishTapWater deleted the fix/remove-affine-conversions branch October 25, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant