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