Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-international-phone

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-international-phone - npm Package Versions

13
7

4.2.0

Diff

Changelog

Source

4.2.0 (2024-01-15)

Bug Fixes

  • CountrySelector: render preferred country list divider as hr element (d1df651)
  • CountrySelector: update countries ordering logic (bcb8b89)

Features

  • component: add "preferredCountries" feature (ed8f6e5), closes #137
goveo
published 4.1.0 •

Changelog

Source

4.1.0 (2024-01-11)

Features

  • add disableFocusAfterCountrySelect prop (f2750e0)
  • usePhoneInput: add ability to skip focus on input after country change in country setter (8277809)
goveo
published 4.0.4 •

Changelog

Source

4.0.4 (2023-11-11)

Bug Fixes

  • country-data: add additional Australia formats (9453169)
goveo
published 4.0.3 •

Changelog

Source

4.0.3 (2023-11-02)

Bug Fixes

  • countryData: add country codes for Puerto Rico (411a441)
goveo
published 4.0.2 •

Changelog

Source

4.0.2 (2023-10-31)

Bug Fixes

goveo
published 4.0.1 •

Changelog

Source

4.0.1 (2023-10-27)

Bug Fixes

  • update Sweden format mask (1500e0b)
goveo
published 4.0.0 •

Changelog

Source

4.0.0 (2023-10-22)

Bug Fixes

  • allow type prefix if input is empty (08e5811)

  • CountrySelector: add library prefix to country selector list-item id (b45af25)

  • CountrySelector: fix country name overflow (09e7097)

  • fix dynamic format mask with disableDialCodeAndPrefix (5cb1e11)

  • forceDialCode: fix e164Phone value update when input is cleared (0c353e0)

  • getCursorPosition: reuse isNumeric utility function (65d8618)

  • getCursorPosition: update cursor position logic, fix cursor jump on disabled dial code values (5256439)

  • guess initial country when dial code is disabled (c79adc3)

  • handlePhoneChange: return current country on partial dial code match (dbbf20d)

  • history: ignore history events on empty input (9c781c1)

  • ignore input handling if user typed non digit character (b175b4e)

  • PhoneInput: make ref inherit inner input-ref (819b48d)

  • PhoneInput: rename formattedValue to displayValue in onChange metadata arg (3479ae5)

  • PhoneInput: support ref forwarding (f2d3de8)

  • rename displayValue to inputValue in onChange callback (e78a13e)

  • rename getCountryCurrentFormat to getCountryMaskFormat, add it to export (fca84d4)

  • rename getCountryMaskFormat helper function to getActiveFormattingMask (aec5e9e)

  • return country object instead of iso2 code from usePhoneInput and onChange (17c1365)

  • usePhoneInput: fix e164Phone value on setCountry (cec0700)

  • usePhoneInput: log error if an invalid country code is passed to setNewCountry (6098a99)

  • fix!: rename flag image component to FlagImage (c4b0abd)

  • fix(usePhoneInput)!: rename return property names (42e4ef2)

  • fix!: return E164 phone in onChange callback (939275a)

  • feat!: add support for multiple masks per country (f758bb3)

Features

  • add disableFormatting prop (e6ada39)
  • add inputRef prop (386f396)
  • add state property to the forwarded ref (e008c90)
  • disableFormatting: move disableFormatting prop to getCountryMaskFormat util function (935d6ff)
  • PhoneInput: add most used input props as top level props for easy integration (7a29744)

BREAKING CHANGES

  • FlagEmoji component is no longer exported, use FlagImage instead
  • "phone" is renamed to "inputValue", "e164Phone" is renamed to "phone"
  • phone value is unified to E164 format
  • the value of the country format can be of type object
goveo
published 4.0.0-canary.2 •

goveo
published 4.0.0-canary.1 •

goveo
published 3.1.2 •

Changelog

Source

3.1.2 (2023-08-23)

Bug Fixes

  • export guessCountryByPartialPhoneNumber, removeDialCode and getCountry helper functions (04d46aa)
  • remove country guess from initial value when disableDialCodeAndPrefix is true (d26b977)
  • set default value for country prop in guessCountryByPartialNumber and getCountry helpers (c539617)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc