blob: 1963e5619f0483186cf97b95d1a8e85a00a30d10 [file] [log] [blame]
Shaopeng Jia372bff82011-05-24 10:47:15 +02001May 24th, 2011
2* Code changes:
3 - Phonenumber now implements Serializable.
4 - findNumbers doesn't accept numbers with mis-matched brackets as phone-numbers
5 - An offline phone number geocoder has been added. The current implementation just returns the
6 region name for the phone number; more detailed geocoding will be added later.
7* Metadata changes:
8 - New countries: GF, KP, NC, PA, PF, PW, PY, SB, SR, TO, UY, VU
9 - Updates: CY, CZ, ES, GB, GQ, JM, MQ, TN, VI
10
11May 9th, 2011
12* Code changes:
13 - Fixed potential for a null-ptr exception in getExampleNumber
14 - Potential speed improvement with replacement of StringBuffer with StringBuilder
15* Metadata changes
16 - Changed way that international formats are specified to make it easier to do so
17 - New countries: AX, CC, CX, WF
18 - Updates: AM, AR, AU, AW, CN, CO, CR, DM, EC, ET, FI, FJ, GH, IN, JP, KE, KM,
19 KN, LR, MD, MQ, MX, NP, PH, SC, SE, SM, SN, SY, UG, US, VC, VI, ZM
20
21Apr 26th, 2011
22* Code changes:
23 - Improved PhoneNumberMatcher for cases with other numbers before or after the phone number.
24 - Improved AsYouTypeFormatter not to use formatting rules containing non-formatting characters
25 (e.g. '*' in Israeli star numbers).
26* Metadata changes:
27 - New countries: FJ, FM, GY, NF, NI, NR, TV.
28 - Updates: AM, AZ, BF, BW, BZ, CI, CR, GB, GP, HK, JM, KH, LB, LY, MV, PE, PK, SZ, TJ, US.
29* Minor documentation updates
30
31Apr 11th, 2011
32* Bug fixes:
33 - Adding date exclusion pattern in PhoneNumberMatcher.
34 - Fixing bug with selecting a suitable region for numbers with leading zeros where mutiple regions
35 for that country code are possible.
36* Metadata changes:
37 - Updates: AG, AI, AS, BB, BM, BS, CA, DM, DO, ET, FO, GD, GE, GU, IN, JM, KN, KY, LC, MN, MP, MR,
38 MS, NO, PR, TC, TR, TT, US, VC, VG, VI
39 - New countries: CK, FK, GT, IO, KI, SJ, SV
40* Documentation updates and some small refactoring to AsYouTypeFormatter
41
42Mar 31st, 2011
43* New functionality:
44 - Can parse and format numbers in RFC-3966 format.
45 - Added isAlphaNumber to check to see if a number is a "vanity" or "alpha" number
46 - Can format a number made up of alpha-characters in an "out-of-country" format (e.g. 0011 1
47 800-SIX-FLAG to dial an American alpha-number from Australia).
48* Code changes:
49 - Renamed private vars, private methods and fixed comments to try and differentiate between country
50 (calling) codes and region codes.
51 == Non-backwards-compatible API changes: ==
52 - Renamed getSupportedCountries to getSupportedRegions, as this more accurately reflects that the
53 library is based around region codes.
54 - getNationalSignificantNumber is no longer a static method, but is instead an instance method.
55* Metadata changes:
56 - Bug-fixes and updates for AU, AZ, EE, FI, IN, JO, KW, KZ, MV, RU, RR, VA
57 - New country: ME
58
59Mar 22nd, 2011
60* Metadata changes:
61 - New mobile-number pattern for AU
62
Shaopeng Jia52699e02011-03-22 14:22:53 +010063Mar 10th, 2011
64* New functionality:
65 - New function to format a number with the preferred domestic carrier code used when parsing,
66 falling back to a default calling code otherwise (formatNationalNumberWithPreferredCarrierCode).
67 - We now store the preferred domestic carrier code used when the user calls parseAndKeepRawInput
68 - New functionality to extract phone-numbers from text (findNumbers). This is just the first
69 version - it does not extract ALPHA numbers such as 0800 CALL ME, or numbers where alternate
70 endings are specified (such as 03-331 6005/6006).
71* Code changes:
72 - Tidying up the test file to use several pre-defined phone number constants
73 - Fixing several lint errors
74 - Added javadoc to formatNationalNumberWithCarrierCode
75 - Fixed bug where a null pointer exception was thrown when getAsYouTypeFormatter was called with an
76 invalid region code
77 - Improved AsYouTypeFormatter to deal with countries with variable-length patterns such as LU
78* Metadata changes:
79 - Bug-fixes and updates for the following countries: BF, BO, BR, CL, CO, CR, DK, FO, GE, KR, KW,
80 LA, LU, MU, SC, SH, TR, VE
81 - New country: SH
82
83Mar 10th, 2011
84* Code changes:
85 - releasing the code to run the demo on localhost or appengine.
86
87Mar 7th, 2011
88* Metadata changes:
89 - Adding support for AC
90
Shaopeng Jia74aa8622011-02-11 16:11:35 +010091Feb 11th, 2011
92* Metadata changes:
93 - Update UAN number ranges for IM and JE.
94
95Feb 9th, 2011
96* Code changes:
97 - Better isNumberMatch method. This will now recognise numbers starting with a national prefix as
98 an NSN_MATCH, instead of SHORT_NSN_MATCH.
99 == Note Non-backwards-compatible API change here! ==
100 This will no longer throw a NumberParseException - instead we will return NOT_A_NUMBER if one
101 or other of the numbers provided do not match.
102 - New number-type UAN now supported in the code. This represents Company Numbers or Universally
103 Accessible Numbers.
104* Metadata changes:
105 - Bug-fixes and updates for the following countries: AG, AZ, BA, BE, CA, CU, ES, FI, GB, GD, GG,
106 IE, IL, IM, IN, IR, IT, JE, JP, KR, KW, NG, NZ, PK, PS, PT, RU, SE, SG, SY, US
107 - New countries: CO, LU, LY, MC, SM
108 - Addition of "Personal Number" ranges to all NANPA countries
109
110Jan 31st, 2011
111* Code changes:
112 - Introducing equals() and hashCode() methods for the Phonenumber.PhoneNumber class
113
114Jan 28th, 2011
115* Code changes:
116 - Fixing critical bug with non-Android-compatible code. isEmpty() was being used and CANON_EQ in
117 reg-ex matches.
118
119Jan 20th, 2011
120* Code improvements:
121 - Handle null phone-numbers when parsing by throwing a NumberParseException.
122 - Handle extension written with an accented "o", as per Spanish, when parsing.
123 - Handle U+30FC dashes as phone-number punctuation.
124 - Allow "ZZ" or null regions to be specified for numbers starting with a full-width "+" symbol, or
125 with other characters (such as whitespace) before the leading +.
126 - new getLengthOfNationalDestinationCode function
127* Metadata changes:
128 - New types of numbers introduced: UAN (universal or "company" numbers) and short codes. Note that
129 "generalDesc" patterns do not encompass short-codes. No code-support for these has been
130 introduced as of yet. We are also now enabling the collection of data for information such as
131 area-code-optional, and no-international-dialling ranges.
132 - Data updates as per ITU notifications/bug fixes for the following countries: AM, BH, CD, CG, CR,
133 DE, DJ, EE, GB, GN, HU, IE, JO, JP, LB, LR, MA, MK, MN, MR, NA, PG, SC, SG, SO, SZ, VN, ZA, ZW
134 - Data added for the following countries: BZ, CU, EC, FO, GI, HN, HT, LK, MT, MV, NU, PS, SD
135 - Indentation fixes in reg-exes for the following countries: BG, GB
136 - Allow nationalPrefixForParsing to be specified for countries with no national prefix, to handle
137 possible carrier prefixes
138
139Jan 3rd, 2011
140* Metadata changes:
141 - Updates to JE
142 - Updated comments for GB/GG/IM/JE
143
144November 25th, 2010
145* Metadata changes:
146 - Updates to existing countries: AD, AG, AI, AN, AS, BB, BG, BM, BS, BW, CA, DM, DO, GD, GH, GM,
147 GU, IN, JM, KN, KY, KZ, LB, LC, MP, MS, PR, SY, TC, TT, TZ, US, VC, VG, VI.
148 - Reorganize reg-exes for better readability.
149 - Updated comments.
150
Lara Rennie256a5f72010-10-25 21:38:42 +0200151October 22nd, 2010
Shaopeng Jia74aa8622011-02-11 16:11:35 +0100152* Metadata changes:
153 - Updates to existing countries: AE, GB, GG, IM, JE
154
155October 15th, 2010
Lara Rennie256a5f72010-10-25 21:38:42 +0200156* Code improvements:
157 - Allowed parsing of numbers that start with "++" or a full-width "+" symbol
Shaopeng Jia74aa8622011-02-11 16:11:35 +0100158 - Allowed reg-exes for national and possible number patterns to have white space in them in the
Lara Rennie256a5f72010-10-25 21:38:42 +0200159 source XML file
160 - Added a more useful toString method for the phone number proto class
161* Metadata changes:
Shaopeng Jia74aa8622011-02-11 16:11:35 +0100162 - Updates to existing countries: AF, BF, BO, ES, GB, GG, IM, IS, JE, JE, JP, KR, PE, PT, RU, SE,
163 TT, ZW
Lara Rennie256a5f72010-10-25 21:38:42 +0200164* Bug fixes:
165 - Parsing empty strings with invalid region codes no longer throws a null pointer exception
166
Shaopeng Jiab2697412010-09-06 08:55:10 +0200167September 4th, 2010
168* Code improvement:
169 - Added new phone number type: pager
170* Metadata change:
171 - update to existing country: GG, IM, JE, RS, RU
172* Bug fixes:
173 - ArrayOutOfBoundException in AsYouTypeFormatter.getRememberedPosition()
174 - AsYouTypeFormatter for UK childline number
175
176September 1st, 2010
177* Bug fix on KZ metadata.
178
179August 17th, 2010
180* Code improvement:
181 - Refactored BuildMetadataProtoFromXml.java into BuildMetadataFromXml.java and
182 BuildMetadataProtoFromXml.java
183 - Added BuildMetadataProtoFromXml.java and JSArrayBuilder.java
184 - Refactored CountryCodeToRegionCodeMap and CountryCodeToRegionCodeMapForTesting into separate
185 files.
186
Shaopeng Jiaf59ccfc2010-08-17 09:58:47 +0200187August 16th, 2010
188* Bug fixes
189 - AsYouTypeFormatter for formatting Chinese geographical numbers entered in national format.
190 - AsYouTypeFormatter for formatting Chinese 400/800 numbers entered in national format.
191* Metadata change:
192 - new countries: AM, AN, BH, GL, IS
193 - adding national prefix 1 to all NANPA countries.
194 - update to existing countries: BF, FR, UK, PK, RE
195
196August 4th, 2010
Shaopeng Jiaf59ccfc2010-08-17 09:58:47 +0200197* Further improve startup performance
198 - Preload no country specific metadata at startup.
199 - Stop creating the file containing mapping from country calling code to region code
200 and loading it at startup; instead, do the initialization in PhoneNumberUtil.
201
Shaopeng Jiafa421402010-07-31 13:00:06 +0200202July 31th, 2010
203
204* Improve startup performance
205 - Separate generated metadata binary file to one file per region
206 - Preload US at start up, and load other region at the time when needed
207 - Create a file containing mapping from country calling code to region code,
208 and load it at startup
209 - Same change also applied to unittests
210
211July 30th, 2010
Shaopeng Jiafa421402010-07-31 13:00:06 +0200212* Metadata change:
213 - new country: TL
214 - update to existing country: AZ, CN, FR, GH, JO, LA, PG, PK, QA, SZ, UA, VN
215
216* Code improvement
217 - China local number formatting for AsYouTypeFormatter
Lara Rennie256a5f72010-10-25 21:38:42 +0200218 - improve extension parsing to handle number in the form of +1 (645) 123 1234 ext. 910#