src/cm/media/js/lib/yui/yui_3.0.0b1/releasenotes/README.io
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 0 40c8f766c9b8
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
*** 3.0.0 beta 1 ***
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
* The io-queue sub-module now implements YUI Queue.  The io queue interface allows transaction callback handlers to be processed in the order the transactions were sent, regardless of actual server response order.  For example:
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
- io queue is used to make three requests.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
- The actual server response order happens to be: transaction 2, 1, 3.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
- However, using the queue interface, the transaction callbacks are processed in the order of: transaction 1, 2, 3.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
* All transaction event flows now resolves to "success" or "failure"; the abort
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
event was removed.  Transaction abort and timeout conditions resolve to "failure",
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
and is distinguishable in the response data.  Specifically, the response
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
object's status and statusText properties will be populated as:
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
- response.status will be 0.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    15
- response.statusText will be set to "timeout" or "abort" to differentiate the two possible conditions.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    16
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    17
* A new "end" event is introduced in the transaction event flow; this is the
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    18
terminal event for all transactions.  Its event handler signature is the same as
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    19
the "start" event, receiving the transaction id and user-defined arguments.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    20
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    21
- The global event name is "io:end".
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    22
- To subscribe to the transaction event, define the "end" property in the
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    23
transaction's configuration object. { on: { end: function() { } } }
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    24
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    25
*** 3.0.0 PR2 ***
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    26
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    27
* YUI io is now comprised of several modules, allowing users to specify and
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    28
implement only the needed modules.  These modules are:
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    29
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    30
- io-base.js: This is the IO base class, using XMLHttpRequest as the transport.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    31
- io-xdr.js: This sub-module extends IO to enable cross-domain transactions
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    32
using Flash as the transport.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    33
- io-form.js: This sub-module extends IO to enable the serialization of an HTML
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    34
form as transaction data.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    35
- io-upload-iframe.js: This sub-module extends IO, to allow file uploads with an
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    36
HTML form, using an iframe transport.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    37
- io-queue.js: This sub-module extends IO to add transaction queuing
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    38
capabilities.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    39
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    40
* [FIXED] SF2262707.  If defined in the configuration object, user-specified,
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    41
HTTP "Content-Type" headers will correctly override POST default headers, for
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    42
HTTP POST transactions.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    43
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    44
* XML is not supported as a response datatype when using sub-modules io-xdr.js
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    45
and io-upload-iframe.js.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    46
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    47
*** 3.0.0 PR1 ***
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    48
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    49
* Initial Release