Skip to content

2.1.1

Latest

Choose a tag to compare

@riskihajar riskihajar released this 21 Feb 12:36

Bug Fixes

  • DateTime: Fixed meridiem variable shadowing that broke Indonesian time-of-day labels (pagi/siang/sore/malam)
  • DistanceDate: Fixed config key mismatch — terbilang.period.show.*terbilang.distance.show.*
  • DistanceDate: Fixed minute/second accumulation missing hours/minutes components
  • DistanceDate: Fixed leading separator in type() output and removed dead code
  • NumberToWords: Fixed double space in negative number output
  • LargeNumber: Fixed crash on zero and negative number inputs
  • Roman: Now throws InvalidNumber for values outside 1–3999 range (previously returned empty string)
  • Translations: Fixed Portuguese key shortlarge-number for abbreviation support
  • Translations: Fixed English typo fourtyforty
  • Translations: Fixed Indonesian month NopemberNovember

Tests

  • Comprehensive test rewrite: 34 → 271 tests (307 assertions)
  • Added TerbilangDistanceDateTest (previously zero coverage)
  • Full coverage across all 3 locales (en, id, pt)
  • Edge case coverage: zero, negatives, decimals, boundary values
  • Indonesian meridiem tests (pagi/siang/sore/malam)
  • Backward compatibility tests for deprecated methods

Full Changelog: 2.1.0...2.1.1