Skip to content

v1.0.8 calc hardening

Choose a tag to compare

@AhmiDarrow AhmiDarrow released this 13 Aug 15:40
· 19 commits to main since this release

Alex's Craft Calc v1.0.8

Fixed

  • Soap calc hardening — non-finite oil amounts, superfat, water, and fragrance no longer poison batch totals (NaN/Infinity rejected; clamps use safe fallbacks)
  • Candle calc hardening — non-finite wax, fragrance load, vessel count, and wick diameter return a safe zero result instead of NaN
  • Percent / ceiling helpers — weightsMatchCeiling and isPercentTotalLocked reject non-finite inputs so NaN cannot unlock results
  • Soap UI — changing units converts additive weights; presets and Custom clear leftover additives

Tests

  • Adversarial coverage: empty/zero/negative oils, NaN/∞ oils and clamps, unknown oil ids, candle NaN paths, wick NaN diameter, import garbage / null amounts / prototype-pollution keys