diff --git a/CHANGELOG.md b/CHANGELOG.md index c3d2d20..6ca1757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,50 @@ +## 2.5.4 (2026-10-13) + +Fixes `common-phone-number` storing the wrong number when a user types the +country code. The field already shows a `+1 ` prefix, but the mask accepted any +digit in the first position, so typing `+1 (234) 567-8978` stored `1234567897`: +the typed 1 became the area code and the last digit was dropped. The validator +only counted digits, so the control stayed valid and the bad number reached the +app. In MSP DEAM this failed submission with +`should match pattern "^[2-9]([0-9]{9})$"`. The mask and prefix have behaved +this way since 1.0.0; no release flagged the shifted number as invalid. + +### Breaking + +- `common-phone-number`: a value whose first digit is 0 or 1 is now invalid + (`incompleteValue`, "