Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 2.14 KB

File metadata and controls

50 lines (37 loc) · 2.14 KB

Changelog

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.4.0] - 2026-07-08

Added

  • parseCHF — parse Swiss-formatted amounts (apostrophe/space thousands, .- marker, CHF/Fr./SFr. labels) back into a number.
  • isValidIBAN — mod-97 checksum validation, any country.
  • formatAHV / isValidAHV — Swiss AHV/OASI number formatting and EAN-13 checksum validation.
  • formatQRReference / isValidQRReference — Swiss QR-bill/ISR payment reference formatting and modulo-10-recursive checksum validation.
  • formatUID / isValidUID — Swiss UID/VAT number formatting and weighted mod-11 checksum validation.
  • isValidSwissPostalCode — validates 4-digit postal codes are in the assigned range.
  • isValidPhone — structural validation for Swiss phone numbers.
  • maskIBAN, maskAHV, maskPhone — mask sensitive identifiers for safe display in UIs/logs.
  • formatDateRange — locale-aware compact date range formatting via Intl.DateTimeFormat.formatRange.
  • isDateInRange — inclusive date-range check.
  • createFormatters(locale) — factory returning the locale-aware format* functions pre-bound to one locale, for apps with a per-request/per-user locale.
  • repository, homepage, bugs, keywords fields in package.json.
  • Codecov coverage reporting and badge.

[0.3.0] - 2026-06-29

Fixed

  • Edge cases and locale correctness across format* functions.
  • API ergonomics improvements.

Added

  • Expanded test coverage (v8 coverage reporting).

[0.2.0] - 2026-06-29

Added

  • ./array module — groupBy, uniqueBy, sortBy.
  • ./object module — pick, omit.
  • Swiss-specific formatting — formatPhone, formatIBAN.
  • Additional date utilities.
  • parseDurationInput and improvements to formatSecs/formatMinutes/formatHours/formatHoursDecimal family.

[0.1.1] - 2026-06-19

No functional changes.

[0.1.0] - 2026-06-19

Added

  • Initial release: ./format (date, duration, number), ./string, ./math modules.