Skip to content

Releases: google/libphonenumber

v8.8.4

17 Oct 09:52
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes. Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Porters only:

These changes affect porters who build the C++ metadata themselves (e.g. cpp/src/phonenumbers/metadata.cc) using our build tools:

  • Backwards-incompatible: the protobuf-java dependency used to build the C++ metadata changed from 2.5.0 to 3.0.0.
    • If you run mvn package from a directory above tools/java/cpp-build/pom.xml, you need to either install protoc such that the version is 3.0.0, or update the pom.xml in your clone to the version number you're using.
  • Deprecation fix: C++ geocoding build tools now use readdir, since readdir_r is deprecated.

Want to be notified of future releases? Join the discussion group!

v8.8.3

06 Oct 05:36
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!

v8.8.2

22 Sep 05:35
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!

v8.8.1

08 Sep 09:27
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!

v8.8.0

22 Aug 11:19
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains metadata changes and some code changes. Upgrading to the latest release is always encouraged since phone number information changes often!

New functionality in this release:

Improve parsing logic to be smarter about national-prefix detection & stripping based on possible-lengths (IS_POSSIBLE_LOCAL_ONLY and INVALID_LENGTH). Enables e.g. adding Iran short-codes starting with "096" without the need to hack IR's national prefix parsing config. Add constants for C++ PhoneNumberUtil enums' max values.

Full details in the release notes.

Note if you take advantage of this new functionality by changing your code, it will not necessarily be trivially easy to roll back to a previous version.

Thanks to all those who contributed by providing issue reports!

Want to be notified of future releases? Join the discussion group!

v8.7.1

03 Aug 11:28
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!

v8.7.0

21 Jul 09:49
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains metadata changes and some code changes. Upgrading to the latest release is always encouraged since phone number information changes often!

New functionality in this release:

  • New getSupportedCallingCodes() API in C++, Java, and JS to return all the calling codes that the library considers valid, both for geographical and non-geographical entities.
  • New isSmsServiceForRegion(PhoneNumber, RegionCode) API in C++ and Java short number info libraries. An SMS service is where the primary or only intended usage is to receive and/or send text messages (SMSs). This includes MMS as MMS numbers downgrade to SMS if the other party isn't MMS-capable.
  • Java public APIs that used to take in strings representing phone numbers or parts of phone numbers now take in CharSequence instead. This affects ShortNumberInfo and PhoneNumberUtil.

Heads-up:

  • In phonenumberutil.h, we removed most of the using std::* statements, leaving only using std::string, and changing phonenumberutil.cc and phonenumberutil_test.cc to prefix std:: for other usage in the code. If you were relying on these using statements, your build will likely stop compiling. This is not considered a breaking library change since depending on these is not considered good C++ practice, hence our not changing the major version number with this change; however if you were relying on us exporting these symbols, you will have to make similar changes to prefix the relevant std collections appropriately.

Porters only:

  • The is_sms_service metadata is serialized for the first time in C++ and JS metadata.
  • Documentation update for private variables VALID_PUNCTUATION and SINGLE_INTERNATIONAL_PREFIX, also renaming the latter from UNIQUE_INTERNATIONAL_PREFIX.

Full details in the release notes.

Note if you take advantage of this new functionality by changing your code,
it will not necessarily be trivially easy to roll back to a previous version.

Thanks to all those who contributed by providing issue reports and pull requests!

Want to be notified of future releases? Join the discussion group!

v8.6.0

06 Jul 05:15
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains metadata changes and some code changes. Upgrading to the latest release is always encouraged since phone number information changes often!

New functionality in this release:

  • Added a new enum for CountryCodeSource called UNSPECIFIED. This is used as a default value, and will be returned if someone calls parse() and then getCountryCodeSource() on the result. If users want an actual value for this then they should call parseAndKeepRawInput() instead; the values that were previously returned after calling this method will not change.

Changes affecting porters:

  • leading_zero_possible was removed from the metadata and all the places it is referenced in the build and prod code. This will be removed from the metadata proto itself in a subsequent release. This should not affect users of the library - the only place it was used was FormatInOriginalFormat, and only initially to try and avoid modifying the input number by removing/adding digits inadvertently. Now this is checked at the end of the method anyway. However slight formatting differences with this method on invalid numbers starting with 0s may be noticed in some countries.
  • The possible number pattern has been deleted from the phonemetadata.proto file and all generated code. This has not been used for a long time.

Full details in the release notes.

Note if you take advantage of this new functionality by changing your code, it will not necessarily be trivially easy to roll back to a previous version.

Thanks to all those who contributed by providing issue reports!

Want to be notified of future releases? Join the discussion group!

v8.5.2

22 Jun 09:01
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site
here

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!

v8.5.1

07 Jun 09:07
Compare
Choose a tag to compare

Hi all,

Please find the new JARs on the maven site here.

The new release contains mostly metadata changes.
Thanks to all those who contributed by providing issue reports!
See detailed release notes.

Want to be notified of future releases? Join the discussion group!