- Metadata:
- Updated to libphonenumber v8.13.51
- Metadata:
- Updated to libphonenumber v8.13.50
- Metadata:
- Updated to libphonenumber v8.13.49
- Metadata:
- Updated to libphonenumber v8.13.48
- Metadata:
- Updated to libphonenumber v8.13.47
- Metadata:
- Updated to libphonenumber v8.13.46
- Metadata:
- Updated to libphonenumber v8.13.45
- Metadata:
- Updated to libphonenumber v8.13.44
- Metadata:
- Updated to libphonenumber v8.13.43
- Metadata:
- Updated to libphonenumber v8.13.42
- Metadata:
- Updated to libphonenumber v8.13.40
- Metadata:
- Updated to libphonenumber v8.13.39
- Metadata:
- Updated to libphonenumber v8.13.38
- Metadata:
- Updated to libphonenumber v8.13.37
- Metadata:
- Updated to libphonenumber v8.13.36
- Metadata:
- Updated to libphonenumber v8.13.35
- Metadata:
- Updated to libphonenumber v8.13.34
- Metadata:
- Updated to libphonenumber v8.13.33
- Added Typescript declaration files
- Metadata:
- Updated to libphonenumber v8.13.32
- Bugfix:
- Restored
client/index.js
to ES5 (was generated with ESNEXT in v1.142.0)
- Restored
- Metadata:
- Updated to libphonenumber v8.13.31
- Metadata:
- Updated to libphonenumber v8.13.30
- Metadata:
- Updated to libphonenumber v8.13.29
- Metadata:
- Updated to libphonenumber v8.13.28
- Metadata:
- Updated to libphonenumber v8.13.27
- Upgraded to Google Closure Compiler and Library 20230802.0.0
- Client: Replaced global scope modification with proper CJS support using module.exports
- Metadata:
- Updated to libphonenumber v8.13.26
- Metadata:
- Updated to libphonenumber v8.13.25
- Metadata:
- Updated to libphonenumber v8.13.24
- Metadata:
- Updated to libphonenumber v8.13.23
- Metadata:
- Updated to libphonenumber v8.13.22
- Metadata:
- Updated to libphonenumber v8.13.21
- Metadata:
- Updated to libphonenumber v8.13.20
- Metadata:
- Updated to libphonenumber v8.13.19
- Metadata:
- Updated to libphonenumber v8.13.18
- Metadata:
- Updated to libphonenumber v8.13.17
- Metadata:
- Updated to libphonenumber v8.13.16
- Metadata:
- Updated to libphonenumber v8.13.15
- Metadata:
- Updated to libphonenumber v8.13.14
- Metadata:
- Updated to libphonenumber v8.13.13
- Metadata:
- Updated to libphonenumber v8.13.11
- Metadata:
- Updated to libphonenumber v8.13.10
- Metadata:
- Updated to libphonenumber v8.13.9
- Metadata:
- Updated to libphonenumber v8.13.8
- Metadata:
- Updated to libphonenumber v8.13.7
- Metadata:
- Updated to libphonenumber v8.13.6
- Metadata:
- Updated to libphonenumber v8.13.5
- Metadata:
- Updated to libphonenumber v8.13.4
- Metadata:
- Updated to libphonenumber v8.13.3
- Metadata:
- Updated to libphonenumber v8.13.2
- Metadata:
- Updated to libphonenumber v8.13.1
- Metadata:
- Updated to libphonenumber v8.13.0
- Metadata:
- Updated to libphonenumber v8.12.57
- Metadata:
- Updated to libphonenumber v8.12.56
- Metadata:
- Updated to libphonenumber v8.12.55
- Metadata:
- Updated to libphonenumber v8.12.54
- Metadata:
- Updated to libphonenumber v8.12.53
- Metadata:
- Updated to libphonenumber v8.12.52
- Metadata:
- Updated to libphonenumber v8.12.51
- Metadata:
- Updated to libphonenumber v8.12.50
- Metadata:
- Updated to libphonenumber v8.12.49
- Metadata:
- Updated to libphonenumber v8.12.48
- Metadata:
- Updated to libphonenumber v8.12.47
- Metadata:
- Updated to libphonenumber v8.12.46
- Metadata:
- Updated to libphonenumber v8.12.45
- Metadata:
- Updated to libphonenumber v8.12.44
- Metadata:
- Updated to libphonenumber v8.12.43
- Metadata:
- Updated to libphonenumber v8.12.42
- Metadata:
- Updated to libphonenumber v8.12.41
- Metadata:
- Updated to libphonenumber v8.12.40
- Metadata:
- Updated to libphonenumber v8.12.39
- Metadata:
- Updated to libphonenumber v8.12.38
- Metadata:
- Updated to libphonenumber v8.12.37
- Metadata:
- Updated to libphonenumber v8.12.36
- Metadata:
- Updated to libphonenumber v8.12.35
- Metadata:
- Updated to libphonenumber v8.12.34
- Metadata:
- Updated to libphonenumber v8.12.33
- Metadata:
- Updated to libphonenumber v8.12.32
- API:
- Updated
validatePhoneNumber
andparsePhoneNumber
to makeregionCode
parameter optionalvalidatePhoneNumber
: IfregionCode
is omitted, the phone number is validated based on the region inferred from the phone number itselfparsePhoneNumber
: TheregionCode
can be safely omitted if the phone number string contains "+" followed by the country code (e.g., international, E.164, or RFC3966 formats)- Note that the handler needs to have already been instantiated with metadata for the expected region(s)
- Added
inferPhoneNumberType
andinferPhoneNumberRegion
methods - Added
validateLength
method to perform length-only validations - Added
inputDigitAndRememberPosition
andgetRememberedPosition
methods to the AsYouTypeFormatter
- Updated
- Metadata:
- Updated to libphonenumber v8.12.31
- Metadata:
- Updated to libphonenumber v8.12.30
- Metadata:
- Updated to libphonenumber v8.12.28
- Metadata:
- Updated to libphonenumber v8.12.27
- Metadata:
- Updated to libphonenumber v8.12.26
- Metadata:
- Updated to libphonenumber v8.12.25
- Metadata:
- Updated to libphonenumber v8.12.24
- Metadata:
- Updated to libphonenumber v8.12.23
- Metadata:
- Updated to libphonenumber v8.12.22
- Metadata:
- Updated to libphonenumber v8.12.21
- Metadata:
- Updated to libphonenumber v8.12.18
- Metadata:
- Updated to libphonenumber v8.12.17
- Metadata:
- Updated to libphonenumber v8.12.16
- Switched build from Google Closure Compiler Service to google-closure-compiler npm package
- Metadata:
- Updated to libphonenumber v8.12.15
- Metadata:
- Updated to libphonenumber v8.12.14
- Metadata:
- Updated to libphonenumber v8.12.13
- Metadata:
- Updated to libphonenumber v8.12.12
- Metadata:
- Updated to libphonenumber v8.12.11
- Metadata:
- Updated to libphonenumber v8.12.10
- Metadata:
- Updated to libphonenumber v8.12.9
- Metadata:
- Updated to libphonenumber v8.12.8
- Metadata:
- Updated to libphonenumber v8.12.7
- Metadata:
- Updated to libphonenumber v8.12.6
- Metadata:
- Updated to libphonenumber v8.12.5
- Metadata:
- Updated to libphonenumber v8.12.4
- Metadata:
- Updated to libphonenumber v8.12.3
- Metadata:
- Updated to libphonenumber v8.12.2
- Metadata:
- Updated to libphonenumber v8.12.1
- Metadata:
- Updated to libphonenumber v8.11.5
- Metadata:
- Updated to libphonenumber v8.11.4
- Metadata:
- Updated to libphonenumber v8.11.3
- Metadata:
- Updated to libphonenumber v8.11.2
- Metadata:
- Updated to libphonenumber v8.11.1
- Metadata:
- Updated to libphonenumber v8.11.0
- Metadata:
- Updated to libphonenumber v8.10.23
- Metadata:
- Updated to libphonenumber v8.10.22
- Metadata:
- Updated to libphonenumber v8.10.21
- Metadata:
- Updated to libphonenumber v8.10.20
- Metadata:
- Updated to libphonenumber v8.10.19
- Metadata:
- Updated to libphonenumber v8.10.18
- Metadata:
- Updated to libphonenumber v8.10.16
- Metadata:
- Updated to libphonenumber v8.10.15
- Metadata:
- Updated to libphonenumber v8.10.14
- Metadata:
- Updated to libphonenumber v8.10.13
- Metadata:
- Updated to libphonenumber v8.10.12
- Metadata:
- Updated to libphonenumber v8.10.11
- Metadata:
- Updated to libphonenumber v8.10.10
- Metadata:
- Updated to libphonenumber v8.10.9
- Development:
- Add
publishConfig
for public registry
- Add
- Metadata:
- Updated to libphonenumber v8.10.8
- Metadata:
- Updated to libphonenumber v8.10.7
- Metadata:
- Updated to libphonenumber v8.10.6
- Metadata:
- Updated to libphonenumber v8.10.5
- Metadata:
- Updated to libphonenumber v8.10.4
- Metadata:
- Updated to libphonenumber v8.10.3
- Metadata:
- Updated to libphonenumber v8.10.2
- Metadata:
- Updated to libphonenumber v8.10.1
- Metadata:
- Updated to libphonenumber v8.10.0
- Metadata:
- Updated to libphonenumber v8.9.16
- Metadata:
- Updated to libphonenumber v8.9.15
- Metadata:
- Updated to libphonenumber v8.9.14
- Metadata:
- Updated to libphonenumber v8.9.13
- Metadata:
- Updated to libphonenumber v8.9.12
- Metadata:
- Updated to libphonenumber v8.9.10
- Recompiled with Google Closure Compiler Service
- Metadata:
- Updated to libphonenumber v8.9.9
- Metadata:
- Updated to libphonenumber v8.9.8
- Metadata:
- Updated to libphonenumber v8.9.7
- Metadata:
- Updated to libphonenumber v8.9.6
- Metadata:
- Updated to libphonenumber v8.9.5
- Metadata:
- Updated to libphonenumber v8.9.4
- Metadata:
- Updated to libphonenumber v8.9.3
- Metadata:
- Updated to libphonenumber v8.9.2
- Updated to Closure library v20180204
- Metadata:
- Updated to libphonenumber v8.9.1
- Metadata:
- Updated to libphonenumber v8.8.11
- Includes new metadata for XK with country code +383 (no longer copied from MC +377)
- Metadata:
- Updated to libphonenumber v8.8.10
- Updated to Closure library v20171203
- Metadata:
- Updated to libphonenumber v8.8.9
- Metadata:
- Updated to libphonenumber v8.8.8
- Metadata:
- Updated to libphonenumber v8.8.7
- Metadata:
- Updated to libphonenumber v8.8.6
- Metadata:
- Updated to libphonenumber v8.8.5
- Metadata:
- Updated to libphonenumber v8.8.4
- Metadata:
- Updated to libphonenumber v8.8.3
- Metadata:
- Updated to libphonenumber v8.8.2
- Metadata:
- Updated to libphonenumber v8.8.1
- Metadata:
- Updated to libphonenumber v8.8.0
- API:
-
Fixed truncation of phone numbers with multiple leading zeros (e.g., KR
00798 123 4567
and JP0077-7012
) -
Tightened handling of
phoneObj
with improper leading zeros innationalNumber
property- A
phoneObj
with a leading zero in thenationalNumber
property is technically an invalidphoneObj
(unless it's an Italian leading zero). In previous versions of fullstack-phone, such phone objects were handled leniently by using theisLeadingZeroPossible
API of libphonenumber during conversion to protocol buffer format. Due to the removal of isLeadingZeroPossible, it is no longer possible to maintain this leniency. All leading zeros are thus passed to libphonenumber as-is. - For example, GB
{ countryCode: '44', nationalNumber: '01212345678' }
should not have the leading 0 (national prefix) innationalNumber
, and will no longer format properly or pass validation. - To convert phone objects with invalid leading zeros to the proper format, convert them to strings as follows and pass them through
parsePhoneNumber
(with anyregionCode
). This should have no effect on valid phone objects:
var invalidPhoneObj = { countryCode: '44', nationalNumber: '01212345678', // GB number improperly including national prefix 0 extension: '123' }; var phoneString = '+' + invalidPhoneObj.countryCode + invalidPhoneObj.nationalNumber + (invalidPhoneObj.extension ? ';' + invalidPhoneObj.extension : ''); // add extension if it exists var validPhoneObj = phoneHandler.parsePhoneNumber(phoneString, 'US'); // regionCode is irrelevant if string starts with '+' // > { countryCode: '44', nationalNumber: '1212345678', extension: '123' } // valid GB phoneObj without leading 0
- A
-
- Metadata:
- Updated to libphonenumber v8.7.1
- API:
- Refactored into server & client modules for easy inclusion
- Made handler instantiable instead of a singleton
- Changed
loadMeta
to return full metadata when called with no arguments - Switched parameter order of
getExampleNumberForType
to match other APIs (regionCode
last) - Changed
PHONE_INVALID_FOR_COUNTRY
error message toPHONE_INVALID_FOR_REGION
(for clarity) - Renamed
createHandler
tocreatePhoneHandler
to make it more distinct in case anyone uses a<script>
tag to loadclient/index.js
and it gets added to thewindow
object
- Metadata:
- Updated to libphonenumber v8.5.2
- Updated to Closure library v20170626
- Backported API changes from 0.1.0 but based on libphonenumber v7.7.5
- Metadata:
- libphonenumber v7.7.5
- Closure library v20170626
- Initial version that requires copying generated files and modifying paths