*** Phone Number Validation Changelog ***

2026-07-25 - version 1.10.0
* New - Phone number display format setting: choose how saved numbers are shown on order screens, in order emails and on the order confirmation and My Account order pages — E.164 (default), International, or National. Numbers are still stored in E.164, so nothing sent to other plugins or integrations changes.
* New - Phone validation widget (country flag, dropdown and validation) now also loads on the WordPress user profile Billing Phone and Shipping Phone fields (Users → edit a user), and those fields save in E.164 just like the checkout.
* New - Developer: pnv_format_phone_for_display() template function and pnv_display_phone filter for formatting a stored number in your own templates.
* Fix - National numbers for countries where a leading zero is significant (for example Italy) now normalize to the correct E.164; number normalization is backed by libphonenumber.
* Dev - Added an automated test suite (unit, integration and end-to-end) with coverage across every country libphonenumber supports, plus WordPress Coding Standards checks.

2026-07-19 - version 1.9.1
* Fix - My Account address save: phone numbers are now validated and saved in E.164 format (with country code), matching the checkout behaviour. The account-page validation hook was bound to a non-existent WooCommerce action and never ran.

2026-05-29 - version 1.9.0
* New - AI/MCP support: registers WordPress Abilities API tools so any MCP connector (or the WooCommerce core MCP adapter) can validate phone numbers, look up orders by phone, read validation settings, and resolve country dial codes
* New - Ability "validate-phone": validate a number and return E.164, national, international and RFC3966 formats plus detected country, dial code and number type
* New - Ability "find-orders-by-phone": HPOS-aware order lookup by billing phone with distinct-customer fraud signal (emails masked)
* New - Ability "get-settings": expose the current phone validation configuration
* New - Ability "update-settings": update phone validation settings (default/preferred/excluded countries and all feature toggles) with strict validation and partial updates; the only write tool, so MCP clients confirm before running it
* New - Ability "get-country-dial-code": resolve the E.164 calling code for an ISO country
* Note - All abilities require the manage_woocommerce capability; all except update-settings are read-only

2026-05-15 - version 1.8.4
* Fix - Empty shipping phone field no longer triggers a "phone number is too short" notice when updating an order in the admin

2026-02-27 - version 1.8.3
* Fix - Option to remove placeholder text from the phone field
* Update - WordPress 7.0 and WC compatibility

2026-02-17 - version 1.8.2
* Fix - Checkout no longer freezes when user types "+" before any digit (format-as-you-type disabled; validation skipped when input has no digits)
* Fix - Norwegian (and other) phone numbers without spacing (e.g. 12346578) now validate correctly; national numbers are normalized before validation on classic and block checkout
* Fix - Block checkout: caret no longer jumps to end when moving the cursor or deleting digits in the phone field
* Fix - Country code always saved for billing/shipping (national-only normalized from selected country)
* Update - Phones saved as E.164 on order placement when using filter pnv_order_phone_e164 to change value before save

2026-02-10 - version 1.8.1
* Fix - Deferred license check to avoid false "License Required" notices
* Fix - Added HPOS compatibility declaration
* Fix - SQL query security improvements using %i placeholder
* Fix - Resolved {phone} literal text showing in saved addresses on block checkout

2026-02-06 - version 1.8.0
* New - Click-to-call tel: links on admin order pages (toggle via settings)
* New - WhatsApp link generator on admin order pages
* New - SMS link on admin order pages
* New - Copy phone to clipboard button on admin order pages
* New - Duplicate phone number warning metabox for fraud detection (only shows for different customers)
* New - Phone number display in WooCommerce order emails
* New - Phone format selector (International, E.164, National, RFC3966)
* New - Admin Order Settings section with toggles for phone actions and duplicate warning
* Update - Updated intl-tel-input library from v17.0.19 to v17.0.21
* Update - Reorganized settings into sections (General, Format, Email, Admin Order, Advanced)

2025-10-26 - version 1.7.2
* Update - Remove redundant log files

2025-10-26 - version 1.7.1
* Fix - Package release framework error

2025-10-23 - version 1.7
* Update - WC compatibility
* Update - New package release framework
* update - Localization strings

2025-08-21 - version 1.6
* New - Show selected country code on orders in admin
* New - Add filterable list of preferred flags for regions that share the same country code
* New - Add option to specify custom global phone number placeholder values
* New - Add phone number validation for manual orders created in admin
* Update - Phone number saving on my-account page more robust
* Update - Improve error message UX on block checkout
* Update - WC compatibility
* Fix - Block checkout phone spacing when "Show country code" is deselected


2025-07-08 - version 1.5
* Add - Make country code dropdown list filterable on checkout.
* Add - WooCommerce version compatibility bump.

2025-03-27 - version 1.4
* Add - WooCommerce version compatibility bump.
* Fix - Show correct country codes/flags for logged-in users with saved phone numbers.

2025-02-24 - version 1.3
* Add - String translation files for es_ES, de_DE, fr_FR, ru_RU, nl_NL, ja, zh_CN, sv_SE, fi, da_DK, el, tr_TR, he_IL, ko_KR, ar, id_ID, pt_BR
* Fix - Only enqueue scripts on My Account page if we're on the edit address page.
* Fix - Fix incorrect country flags on block checkout when using "Allowed countries" filter.
* Update - Deprecate allowed countries setting.

2025-01-09 - version 1.2
* Fix - QIT & Coding standards fixes.

2025-01-05 - version 1.1
* Add - Add option to force checkout even when phone validation errors are present.
* Add - Add phone field availability check on block checkout. If it's not, show an error message in admin.
* Add - Only show "Add shipping phone" option if classic shortcode method is used.

2025-01-01 - version 1.0
* Add -Initial release.
