Releases: fpereiro/cocholate
Releases · fpereiro/cocholate
2.1.0
2.0.0
- Bugfix: when selecting h1-h6 elements by id, return just one instead of an array with just one element.
- Bugfix: allow float values (not just integers) when setting attributes with
c.set
. - Extend browser compatibility.
- Add annotated source code.
- Add
c.loadScript
function for loading external scripts. - Modify
c.ready
to fire when the entire document hasload
ed (instead of usingdomcontentloaded
, which just waits for the scripts). - Polyfill changes:
- Remove
c.polyfill
. - Directly execute the polyfill for
insertAdjacentHTML
. - Remove polyfill for
remove
(useparentNode.removeChild
instead). - Polyfill for
indexOf
in arrays (provided in the new version of teishi).
- Remove
- Stricter validation in
c
when passing an object asselector.
- Upgrade dale v4.3.3 -> v5.0.2, teishi v3.14.1 -> v4.0.0 .
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
Changes to c.ajax:
- We swap the order of body and headers in the list of arguments passed to c.ajax.
- We parse xhr.responseText if the content-type is application/json.
- If the status code is 200, instead of returning the xhr object, we return an object of the form {headers: ..., body: ..., xhr: }.