Releases: fpereiro/cocholate
Releases · fpereiro/cocholate
4.0.0
Changes to c.test
:
- Breaking change: before a test passed if the
check
function returned anything other thanfalse
. Now, for a test to pass, thecheck
function must returntrue
- any other return value is considered an error. - Add optional
callback
function. - Allow for no-op tests (empty arrays).
- Add optional
ms
argument in thewait
function passed toaction
, to retry everyms
milliseconds until the condition is met orwait
is elapsed.
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
c.fill
removes unnecessary call toc.empty
and instead usesinnerHTML
.- Bugfix:
c.empty
now also removes text nodes as well and completely empties its target(s). - Changes to
c.loadScript
:- It now returns request object returned by internal call to
c.ajax
. - If no
callback
is passed, it will default to an empty function.
- It now returns request object returned by internal call to
- Change to
c.fire
: theon
prefix to event names is automatically added in IE8 and below. - Add
c.test
, a function to run tests.
2.3.0
- Small breaking change:
c ('body')
will now return a single element (document.body
) instead of an array containing the body. The same will happen for all the DOM functions when receiving'body'
as the selector. Since there can only be one body per document, it makes no sense to return an array with a single element in this case. To upgrade to this version, replace any occurrence of the formc ('body') [0]
byc ('body')
(and likewise for DOM functions). - Bugfix:
c.get
returning all attributes in IE6-7 now returnsclass
forinput
elements.
2.2.1
- Bugfix: v2.1.0 broke
c.ajax
when either sending or receiving JSON - theteishi.str
andteishi.parse
functions were not renamed after upgrading to teishi v5.0.0. This is fixed in the new version, and a new test was added to cover the case where the function sends JSON.
2.2.0
- Bugfixes:
headers
object passed to callback byc.ajax
:- On cocholate 2.1.1, the headers were
false
. This is now fixed. - On cocholate 2.1.0 and below, the headers contained a key that was an empty string and the value was undefined. This is now fixed.
- In Firefox 18 and below,
c.ajax
now splits headers correctly instead of lumping them all into one. - If a header value contains a colon followed by a space, the entire header value is considered instead of all the text after the colon + space being ignored.
- On cocholate 2.1.1, the headers were
- You can now pass a DOM node to any of the
c
DOM functions, to operate directly on that DOM node. - You can now get all attributes (or style attributes) by passing an
undefined
second argument toc.get
. - Upgrade dependencies: dale v6.0.0 -> v6.0.1, teishi v5.0.1 -> teishi v5.0.2