Skip to content

v0.1.14: timezone validation and lookup fixes

Latest

Choose a tag to compare

@cyanheads cyanheads released this 17 Jul 01:46
v0.1.14
78cb128

timezone validation and lookup fixes

Fixes ref_timezone_convert, ref_element_lookup, and ref_constant_lookup correctness gaps, plus two doc corrections.

Changed:

  • ref_element_lookup resolves international/IUPAC spellings (Aluminium, Caesium, Sulphur) via a new name-alias map (#34)
  • ref_unit_convert description disambiguates mt (metric tonne, 1000 kg) vs t (US short ton, 907.18 kg) (#35)

Fixed:

  • ref_timezone_convert rejects out-of-range calendar components instead of silently rolling over via Date.UTC() (#32)
  • ref_timezone_convert rejects DST spring-forward-gap datetimes instead of returning a non-invertible UTC equivalent (#37)
  • ref_constant_lookup reports match_strategy: "exact_name" for name queries, not "exact_symbol" (#38)
  • README ref_constant_lookup entry count corrected from ~360 to 32 (#39)

236 tests pass; bun run devcheck clean.

CHANGELOG v0.1.14