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.
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 viaIntl.DateTimeFormat.formatRange.isDateInRange— inclusive date-range check.createFormatters(locale)— factory returning the locale-awareformat*functions pre-bound to one locale, for apps with a per-request/per-user locale.repository,homepage,bugs,keywordsfields inpackage.json.- Codecov coverage reporting and badge.
- Edge cases and locale correctness across
format*functions. - API ergonomics improvements.
- Expanded test coverage (v8 coverage reporting).
./arraymodule —groupBy,uniqueBy,sortBy../objectmodule —pick,omit.- Swiss-specific formatting —
formatPhone,formatIBAN. - Additional date utilities.
parseDurationInputand improvements toformatSecs/formatMinutes/formatHours/formatHoursDecimalfamily.
No functional changes.
- Initial release:
./format(date, duration, number),./string,./mathmodules.