Most phone validation is Google's libphonenumber metadata, repackaged. Upstream releases about every 2 weeks: 21 releases from v9.0.24 (2026-02-13) to v9.0.45 (2026-12-04). Each repackager ships whatever version it last bundled. I measured how far the popular npm packages are behind, in numbers a sign-up form would reject.
Method (all in `run.sh`, raw output in `output.txt`)
1. diffmeta.py downloads upstream PhoneNumberMetadata.xml at tags v9.0.24 and v9.0.45. It lists every region whose per-type nationalNumberPattern/possibleLengths changed: 105 regions. It then rejection-samples random digit strings of valid lengths whose classification differs between the two versions (up to 12 per region, seeded, so samples.json is reproducible). That gave 444 numbers: 336 newly valid, 78 newly invalid (retired ranges), 30 with a changed type. 2. Truth is Python phonenumbers 9.0.45, a line-by-line port released the same day as upstream. I cross-checked the sampler against phonenumbers 9.0.24: it reproduces exactly 336/78/30. 3. Each JS library ran isValidForRegion-equivalent checks plus getType on the same E.164 strings (js/check.mjs). For libphonenumber-js I validate against the sampled region, because shared calling codes (+590 BL/MF/GP, +61 CC/CX/AU, +212 EH/MA) otherwise make it report the main country.
Results
| library (version, release date) | upstream metadata | now-valid numbers rejected | retired numbers accepted | type wrong | regions affected | |---|---|---|---|---|---| | libphonenumber-js 1.13.18 (2026-12-03) | current | 0 / 366 | 0 | 0 | 0 | | google-libphonenumber 3.2.48 (2026-10-26) | 9.0.42 (agrees on 444/444) | 33 | 15 | 6 | 16 | | awesome-phonenumber 7.8.0 (2026-02-18) | 9.0.24 (README: "Uses libphonenumber v9.0.24") | 336 | 66 | 30 | 98 |
Examples that awesome-phonenumber 7.8.0 returns as valid=false possible=true type=unknown, all valid in 9.0.45 (output.txt):
US +12743982179 9.0.45: FIXED_LINE_OR_MOBILEDE +4917046557744 9.0.45: MOBILEJP +816012239551 9.0.45: MOBILEAU +61496066676 9.0.45: MOBILECN +8616102063550 9.0.45: MOBILESG +6589814828 9.0.45: MOBILETR +905566618489 9.0.45: MOBILENG +2349105737168 9.0.45: MOBILE(26 major countries are listed in the output.) google-libphonenumber's misses are in ranges added upstream in 9.0.43–9.0.45 (2026-11-06 to 12-04). They're mostly mobile: Pakistan +92 39x, Ecuador +593 93x, Georgia +995 500, Senegal +221 79x, Yemen +967 72x, Mauritania +222 77x, Estonia +372 546/547, Hong Kong +852 845. Burkina Faso and Algeria fixed lines, and Korean UAN 15xx/18xx, are also missed.
Retired numbers still accepted. Example: +22981902850, an 8-digit Benin number from before the 10-digit migration. Both stale libraries call it valid, so they don't flag numbers that can no longer be dialled.
Type changes. Botswana +267 79201185 is MOBILE upstream but VOIP in awesome-phonenumber. Guyana +592 5102990 is FIXED_LINE upstream but MOBILE in google-libphonenumber. This matters if you only send SMS to MOBILE numbers.
Takeaways
- "Valid" here means the number is in an allocated range. It doesn't mean the number is in service. A stale library turns real new subscribers into hard form errors (
valid=falsewithpossible=true). If you can't upgrade, fall back topossibleinstead ofvalid. npm i awesome-phonenumber@latestdoesn't help: 7.8.0 is the latest release, and the repo's last push was 2026-02-18. Earlier "update libphonenumber" issues (#107, #111) were closed. I found no open one for 9.0.25+.- google-libphonenumber's version string (3.2.x) doesn't tell you the upstream metadata version. Its README line is the only hint. Checking
samples.jsonagainst severalphonenumbersversions identifies it exactly (9.0.42). - libphonenumber-js and Python
phonenumbersboth tracked upstream within days.
What the docs say
The libphonenumber release notes list the changed regions per release ("Updated phone metadata for region code(s): …"). Neither repackager's docs give their metadata lag or tell you how to check it. awesome-phonenumber's README says "Uses libphonenumber v9.0.24". google-libphonenumber's npm page doesn't state the bundled upstream version.
Caveats
The sampled numbers are random strings inside changed ranges, not real subscribers, so the counts measure ranges, not people. Up to 12 samples per region means counts aren't weighted by population. Only +1 numbers in the US/CA set appear for NANP, so this doesn't prove which specific area codes are new.