blob: 18737864269f2019f84e4b3da7805b26e99a9ee4 [file] [log] [blame]
Shaopeng Jia52699e02011-03-22 14:22:53 +01001Mar 10th, 2011
2* New functionality:
3 - New function to format a number with the preferred domestic carrier code used when parsing,
4 falling back to a default calling code otherwise (formatNationalNumberWithPreferredCarrierCode).
5 - We now store the preferred domestic carrier code used when the user calls parseAndKeepRawInput
6 - New functionality to extract phone-numbers from text (findNumbers). This is just the first
7 version - it does not extract ALPHA numbers such as 0800 CALL ME, or numbers where alternate
8 endings are specified (such as 03-331 6005/6006).
9* Code changes:
10 - Tidying up the test file to use several pre-defined phone number constants
11 - Fixing several lint errors
12 - Added javadoc to formatNationalNumberWithCarrierCode
13 - Fixed bug where a null pointer exception was thrown when getAsYouTypeFormatter was called with an
14 invalid region code
15 - Improved AsYouTypeFormatter to deal with countries with variable-length patterns such as LU
16* Metadata changes:
17 - Bug-fixes and updates for the following countries: BF, BO, BR, CL, CO, CR, DK, FO, GE, KR, KW,
18 LA, LU, MU, SC, SH, TR, VE
19 - New country: SH
20
21Mar 10th, 2011
22* Code changes:
23 - releasing the code to run the demo on localhost or appengine.
24
25Mar 7th, 2011
26* Metadata changes:
27 - Adding support for AC
28
Shaopeng Jia74aa8622011-02-11 16:11:35 +010029Feb 11th, 2011
30* Metadata changes:
31 - Update UAN number ranges for IM and JE.
32
33Feb 9th, 2011
34* Code changes:
35 - Better isNumberMatch method. This will now recognise numbers starting with a national prefix as
36 an NSN_MATCH, instead of SHORT_NSN_MATCH.
37 == Note Non-backwards-compatible API change here! ==
38 This will no longer throw a NumberParseException - instead we will return NOT_A_NUMBER if one
39 or other of the numbers provided do not match.
40 - New number-type UAN now supported in the code. This represents Company Numbers or Universally
41 Accessible Numbers.
42* Metadata changes:
43 - Bug-fixes and updates for the following countries: AG, AZ, BA, BE, CA, CU, ES, FI, GB, GD, GG,
44 IE, IL, IM, IN, IR, IT, JE, JP, KR, KW, NG, NZ, PK, PS, PT, RU, SE, SG, SY, US
45 - New countries: CO, LU, LY, MC, SM
46 - Addition of "Personal Number" ranges to all NANPA countries
47
48Jan 31st, 2011
49* Code changes:
50 - Introducing equals() and hashCode() methods for the Phonenumber.PhoneNumber class
51
52Jan 28th, 2011
53* Code changes:
54 - Fixing critical bug with non-Android-compatible code. isEmpty() was being used and CANON_EQ in
55 reg-ex matches.
56
57Jan 20th, 2011
58* Code improvements:
59 - Handle null phone-numbers when parsing by throwing a NumberParseException.
60 - Handle extension written with an accented "o", as per Spanish, when parsing.
61 - Handle U+30FC dashes as phone-number punctuation.
62 - Allow "ZZ" or null regions to be specified for numbers starting with a full-width "+" symbol, or
63 with other characters (such as whitespace) before the leading +.
64 - new getLengthOfNationalDestinationCode function
65* Metadata changes:
66 - New types of numbers introduced: UAN (universal or "company" numbers) and short codes. Note that
67 "generalDesc" patterns do not encompass short-codes. No code-support for these has been
68 introduced as of yet. We are also now enabling the collection of data for information such as
69 area-code-optional, and no-international-dialling ranges.
70 - Data updates as per ITU notifications/bug fixes for the following countries: AM, BH, CD, CG, CR,
71 DE, DJ, EE, GB, GN, HU, IE, JO, JP, LB, LR, MA, MK, MN, MR, NA, PG, SC, SG, SO, SZ, VN, ZA, ZW
72 - Data added for the following countries: BZ, CU, EC, FO, GI, HN, HT, LK, MT, MV, NU, PS, SD
73 - Indentation fixes in reg-exes for the following countries: BG, GB
74 - Allow nationalPrefixForParsing to be specified for countries with no national prefix, to handle
75 possible carrier prefixes
76
77Jan 3rd, 2011
78* Metadata changes:
79 - Updates to JE
80 - Updated comments for GB/GG/IM/JE
81
82November 25th, 2010
83* Metadata changes:
84 - Updates to existing countries: AD, AG, AI, AN, AS, BB, BG, BM, BS, BW, CA, DM, DO, GD, GH, GM,
85 GU, IN, JM, KN, KY, KZ, LB, LC, MP, MS, PR, SY, TC, TT, TZ, US, VC, VG, VI.
86 - Reorganize reg-exes for better readability.
87 - Updated comments.
88
Lara Rennie256a5f72010-10-25 21:38:42 +020089October 22nd, 2010
Shaopeng Jia74aa8622011-02-11 16:11:35 +010090* Metadata changes:
91 - Updates to existing countries: AE, GB, GG, IM, JE
92
93October 15th, 2010
Lara Rennie256a5f72010-10-25 21:38:42 +020094* Code improvements:
95 - Allowed parsing of numbers that start with "++" or a full-width "+" symbol
Shaopeng Jia74aa8622011-02-11 16:11:35 +010096 - Allowed reg-exes for national and possible number patterns to have white space in them in the
Lara Rennie256a5f72010-10-25 21:38:42 +020097 source XML file
98 - Added a more useful toString method for the phone number proto class
99* Metadata changes:
Shaopeng Jia74aa8622011-02-11 16:11:35 +0100100 - Updates to existing countries: AF, BF, BO, ES, GB, GG, IM, IS, JE, JE, JP, KR, PE, PT, RU, SE,
101 TT, ZW
Lara Rennie256a5f72010-10-25 21:38:42 +0200102* Bug fixes:
103 - Parsing empty strings with invalid region codes no longer throws a null pointer exception
104
Shaopeng Jiab2697412010-09-06 08:55:10 +0200105September 4th, 2010
106* Code improvement:
107 - Added new phone number type: pager
108* Metadata change:
109 - update to existing country: GG, IM, JE, RS, RU
110* Bug fixes:
111 - ArrayOutOfBoundException in AsYouTypeFormatter.getRememberedPosition()
112 - AsYouTypeFormatter for UK childline number
113
114September 1st, 2010
115* Bug fix on KZ metadata.
116
117August 17th, 2010
118* Code improvement:
119 - Refactored BuildMetadataProtoFromXml.java into BuildMetadataFromXml.java and
120 BuildMetadataProtoFromXml.java
121 - Added BuildMetadataProtoFromXml.java and JSArrayBuilder.java
122 - Refactored CountryCodeToRegionCodeMap and CountryCodeToRegionCodeMapForTesting into separate
123 files.
124
Shaopeng Jiaf59ccfc2010-08-17 09:58:47 +0200125August 16th, 2010
126* Bug fixes
127 - AsYouTypeFormatter for formatting Chinese geographical numbers entered in national format.
128 - AsYouTypeFormatter for formatting Chinese 400/800 numbers entered in national format.
129* Metadata change:
130 - new countries: AM, AN, BH, GL, IS
131 - adding national prefix 1 to all NANPA countries.
132 - update to existing countries: BF, FR, UK, PK, RE
133
134August 4th, 2010
Shaopeng Jiaf59ccfc2010-08-17 09:58:47 +0200135* Further improve startup performance
136 - Preload no country specific metadata at startup.
137 - Stop creating the file containing mapping from country calling code to region code
138 and loading it at startup; instead, do the initialization in PhoneNumberUtil.
139
Shaopeng Jiafa421402010-07-31 13:00:06 +0200140July 31th, 2010
141
142* Improve startup performance
143 - Separate generated metadata binary file to one file per region
144 - Preload US at start up, and load other region at the time when needed
145 - Create a file containing mapping from country calling code to region code,
146 and load it at startup
147 - Same change also applied to unittests
148
149July 30th, 2010
Shaopeng Jiafa421402010-07-31 13:00:06 +0200150* Metadata change:
151 - new country: TL
152 - update to existing country: AZ, CN, FR, GH, JO, LA, PG, PK, QA, SZ, UA, VN
153
154* Code improvement
155 - China local number formatting for AsYouTypeFormatter
Lara Rennie256a5f72010-10-25 21:38:42 +0200156 - improve extension parsing to handle number in the form of +1 (645) 123 1234 ext. 910#