Skip to content

Releases: fpereiro/cocholate

2.1.0

11 Nov 14:23
Compare
Choose a tag to compare
  • Add c.fire function to trigger DOM events (main use case: simulate user interactions for tests).
  • Readme improvements.
  • Internal stylistic changes: log -> clog.
  • Upgrade dependencies: dale v5.0.2 -> v5.0.3, teishi v4.0.0 -> v5.0.0.

2.0.0

01 Oct 23:37
Compare
Choose a tag to compare
  • 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 has loaded (instead of using domcontentloaded, which just waits for the scripts).
  • Polyfill changes:
    • Remove c.polyfill.
    • Directly execute the polyfill for insertAdjacentHTML.
    • Remove polyfill for remove (use parentNode.removeChild instead).
    • Polyfill for indexOf in arrays (provided in the new version of teishi).
  • Stricter validation in c when passing an object as selector.
  • Upgrade dale v4.3.3 -> v5.0.2, teishi v3.14.1 -> v4.0.0 .

1.6.6

14 Nov 11:18
Compare
Choose a tag to compare
  • Update CDN link to jsDelivr.

1.6.5

02 Apr 11:26
Compare
Choose a tag to compare
  • Fix a bug when deleting cookies with c.cookie (false), where only the first cookie was deleted instead of all of them. c.cookie (false) should now delete all the cookies.

1.6.4

26 Mar 19:50
Compare
Choose a tag to compare

Update teishi from 3.12.1 to 3.13.0.

1.6.3

09 Jan 09:48
Compare
Choose a tag to compare
  • Update teishi from 3.11.1 to 3.12.0.

1.6.2

29 Oct 17:01
Compare
Choose a tag to compare
  • Update dependencies.
  • Small improvement in c.ajax test.

1.6.1

12 Sep 14:56
Compare
Choose a tag to compare

In c.ajax, return the xhr object synchronously as well, so you have access to it before the request is finished.

1.6.0

12 Sep 14:55
Compare
Choose a tag to compare

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: }.

1.5.0

05 Jun 15:51
Compare
Choose a tag to compare
  • If you pass false to c.cookie, all cookies will be deleted.