| Shaopeng Jia | 3396e51 | 2013-08-12 09:19:27 +0200 | [diff] [blame^] | 1 | Jun 05, 2013: libphonenumber-5.6 |
| 2 | * Code changes: |
| 3 | - Fix for as-you-type-formatting bug affecting countries with no national prefix |
| 4 | formatting rule, such as China. |
| 5 | * Metadata changes: |
| 6 | - New alternate formatting data for country calling code(s): 351 |
| 7 | - Updated alternate formatting data for country calling code(s): 49 |
| 8 | - Updated metadata for region code(s): |
| 9 | AS, BG, BH, BJ, BL, CD, CI, DE, DZ, EH, FJ, GF, GP, IN, KH, KZ, MA, MD, MF, |
| 10 | ML, MY, NG, PT, PY, TC, TJ, TT |
| 11 | |
| 12 | May 08, 2013: libphonenumber-5.5 |
| 13 | * Code changes: |
| 14 | - Changed internal initialization code and made more fields final. |
| 15 | Note that we now throw an exception if an attempt is made to set the |
| 16 | metadata more than once (which should only happen during testing). |
| 17 | - Fix problem with formatNumberForMobileDialing for HU and CL. |
| 18 | * Metadata changes: |
| 19 | - Updated alternate formatting data for country calling code(s): 49 |
| 20 | - Updated metadata for region code(s): |
| 21 | AM, BF, BR, CR, DE, MA, MG, MM, SA, TL, UA |
| 22 | - Updated geocoding data for country calling code(s): 374 (am, en, ru) |
| 23 | |
| 24 | Apr 19, 2013: libphonenumber-5.4.2 |
| 25 | * Metadata changes: |
| 26 | - Updated metadata for region code(s): BF, GA, IN, KR, MV, PH, SO, UA, US |
| 27 | |
| 28 | Mar 25, 2013: libphonenumber-5.4.1 |
| 29 | * Metadata changes: |
| 30 | - Updated metadata for region code(s): BF, BH, CR, EC, IR, MG, PF, TD, TN |
| 31 | - New geocoding data for country calling code(s): 374 (am, ru) |
| 32 | - Updated geocoding data for country calling code(s): |
| 33 | 98 (en, fa), 358 (en, se), 374 (en) |
| 34 | |
| Shaopeng Jia | 485e6d5 | 2013-04-26 12:45:24 +0200 | [diff] [blame] | 35 | Mar 07, 2013: libphonenumber-5.4 |
| 36 | * Code changes: |
| 37 | - Switch formatNumberForMobileDialing to prefer national format to international format when the |
| 38 | number is dialed from the same region the phone number is from. |
| 39 | |
| 40 | * Metadata changes: |
| 41 | - Updated metadata for region code(s): |
| 42 | BF, CD, CN, CZ, GN, IR, JP, KR, KW, LR, NZ, TT, UG, ZW |
| 43 | - New geocoding data for country calling code(s): 82 (cs) |
| 44 | - Updated geocoding data for country calling code(s): |
| 45 | 82 (en, fr, ko, zh, zh_Hant), 98 (en, fa), 263 (en) |
| 46 | |
| 47 | Feb 11, 2013: libphonenumber-5.3.2 |
| 48 | * Metadata changes: |
| 49 | - Updated metadata for region code(s): |
| 50 | BD, BE, BY, CA, EH, GR, IE, IN, IS, LI, MA, MU, PT, SE, SG, TL |
| 51 | - New geocoding data for country calling code(s): |
| 52 | 375 (be, en, ru), 1 (en) |
| 53 | |
| 54 | Jan 25, 2013: libphonenumber-5.3.1 |
| 55 | * Metadata changes: |
| 56 | - Updated metadata for region code(s): CN, DK, EH, GN, KH, KW, MA, MY, PA |
| 57 | |
| Shaopeng Jia | 77aadd2 | 2013-02-11 12:21:46 +0100 | [diff] [blame] | 58 | Jan 08, 2013: libphonenumber-5.3 |
| 59 | * Code changes: |
| 60 | - Handling UAN numbers in Argentina better when dialling them locally from a |
| 61 | mobile |
| 62 | * Metadata changes: |
| 63 | - Updated metadata for region code(s): |
| 64 | BE, BW, CL, CN, CO, EH, KW, MA, ML, NG, PL, SY, ZA, ZM |
| 65 | - New geocoding data for country calling code(s): 32 (en, fr, nl) |
| 66 | - Updated geocoding data for country calling code(s): 27 (en), 86 (en, zh) |
| 67 | |
| 68 | Dec 06, 2012: libphonenumber-5.2.2 |
| 69 | * Metadata changes: |
| 70 | - New metadata for region code(s): EH |
| 71 | - Updated metadata for region code(s): BR, CL, CR, IN, MA, PG, PK, RO |
| 72 | - New geocoding data for country calling code(s): 241 (en) |
| 73 | |
| 74 | Nov 26, 2012: libphonenumber-5.2.1 |
| 75 | * Metadata changes: |
| 76 | - Updated metadata for region code(s): |
| 77 | AE, AW, BF, CN, DE, JO, KE, KH, LT, MM, MU, NG, RW, SR, TR, VU |
| 78 | - New geocoding data for country calling code(s): 359 (bg, en) |
| 79 | |
| Shaopeng Jia | 203cf68 | 2012-10-30 05:22:10 +0100 | [diff] [blame] | 80 | Oct 10, 2012: libphonenumber-5.2 |
| 81 | * Code changes: |
| 82 | - Adds isNumberGeographical() method. |
| 83 | - Adds getRegionCodesForCountryCode() method. |
| 84 | - Fixing issue with getSupportedGlobalNetworkCallingCodes() |
| 85 | [http://code.google.com/p/libphonenumber/issues/detail?id=202] |
| 86 | - Ensures that returned collections are unmodifiable where necessary |
| 87 | [there is a very slight risk that this may break existing users who were relying on being able |
| 88 | to modify these collections, but doing so would be breaking lots of other assumptions that this |
| 89 | library makes - if you need to modify any affected collections you must copy them first] |
| 90 | * Metadata changes: |
| 91 | - Updated metadata for region code(s): DE, GR, HR, OM, SB, ZA |
| 92 | - Removed metadata for region code: AN (Netherlands Antilles) |
| 93 | - Updated geocoding data for country calling code(s): 30 (el, en) |
| 94 | |
| 95 | Sep 27, 2012: libphonenumber-5.1.4 |
| 96 | * Metadata changes: |
| 97 | - Updated metadata for region code(s): AU, EC, KH, LB, TN, US |
| 98 | |
| 99 | Sep 17, 2012: libphonenumber-5.1.3 |
| 100 | * Metadata changes: |
| 101 | - Updated metadata for region code(s): EG, LA, LB, LI, PY |
| 102 | - Updated metadata for non-geographical calling codes: 800, 808, 888, 979 |
| 103 | - Updated geocoding data for country calling code(s): 98 (en), 1 (en) |
| 104 | |
| 105 | Sep 11, 2010: libphonenumber-5.1.2 |
| 106 | * Bug fix: |
| 107 | - Fixing regression in AsYouTypeFormatter where it no longer worked for numbers entered in national |
| 108 | format for countries with no national prefix, e.g. Spain. |
| 109 | |
| 110 | Sep 5, 2010: libphonenumber-5.1.1 |
| 111 | * Code changes: |
| 112 | - Added better logging/exception handling for catching cases where metadata is invalid/missing. |
| 113 | |
| 114 | Sep 3, 2012: libphonenumber-5.1 |
| 115 | * Code changes: |
| 116 | - Inserting a space after the national prefix in the AsYouTypeFormatter when formatting numbers in |
| 117 | national format, if the formatting rules for that country dictate that a space is appropriate. |
| 118 | - Format emergency numbers and short-codes as a block in the AsYouTypeFormatter. |
| 119 | * Metadata changes: |
| 120 | - Updated metadata for region code(s): BF, BG, DZ, GA, IT, JP, KW, PF |
| 121 | |
| 122 | Aug 20, 2012: libphonenumber-5.0.3 |
| 123 | * Metadata changes: |
| 124 | - New alternate formatting data for country calling code(s): 43 |
| 125 | - Updated metadata for region code(s): AT, BF, JO, NG, RU, SL |
| 126 | - New geocoding data for country calling code(s): 62 (en, id), 98 (fa) |
| 127 | |
| 128 | Aug 07, 2012: libphonenumber-5.0.2 |
| 129 | * Metadata changes: |
| 130 | - Updated metadata for region code(s): |
| 131 | BF, CN, DJ, IL, JO, KH, KZ, MA, MT, MV, MY, NC, NG, SD, SK, SN, TL, UZ |
| 132 | - New geocoding data for country calling code(s): 7 (ru), 98 (en) |
| 133 | - Updated geocoding data for country calling code(s): 7 (en) |
| 134 | |
| 135 | July 26th, 2012: libphonenumber-5.0.1 |
| 136 | * Metadata changes |
| 137 | - CL, DE ,IN, KR, US |
| 138 | - New geocoding data for country calling codes 40, 57, 66, 82, 91. |
| 139 | - Fixed comments for 353 (IE). |
| 140 | |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 141 | July 12th, 2012: libphonenumber-5.0 |
| 142 | * Code changes: |
| Shaopeng Jia | 203cf68 | 2012-10-30 05:22:10 +0100 | [diff] [blame] | 143 | - Support for alternate formats when finding phone numbers. |
| 144 | - Allowing two-digit numbers to be parsed if they are entered in national-format with no |
| 145 | punctuation |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 146 | * Metadata changes |
| Shaopeng Jia | 203cf68 | 2012-10-30 05:22:10 +0100 | [diff] [blame] | 147 | - IL, GA |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 148 | * Other |
| Shaopeng Jia | 203cf68 | 2012-10-30 05:22:10 +0100 | [diff] [blame] | 149 | - Reflowed this file to 100 char width to make it unambiguous as to what the standard should be. |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 150 | |
| 151 | July 6th, 2012: libphonenumber-4.9.1 |
| 152 | * Metadata changes |
| 153 | - AR, BA, BF, CR, DE, EC, ES, KZ, MK, NC, NG, PF, SB, UZ, non-geo entity 882 |
| 154 | - Geocoding data updates for country calling codes 54 (AR) and 81 (JP), new data for 234 (NG) |
| 155 | |
| Shaopeng Jia | bf5d975 | 2012-07-13 13:46:11 +0200 | [diff] [blame] | 156 | June 21st, 2012: libphonenumber-4.9 |
| 157 | * Bug fix |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 158 | - formatInOriginalFormat fixed not to add a star sign if it was not present originally. |
| Shaopeng Jia | bf5d975 | 2012-07-13 13:46:11 +0200 | [diff] [blame] | 159 | * Metadata changes |
| 160 | - BF, CZ, ES, KW |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 161 | - Non-geographical entities with calling code 882 (BebbiCell, Maritime Communications, Oration |
| 162 | Technologies, Telespazio and Thuraya) |
| Shaopeng Jia | bf5d975 | 2012-07-13 13:46:11 +0200 | [diff] [blame] | 163 | - Geocoding data updates for country calling codes 221, 224, 226, 242, 244, 245 |
| 164 | * Functionality changes: |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 165 | - Minimum allowed length for a national significant number (NSN) when parsing changed from 3 to 2. |
| 166 | - Support parsing of RFC3966-formatted strings with an isdn-subaddress or extra parameters |
| 167 | specified. |
| Shaopeng Jia | bf5d975 | 2012-07-13 13:46:11 +0200 | [diff] [blame] | 168 | - Allow soft hyphen to appear in phone numbers (\u00AD) |
| 169 | * Testing changes: |
| 170 | - Add extra unit tests for non-geographical phone number entities |
| 171 | - ExampleNumbersTest testEmergency tests now uses ShortNumberUtil |
| 172 | |
| 173 | June 14th, 2012: libphonenumber-4.8.5 |
| 174 | * Metadata update only: |
| 175 | - AC, CR, DE, DK, IL, IN, IS, KH, LI, LR, MA, MD, MK, PA, SA, SG, SS |
| 176 | |
| 177 | June 6th, 2012: libphonenumber-4.8.4 |
| 178 | * Metadata update only: |
| 179 | - AE, RO |
| 180 | - Non-geographical entity with calling code 881 (Iridium) |
| 181 | |
| 182 | May 30th, 2012: libphonenumber-4.8.3 |
| 183 | * Metadata update only: |
| 184 | - AN, ET, KW, MN, SX, TC, TL |
| 185 | |
| 186 | May 16th, 2012: libphonenumber-4.8.2 |
| 187 | * Metadata update only: |
| 188 | - BH, CR, EE, JO, KW, LA, QA, SI, TH |
| 189 | - Non-geographical entity with calling code 878 (VISIONng) |
| 190 | |
| 191 | May 8th, 2012: libphonenumber-4.8.1 |
| 192 | * Metadata update only: |
| 193 | - CA, CI, EG, HK, IN, IR, LB, MA, ME, MM |
| 194 | - Non-geographical entity with calling code 870 (Inmarsat) |
| 195 | - Geocoding updates for country calling codes 1 for new area codes |
| 196 | |
| Shaopeng Jia | b210e30 | 2012-05-14 14:48:12 +0200 | [diff] [blame] | 197 | April 24th, 2012: libphonenumber-4.8 |
| 198 | * Functionality changes |
| 199 | - RFC format now outputs a number starting with "tel:" |
| 200 | - Parsing support for numbers in RFC format that contain the country info in the "phone-context" |
| 201 | part |
| 202 | - Support for obtaining area codes for Italy, Vatican City, San Marino |
| 203 | * Metadata changes |
| 204 | - AM, AO, AR, BE, BF, CD, EG, GH, GM, GN, IN, IR, IT, JO, LA, LC, MD, MS, NO, PA, PK, SI, SJ, SO, |
| 205 | SY, TC, TN, UZ, VN, ZW |
| 206 | - Geocoding updates for country calling codes 1, 20, 233, 31, 33, 352, 374, 54, 56, 86 |
| 207 | * Refactoring of matching functions, including moving them to PhoneNumberMatcher. |
| 208 | |
| Shaopeng Jia | b0e21c2 | 2012-03-28 17:07:14 +0200 | [diff] [blame] | 209 | March 16th, 2012: libphonenumber-4.7 |
| 210 | * Bug fixes |
| 211 | - Now return "too long" for input that is longer than 250 chars when parsing |
| 212 | * Metadata changes |
| 213 | - AC,AM,AT,AZ,BF,BR,BY,BZ,CR,CU,DE,DJ,EE,EG,ET,GA,GH,HK,HN,ID,IN,JP,KE,KG,KH,KR,KW,KY,LB,LU,MA,MD, |
| 214 | MK,NA,NE,NZ,SA,SB,SC,SE,SL,SN,UZ |
| Shaopeng Jia | b210e30 | 2012-05-14 14:48:12 +0200 | [diff] [blame] | 215 | * Refactoring of test classes so that tests requiring the test metadata to be loaded have a common |
| 216 | base class which handles this. |
| Shaopeng Jia | b0e21c2 | 2012-03-28 17:07:14 +0200 | [diff] [blame] | 217 | |
| Shaopeng Jia | cc0ae73 | 2012-02-15 22:45:16 +0100 | [diff] [blame] | 218 | February 9th, 2012: libphonenumber-4.6 |
| 219 | * Bug fixes |
| 220 | - Fix for formatByPattern to enable RFC formatting to work |
| 221 | - Fix for RFC formatting to work even when the international formatting rule starts with |
| 222 | punctuation |
| 223 | - Logging consistency changes - some warnings are no longer printed, others have become only |
| 224 | WARNINGS |
| 225 | - Fix for isValidNumberForRegion potentially throwing a NPE |
| 226 | - Parsing Israeli * numbers written in international format now works |
| 227 | - PhoneNumberMatcher doesn't match timestamps as phone-numbers |
| 228 | * Metadata changes |
| 229 | - Updates for AN, AX, BF, BJ, BR, BS, DJ, FI, IN, LV, MW, RS, SC, VN |
| 230 | - New countries supported: SS (South Sudan), CW (Curaçao) and BQ (Bonaire, Sint Eustatius and Saba) |
| 231 | * Refactoring of the private formatting functions in PhoneNumberUtil to ensure names are more |
| 232 | descriptive and to reduce code duplication. |
| 233 | |
| Shaopeng Jia | 528b0d1 | 2012-01-27 12:36:27 +0100 | [diff] [blame] | 234 | January 19th, 2012: libphonenumber-4.5 |
| 235 | * Code changes |
| 236 | - Support for non-geographical country calling codes (e.g. +800). |
| 237 | - Modify formatInOriginalFormat to not insert/remove/modify digits in the original number passed |
| 238 | in. |
| 239 | - Fix formatOutOfCountryKeepingAlphaChars to not throw a NPE. |
| 240 | |
| 241 | * Metadata changes |
| 242 | - Updates for AR, BH, CI, CN, CR, DE, GA, IL, JO, JP, KE, KZ, LB, LK, LT, MV, MW, MZ, NA, NL, NZ, |
| 243 | PL, RO, SA, SV, TM, UG, US |
| 244 | - New country calling codes: 800, 808, 883, 888, 979 |
| 245 | - Geocoding data updates: AR, US |
| 246 | |
| 247 | December 9th, 2011: libphonenumber-4.4 |
| 248 | * Code changes |
| 249 | - Support for Voicemail numbers |
| 250 | - Support prefixes "xt" and "xtn" to indicate extensions of phone numbers |
| 251 | - Change formatInOriginalFormat to use raw_input for numbers with incorrect leading zeroes, instead |
| 252 | of all invalid numbers. |
| 253 | |
| 254 | * Metadata changes |
| 255 | - Updates for AR, BD, CH, CI, IL, IR, IS, IT, JP, KW, LR, MM, NG, SA, SC, UZ |
| 256 | |
| Shaopeng Jia | 96a7214 | 2011-11-25 13:49:41 +0100 | [diff] [blame] | 257 | November 24th, 2011: libphonenumber-4.3 |
| 258 | * Code changes |
| 259 | - Fix the problems with AYTF crashing for longer numbers entered with +CountryCode, and incorrectly |
| 260 | removing national prefix for some numbers. |
| 261 | - Improve PhoneNumberMatcher to not match numbers ending with '%'. |
| 262 | - Fix formatNumberForMobileDialing to handle Israeli star numbers, Peruvian and Colombian numbers. |
| 263 | - Modify formatInOriginalFormat to use the raw input if we don't have a formatting pattern for a |
| 264 | number. |
| 265 | - Simple offline geocoding function which takes into account the user's region. |
| 266 | |
| 267 | * Metadata changes |
| 268 | - Updates for CR, GN, JP, KE, PL, SG, SR, SX, TH, TK |
| 269 | |
| Shaopeng Jia | a48b2d2 | 2011-11-16 15:46:59 +0100 | [diff] [blame] | 270 | November 10th, 2011: libphonenumber-4.2 |
| 271 | * Code changes |
| 272 | - Providing an "exact match" isEmergencyNumber method |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 273 | - Improvement to PhoneNumberMatcher: requires national prefix to be present when matching |
| 274 | national-format numbers, unless matching for a region where it is explicitly marked in the |
| 275 | metadata that they may be omitted. Applies to leniency level VALID and higher. |
| Shaopeng Jia | a48b2d2 | 2011-11-16 15:46:59 +0100 | [diff] [blame] | 276 | - Change formatNumberForMobileDialing not to modify the phoneNumber passed in. |
| 277 | |
| 278 | * Metadata changes |
| 279 | - Emergency numbers added for all remaining countries |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 280 | - Collected data on which numbers we format with a national prefix are commonly written without one |
| 281 | and added this |
| Shaopeng Jia | a48b2d2 | 2011-11-16 15:46:59 +0100 | [diff] [blame] | 282 | - Updates for AR, AT, BH, CZ, GR, IR, KM, LT, MX, PT, SE, SO, UG |
| 283 | - Addition of SX (Sint Maarten) |
| 284 | |
| Shaopeng Jia | ca1e43d | 2011-10-25 20:38:42 +0200 | [diff] [blame] | 285 | October 19th, 2011: libphonenumber-4.1 |
| 286 | * Code changes |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 287 | - Update code and metadata for countries with IDD "8~10" to accept phone numbers where the "~" is |
| 288 | omitted. |
| 289 | - Modify formatInOriginalFormat to use raw_input (when present) when the number is considered as |
| 290 | invalid by the library. |
| 291 | - Add ShortNumberUtil to deal with international short phone numbers, such as short codes and |
| 292 | emergency numbers. |
| Shaopeng Jia | ca1e43d | 2011-10-25 20:38:42 +0200 | [diff] [blame] | 293 | - Increase the maximum phone-number length accepted when parsing (now set to |
| 294 | 16). |
| 295 | |
| 296 | * Metadata changes |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 297 | - Updates: BF, BN, CN, DE, DK, DO, FR, IN, KI, KW, MC, MD, ML, PA, QA, SB, UK, WS |
| Shaopeng Jia | ca1e43d | 2011-10-25 20:38:42 +0200 | [diff] [blame] | 298 | - Emergency number information also added to: AE, AF, AL, AM, AR, AT, AU, BA, |
| 299 | BB, BD, BE, BG, BH, BO, BR, BY, CA, CH, CL, CN, CO, CR, CY, CZ, DE, DJ, DK, |
| 300 | DO, DZ, EC, EE, EG, ES, FI, FJ, FO, FR, GB, GE, GF, GH, GI, GL, GR, GT, GY, |
| 301 | HK, HN, HR, HU, ID, IE, IL, IN, IR, IS, IT, JM, JO, JP, KR, KW, KY, KZ, LB, |
| 302 | LK, LT, LU, LV, MA, MC, MD, ME, MK, ML, MM, MN, MO, MT, MU, MV, MX, MY, NG, |
| 303 | NI, NL, NO, NP, OM, PA, PE, PH, PK, PL, PM, PT, PY, QA, RO, RS, RU, RW, SA, |
| 304 | SB, SD, SE, SG, SI, SK, SL, SM, SR, SV, SY, TD, TH, TJ, TM, TN, TR, TT, TW, |
| 305 | UA, UG, US, UY, UZ, VA, VE, VN, VU, ZA, ZM, ZW |
| 306 | |
| 307 | October 6th, 2011: libphonenumber-4.0 |
| 308 | * Code changes |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 309 | - New function formatNumberForMobileDialing, which attempts to format a number in such a way that |
| 310 | the call can be connected from a mobile phone. If this is impossible, for example for numbers |
| 311 | that cannot be internationally dialled, then an empty string is returned. |
| Shaopeng Jia | ca1e43d | 2011-10-25 20:38:42 +0200 | [diff] [blame] | 312 | - Fallback functionality to English for non-CJK languages for geocoding |
| 313 | |
| 314 | * Metadata changes |
| 315 | - Collecting data for emergency numbers |
| 316 | - Updates: AR, AU, BR, CN, CZ, EG, GD, IE, IL, JM, KW, KH, SD, SO, TR, UG, UZ |
| 317 | - Geocoding data changes: AO, AR, AT, BJ, BR, CD, CG, CI, CL, CN, CV, DE, ES, |
| 318 | FR, GR, GW, HU, KM, MR, MZ, NL, PL, PT, SE, ST, SZ |
| 319 | |
| 320 | September 13th, 2011: libphonenumber-3.9 |
| 321 | * Code changes |
| 322 | - Enable AsYouTypeFormatter to handle long IDD and NDD. |
| 323 | - Allow the presence of an IDD following a +. |
| 324 | - Fix formatting of phone numbers which contain only 0s in the national number. |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 325 | - Refactored some code in geocoding including AreaCodeMap and the storage strategies. |
| Shaopeng Jia | ca1e43d | 2011-10-25 20:38:42 +0200 | [diff] [blame] | 326 | |
| 327 | * Metadata changes |
| 328 | - Updates: AM, BE, BH, BJ, BR, BT, BZ, CI, CL, CN, DE, DK, DM, DZ, EC, EG, FJ, |
| 329 | GR, HR, HT, IN, IQ, IS, JM, KE, KG, KH, KR, LA, LB, LR, MA, MD, ML, MO, MX, |
| 330 | MY, NE, NG, PG, PH, PK, PY, QA, SA, SD, SG, SN, TD, TG, TH, TN, TT, UG, YE, |
| 331 | ZA, ZM |
| 332 | - New geocoding data for: AC, CG, CU, CV, EG, ET, FI, FI, FI, GL, JP, KM, MA, |
| 333 | MA, MU, MU, MU, MZ, RS, SH, SH, SL, SO, ST, TG, TG, TG, UG, ZM |
| 334 | - Updated geocoding data for: AR, DE |
| 335 | |
| Shaopeng Jia | f7e0224 | 2011-08-15 17:03:30 +0200 | [diff] [blame] | 336 | August 11th, 2011: libphonenumber-3.8 |
| 337 | * Code changes |
| 338 | - Fix to demo to not throw null-ptr exceptions for invalid NANPA numbers |
| 339 | - Fixed AYTF to not accept plus signs in the middle of input |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 340 | - PhoneNumberMatcher improvements - added STRICT_GROUPING and EXACT_GROUPING levels, numbers |
| 341 | followed/preceded by a currency symbol will not match, multiple numbers separated by phone-number |
| 342 | punctuation will now match. ", " is no longer accepted as an extension symbol when matching, only |
| 343 | when parsing. "x" is only accepted as a carrier code or extension marker, not otherwise. |
| 344 | - Changes to handling of leading zeroes - these will not be silently ignored anymore, but will be |
| 345 | stored as part of the number. |
| 346 | - PhoneNumberOfflineGeocoder - new method to get the description of a number that assumes the |
| 347 | validity of the number has already been checked and will not re-verify it. |
| Shaopeng Jia | f7e0224 | 2011-08-15 17:03:30 +0200 | [diff] [blame] | 348 | - Split geocoding US binary data into multiple files. |
| 349 | |
| 350 | * Metadata changes |
| 351 | - Updates: AR, AT, AU, AZ, BE, BF, BH, BY, CA, CN, CO, CR, HT, HU, IT, KG, KH, |
| 352 | LB, LI, ME, NC, RS, SE, TT, US, VG, ZA |
| 353 | - New geocoding data for: AL, AM, AO, BF, BJ, BW, CD, CI, CZ, DZ, EE, GH, GM, |
| 354 | GN, GR, GW, HU, IS, KE, LK, LS, LT, LU, LV, MD, MG, MR, NA, PE, QN, SD, SK, |
| 355 | SN, SZ, TN, VE, VN, ZA, ZW |
| 356 | - Updated geocoding data for: GB, PT, US |
| 357 | - Revised sorting of geocoding data |
| 358 | |
| Shaopeng Jia | 9651f4d | 2011-07-05 11:50:58 +0200 | [diff] [blame] | 359 | July 5th, 2011 |
| 360 | * Code changes |
| 361 | - Refactored AreaCodeMap to minimize binary and memory footprint by using 2 different strategies. |
| 362 | - Refactored BuildMetadataFromXml.java and added unittests. |
| 363 | |
| 364 | * Metadata changes |
| 365 | - Regenerate binaries for all existing area code mapping data with smaller sizes. |
| 366 | - Added city-level area code data mapping for US and Canada. |
| 367 | |
| Shaopeng Jia | 249f28f | 2011-06-29 16:01:24 +0200 | [diff] [blame] | 368 | June 29th, 2011 |
| 369 | * Code changes |
| 370 | - Fixed issue 38, issue 39, issue 41 and issue 43 |
| 371 | |
| 372 | * Metadata changes |
| 373 | - Added phone number area mapping files for |
| 374 | - JP in Japanese |
| 375 | - FR in French |
| 376 | - TW in English, Simplified and Traditional Chinese |
| 377 | - RU in English |
| 378 | - IT in English and Italian |
| 379 | - PT in Portuguese |
| 380 | - TR in English and Turkish |
| 381 | - CH in English, German, French and Italian |
| 382 | - Updates: CR, GE, IT, JP, KW, MH, MP, MU, PE, PM, RW, TG, TJ, TK |
| 383 | |
| Shaopeng Jia | d1db4c5 | 2011-06-23 09:54:42 +0200 | [diff] [blame] | 384 | June 14th, 2011 |
| 385 | * Code changes |
| 386 | - Added PhoneNumberOfflineGeocoder, supporting classes and their unittests. |
| 387 | - Added GenerateAreaCodeData to transform phone number area mapping files from text files to binary |
| 388 | files. |
| 389 | - Modified PhoneNumberParserServlet.java and phonenumberparser.jsp to incorporate |
| 390 | PhoneNumberOfflineGeocoding in the appengine demo. |
| 391 | |
| 392 | * Metadata changes |
| 393 | - Added phone number area mapping files for NANPA countries and GB in English, NL in Dutch, AR, CL |
| 394 | and ES in Spanish, AT and DE in German, SE in Swedish, BR in Portuguese, KR in English, Korean, |
| 395 | Simplified and Traditional Chinese, and CN in Simplified Chinese. |
| 396 | |
| 397 | June 10th, 2011 |
| 398 | * Code changes: |
| 399 | - Fixes for PhoneNumberMatcher to be more restrictive in valid mode and not match numbers |
| 400 | surrounded by Latin characters. This ensures, for example, the string abc123456789acg will not be |
| 401 | marked as a phone numbers. |
| 402 | - Enable PhoneNumberUtil to handle all digits, rather than a subset |
| 403 | - Fix for AYTF issue36 and improvement for US AYTF behaviour. |
| 404 | * Metadata changes: |
| 405 | - Updates: BG, EG, ES, GH, PF, SC, SY, VA |
| 406 | |
| Shaopeng Jia | 372bff8 | 2011-05-24 10:47:15 +0200 | [diff] [blame] | 407 | May 24th, 2011 |
| 408 | * Code changes: |
| 409 | - Phonenumber now implements Serializable. |
| 410 | - findNumbers doesn't accept numbers with mis-matched brackets as phone-numbers |
| 411 | - An offline phone number geocoder has been added. The current implementation just returns the |
| 412 | region name for the phone number; more detailed geocoding will be added later. |
| 413 | * Metadata changes: |
| 414 | - New countries: GF, KP, NC, PA, PF, PW, PY, SB, SR, TO, UY, VU |
| 415 | - Updates: CY, CZ, ES, GB, GQ, JM, MQ, TN, VI |
| 416 | |
| 417 | May 9th, 2011 |
| 418 | * Code changes: |
| 419 | - Fixed potential for a null-ptr exception in getExampleNumber |
| 420 | - Potential speed improvement with replacement of StringBuffer with StringBuilder |
| 421 | * Metadata changes |
| 422 | - Changed way that international formats are specified to make it easier to do so |
| 423 | - New countries: AX, CC, CX, WF |
| 424 | - Updates: AM, AR, AU, AW, CN, CO, CR, DM, EC, ET, FI, FJ, GH, IN, JP, KE, KM, |
| 425 | KN, LR, MD, MQ, MX, NP, PH, SC, SE, SM, SN, SY, UG, US, VC, VI, ZM |
| 426 | |
| 427 | Apr 26th, 2011 |
| 428 | * Code changes: |
| 429 | - Improved PhoneNumberMatcher for cases with other numbers before or after the phone number. |
| 430 | - Improved AsYouTypeFormatter not to use formatting rules containing non-formatting characters |
| 431 | (e.g. '*' in Israeli star numbers). |
| 432 | * Metadata changes: |
| 433 | - New countries: FJ, FM, GY, NF, NI, NR, TV. |
| 434 | - Updates: AM, AZ, BF, BW, BZ, CI, CR, GB, GP, HK, JM, KH, LB, LY, MV, PE, PK, SZ, TJ, US. |
| 435 | * Minor documentation updates |
| 436 | |
| 437 | Apr 11th, 2011 |
| 438 | * Bug fixes: |
| 439 | - Adding date exclusion pattern in PhoneNumberMatcher. |
| 440 | - Fixing bug with selecting a suitable region for numbers with leading zeros where mutiple regions |
| 441 | for that country code are possible. |
| 442 | * Metadata changes: |
| 443 | - Updates: AG, AI, AS, BB, BM, BS, CA, DM, DO, ET, FO, GD, GE, GU, IN, JM, KN, KY, LC, MN, MP, MR, |
| 444 | MS, NO, PR, TC, TR, TT, US, VC, VG, VI |
| 445 | - New countries: CK, FK, GT, IO, KI, SJ, SV |
| 446 | * Documentation updates and some small refactoring to AsYouTypeFormatter |
| 447 | |
| 448 | Mar 31st, 2011 |
| 449 | * New functionality: |
| 450 | - Can parse and format numbers in RFC-3966 format. |
| 451 | - Added isAlphaNumber to check to see if a number is a "vanity" or "alpha" number |
| 452 | - Can format a number made up of alpha-characters in an "out-of-country" format (e.g. 0011 1 |
| 453 | 800-SIX-FLAG to dial an American alpha-number from Australia). |
| 454 | * Code changes: |
| 455 | - Renamed private vars, private methods and fixed comments to try and differentiate between country |
| 456 | (calling) codes and region codes. |
| 457 | == Non-backwards-compatible API changes: == |
| 458 | - Renamed getSupportedCountries to getSupportedRegions, as this more accurately reflects that the |
| 459 | library is based around region codes. |
| 460 | - getNationalSignificantNumber is no longer a static method, but is instead an instance method. |
| 461 | * Metadata changes: |
| 462 | - Bug-fixes and updates for AU, AZ, EE, FI, IN, JO, KW, KZ, MV, RU, RR, VA |
| 463 | - New country: ME |
| 464 | |
| 465 | Mar 22nd, 2011 |
| 466 | * Metadata changes: |
| 467 | - New mobile-number pattern for AU |
| 468 | |
| Shaopeng Jia | 52699e0 | 2011-03-22 14:22:53 +0100 | [diff] [blame] | 469 | Mar 10th, 2011 |
| 470 | * New functionality: |
| 471 | - New function to format a number with the preferred domestic carrier code used when parsing, |
| 472 | falling back to a default calling code otherwise (formatNationalNumberWithPreferredCarrierCode). |
| 473 | - We now store the preferred domestic carrier code used when the user calls parseAndKeepRawInput |
| 474 | - New functionality to extract phone-numbers from text (findNumbers). This is just the first |
| 475 | version - it does not extract ALPHA numbers such as 0800 CALL ME, or numbers where alternate |
| 476 | endings are specified (such as 03-331 6005/6006). |
| 477 | * Code changes: |
| 478 | - Tidying up the test file to use several pre-defined phone number constants |
| 479 | - Fixing several lint errors |
| 480 | - Added javadoc to formatNationalNumberWithCarrierCode |
| 481 | - Fixed bug where a null pointer exception was thrown when getAsYouTypeFormatter was called with an |
| 482 | invalid region code |
| 483 | - Improved AsYouTypeFormatter to deal with countries with variable-length patterns such as LU |
| 484 | * Metadata changes: |
| 485 | - Bug-fixes and updates for the following countries: BF, BO, BR, CL, CO, CR, DK, FO, GE, KR, KW, |
| 486 | LA, LU, MU, SC, SH, TR, VE |
| 487 | - New country: SH |
| 488 | |
| 489 | Mar 10th, 2011 |
| 490 | * Code changes: |
| 491 | - releasing the code to run the demo on localhost or appengine. |
| 492 | |
| 493 | Mar 7th, 2011 |
| 494 | * Metadata changes: |
| 495 | - Adding support for AC |
| 496 | |
| Shaopeng Jia | 74aa862 | 2011-02-11 16:11:35 +0100 | [diff] [blame] | 497 | Feb 11th, 2011 |
| 498 | * Metadata changes: |
| 499 | - Update UAN number ranges for IM and JE. |
| 500 | |
| 501 | Feb 9th, 2011 |
| 502 | * Code changes: |
| 503 | - Better isNumberMatch method. This will now recognise numbers starting with a national prefix as |
| 504 | an NSN_MATCH, instead of SHORT_NSN_MATCH. |
| 505 | == Note Non-backwards-compatible API change here! == |
| 506 | This will no longer throw a NumberParseException - instead we will return NOT_A_NUMBER if one |
| 507 | or other of the numbers provided do not match. |
| 508 | - New number-type UAN now supported in the code. This represents Company Numbers or Universally |
| 509 | Accessible Numbers. |
| 510 | * Metadata changes: |
| 511 | - Bug-fixes and updates for the following countries: AG, AZ, BA, BE, CA, CU, ES, FI, GB, GD, GG, |
| 512 | IE, IL, IM, IN, IR, IT, JE, JP, KR, KW, NG, NZ, PK, PS, PT, RU, SE, SG, SY, US |
| 513 | - New countries: CO, LU, LY, MC, SM |
| 514 | - Addition of "Personal Number" ranges to all NANPA countries |
| 515 | |
| 516 | Jan 31st, 2011 |
| 517 | * Code changes: |
| 518 | - Introducing equals() and hashCode() methods for the Phonenumber.PhoneNumber class |
| 519 | |
| 520 | Jan 28th, 2011 |
| 521 | * Code changes: |
| 522 | - Fixing critical bug with non-Android-compatible code. isEmpty() was being used and CANON_EQ in |
| 523 | reg-ex matches. |
| 524 | |
| 525 | Jan 20th, 2011 |
| 526 | * Code improvements: |
| 527 | - Handle null phone-numbers when parsing by throwing a NumberParseException. |
| 528 | - Handle extension written with an accented "o", as per Spanish, when parsing. |
| 529 | - Handle U+30FC dashes as phone-number punctuation. |
| 530 | - Allow "ZZ" or null regions to be specified for numbers starting with a full-width "+" symbol, or |
| 531 | with other characters (such as whitespace) before the leading +. |
| 532 | - new getLengthOfNationalDestinationCode function |
| 533 | * Metadata changes: |
| 534 | - New types of numbers introduced: UAN (universal or "company" numbers) and short codes. Note that |
| 535 | "generalDesc" patterns do not encompass short-codes. No code-support for these has been |
| 536 | introduced as of yet. We are also now enabling the collection of data for information such as |
| 537 | area-code-optional, and no-international-dialling ranges. |
| 538 | - Data updates as per ITU notifications/bug fixes for the following countries: AM, BH, CD, CG, CR, |
| 539 | DE, DJ, EE, GB, GN, HU, IE, JO, JP, LB, LR, MA, MK, MN, MR, NA, PG, SC, SG, SO, SZ, VN, ZA, ZW |
| 540 | - Data added for the following countries: BZ, CU, EC, FO, GI, HN, HT, LK, MT, MV, NU, PS, SD |
| 541 | - Indentation fixes in reg-exes for the following countries: BG, GB |
| 542 | - Allow nationalPrefixForParsing to be specified for countries with no national prefix, to handle |
| 543 | possible carrier prefixes |
| 544 | |
| 545 | Jan 3rd, 2011 |
| 546 | * Metadata changes: |
| 547 | - Updates to JE |
| 548 | - Updated comments for GB/GG/IM/JE |
| 549 | |
| 550 | November 25th, 2010 |
| 551 | * Metadata changes: |
| 552 | - Updates to existing countries: AD, AG, AI, AN, AS, BB, BG, BM, BS, BW, CA, DM, DO, GD, GH, GM, |
| 553 | GU, IN, JM, KN, KY, KZ, LB, LC, MP, MS, PR, SY, TC, TT, TZ, US, VC, VG, VI. |
| 554 | - Reorganize reg-exes for better readability. |
| 555 | - Updated comments. |
| 556 | |
| Lara Rennie | 256a5f7 | 2010-10-25 21:38:42 +0200 | [diff] [blame] | 557 | October 22nd, 2010 |
| Shaopeng Jia | 74aa862 | 2011-02-11 16:11:35 +0100 | [diff] [blame] | 558 | * Metadata changes: |
| 559 | - Updates to existing countries: AE, GB, GG, IM, JE |
| 560 | |
| 561 | October 15th, 2010 |
| Lara Rennie | 256a5f7 | 2010-10-25 21:38:42 +0200 | [diff] [blame] | 562 | * Code improvements: |
| 563 | - Allowed parsing of numbers that start with "++" or a full-width "+" symbol |
| Shaopeng Jia | 74aa862 | 2011-02-11 16:11:35 +0100 | [diff] [blame] | 564 | - Allowed reg-exes for national and possible number patterns to have white space in them in the |
| Lara Rennie | 256a5f7 | 2010-10-25 21:38:42 +0200 | [diff] [blame] | 565 | source XML file |
| 566 | - Added a more useful toString method for the phone number proto class |
| 567 | * Metadata changes: |
| Shaopeng Jia | 74aa862 | 2011-02-11 16:11:35 +0100 | [diff] [blame] | 568 | - Updates to existing countries: AF, BF, BO, ES, GB, GG, IM, IS, JE, JE, JP, KR, PE, PT, RU, SE, |
| 569 | TT, ZW |
| Lara Rennie | 256a5f7 | 2010-10-25 21:38:42 +0200 | [diff] [blame] | 570 | * Bug fixes: |
| 571 | - Parsing empty strings with invalid region codes no longer throws a null pointer exception |
| 572 | |
| Shaopeng Jia | b269741 | 2010-09-06 08:55:10 +0200 | [diff] [blame] | 573 | September 4th, 2010 |
| 574 | * Code improvement: |
| 575 | - Added new phone number type: pager |
| 576 | * Metadata change: |
| 577 | - update to existing country: GG, IM, JE, RS, RU |
| 578 | * Bug fixes: |
| 579 | - ArrayOutOfBoundException in AsYouTypeFormatter.getRememberedPosition() |
| 580 | - AsYouTypeFormatter for UK childline number |
| 581 | |
| 582 | September 1st, 2010 |
| 583 | * Bug fix on KZ metadata. |
| 584 | |
| 585 | August 17th, 2010 |
| 586 | * Code improvement: |
| 587 | - Refactored BuildMetadataProtoFromXml.java into BuildMetadataFromXml.java and |
| 588 | BuildMetadataProtoFromXml.java |
| 589 | - Added BuildMetadataProtoFromXml.java and JSArrayBuilder.java |
| 590 | - Refactored CountryCodeToRegionCodeMap and CountryCodeToRegionCodeMapForTesting into separate |
| 591 | files. |
| 592 | |
| Shaopeng Jia | f59ccfc | 2010-08-17 09:58:47 +0200 | [diff] [blame] | 593 | August 16th, 2010 |
| 594 | * Bug fixes |
| 595 | - AsYouTypeFormatter for formatting Chinese geographical numbers entered in national format. |
| 596 | - AsYouTypeFormatter for formatting Chinese 400/800 numbers entered in national format. |
| 597 | * Metadata change: |
| 598 | - new countries: AM, AN, BH, GL, IS |
| 599 | - adding national prefix 1 to all NANPA countries. |
| 600 | - update to existing countries: BF, FR, UK, PK, RE |
| 601 | |
| 602 | August 4th, 2010 |
| Shaopeng Jia | f59ccfc | 2010-08-17 09:58:47 +0200 | [diff] [blame] | 603 | * Further improve startup performance |
| 604 | - Preload no country specific metadata at startup. |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 605 | - Stop creating the file containing mapping from country calling code to region code and loading |
| 606 | it at startup; instead, do the initialization in PhoneNumberUtil. |
| Shaopeng Jia | f59ccfc | 2010-08-17 09:58:47 +0200 | [diff] [blame] | 607 | |
| Shaopeng Jia | fa42140 | 2010-07-31 13:00:06 +0200 | [diff] [blame] | 608 | July 31th, 2010 |
| 609 | |
| 610 | * Improve startup performance |
| 611 | - Separate generated metadata binary file to one file per region |
| 612 | - Preload US at start up, and load other region at the time when needed |
| Shaopeng Jia | 4b867ac | 2012-08-24 15:43:27 +0200 | [diff] [blame] | 613 | - Create a file containing mapping from country calling code to region code, and load it at |
| 614 | startup |
| Shaopeng Jia | fa42140 | 2010-07-31 13:00:06 +0200 | [diff] [blame] | 615 | - Same change also applied to unittests |
| 616 | |
| 617 | July 30th, 2010 |
| Shaopeng Jia | fa42140 | 2010-07-31 13:00:06 +0200 | [diff] [blame] | 618 | * Metadata change: |
| 619 | - new country: TL |
| 620 | - update to existing country: AZ, CN, FR, GH, JO, LA, PG, PK, QA, SZ, UA, VN |
| 621 | |
| 622 | * Code improvement |
| 623 | - China local number formatting for AsYouTypeFormatter |
| Lara Rennie | 256a5f7 | 2010-10-25 21:38:42 +0200 | [diff] [blame] | 624 | - improve extension parsing to handle number in the form of +1 (645) 123 1234 ext. 910# |