1
DataSource Release Notes
3
**** version 2.6.0 ****
6
* The DataSource class has been refactored into a DataSourceBase base class and
7
the subclasses LocalDataSource, FunctionDataSource, XHRDataSource, and
8
ScriptNodeDataSource. While backward compatibility of the YAHOO.util.DataSource
9
constructor has been maintained, implementers should be aware that calling
10
new YAHOO.util.DataSource() now actually returns one of these
11
subclasses. Implementers can alternatively call a subclass constructor directly.
12
The DataSource constructor returns one of the subclasses based on the oLiveData
13
passed to it, or the dataType config value. This class-based architecture no
14
longer meaningfully supports swapping data types on the fly.
15
* Empty responses of TYPE_FLAT no longer return empty string results.
16
* Parsing of totalRecords is no longer supported as a top-leval schema value.
17
Implementers should access this value of using a metaField.
18
* XML parsing has been updated for support of CDATA sections and long text values
19
split into multiple nodes.
20
* Now passing oCallback object to doBeforeCallback() and doBeforeParseData() methods.
21
* YAHOO.util.Date now supports strftime formatting.
23
**** version 2.5.2 ****
27
**** version 2.5.1 ****
29
* Replaced custom function parsing with parsed/walked value locators for
30
responseSchema.resultsList, .fields, etc
31
* Added metaFields to responseSchema to capture arbitrary response data
33
**** version 2.5.0 ****
35
* doBeforeCallback() - The second argument is now oFullResponse rather than oRawResponse.
37
o oCallback is now an object literal pointing to success and failure
38
handlers and can contain scope and argument values.
39
o The oCaller argument is now deprecated.
40
o When callback function is passed oRequest and oParsedResponse values,
41
the oParsedResponse object now consistently returns the following values:
45
+ totalResults (Number) (when available)
47
o oCallback is now an object literal pointing to success and failure
48
handlers and can contain scope and argument values.
49
o The oCaller argument is now deprecated.
50
* parseArrayData() - The second argument is now oFullResponse rather than oRawResponse.
51
* parseHTMLTableData() - The second argument is now oFullResponse rather than oRawResponse.
52
* parseJsonData() - The second argument is now oFullResponse rather than oRawResponse.
53
* parseTextData() - The second argument is now oFullResponse rather than oRawResponse.
54
* parseXMLData() - The second argument is now oFullResponse rather than oRawResponse.
56
o oCallback is now an object literal pointing to success and failure
57
handlers and can contain scope and argument values.
58
o The oCaller argument is now deprecated.
60
o oCallback is now an object literal pointing to success and failure
61
handlers and can contain scope and argument values.
62
o The oCaller argument is now deprecated.
63
* cacheRequestEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
64
* dataErrorEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
65
* getCachedResponseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
66
* requestEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
67
* responseCacheEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
68
* responseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
69
* responseParseEvent - oArgs.caller is now deprecated in favor of oCallback object literal.
73
**** version 2.4.0 ****
75
* Support for YUI JSON Utility.
77
* Implemented setInterval(), clearInterval(), and clearAllIntervals() for polling.
79
* Text data parsing algorithm now tolerates newlines within and at the end of data.
83
**** version 2.3.1 ****
89
**** version 2.3.0 ****
91
* DataSource requests over XHR no longer automatically insert a "?" in the URIs
92
between the host and the query. Implementers should explicitly include the
93
question mark if it is required by your server. Please refer to the DataTable XHR
94
examples for implementation details.
96
* DataSource provides the following static type conversion methods:
97
DataSource.parseDate(), DataSource.parseNumber(), and DataSource.parseString().
98
These are executed in the scope of the DataSource instance.
100
* DataSource now supports the following values for the property xhrConnMode:
103
"cancelStaleRequests"
104
"ignoreStaleResponses"
106
* Added property connMethodPost to support POST requests.
108
* The parsed response object passed to the callback function now has the
109
following properties:
110
tId {Number} Unique transaction ID
111
results {Array} Array of parsed data results
112
error {Boolean} True if there was an error
116
**** version 2.2.2 ***
122
**** version 2.2.1 ***
124
* Fixed parseTextData() to longer reverse-order data or truncate first record.
125
* Fixed bug where data values of 0 (zero) were being converted to empty string.
126
* Fixed erroneous undefined values created by parseDataArray().
127
* Callback functions now receive an additional argument in the form of a boolean
128
to indicate data error.
129
* Support for nested JSON data.
130
* Support for responseShema.fields.converter to take string response and custom
132
* Added static converter methods YAHOO.util.DataSource.convertNumber and
133
YAHOO.util.DataSource.convertDate.
134
* Improved type checking with YAHOO.lang.
138
**** version 2.2.0 ***