Skip to content

Releases: maurictg/QQuery

v. 1.0.5

29 Jan 09:41
Compare
Choose a tag to compare

New features

.hasClass(name)

You can now indicates if an element contains a specified class

.appendBelow(element) and .appendAbove(element)

You can now append an element below or above the selected element

.appendAt(index, element)

You can now append an element to the children of the selected element at a specified index

New AJAX helpers:

  • $.put() for HTTPPut
  • $.del() for HTTPDelete

The ajax QQuery.setup.ajax.before function now passes 2 arguments: after: (statusCode, response) => {}

v. 1.0.4

28 Jan 12:46
Compare
Choose a tag to compare

Bugfix and new feature

In this release you can add a before and after handler for all ajax requests in your application.
This can be done like this:

//before handler 
QQuery.setup.ajax.before = function() {
 //do something
}

//after handler
QQuery.setup.ajax.after = function(statusCode) {
  console.log('status: ', statusCode);
}

Also I've updated the webpack so the minified file is now only 6.5 kb

v. 1.0.2

29 Sep 11:40
Compare
Choose a tag to compare
  • Added new helper functions
$.deserializeJSON(value) //Deserializes url/formencoded string back to JSON (opposite of $.serializeJSON)
$.cookie(name) //Get cookie by name
  • Added AJAX settings for configuring XSRF-tokens
    See the README, section Setup details
  • Added parameter to $.ajax callback, for accessing the response headers.

First release

23 Sep 16:56
Compare
Choose a tag to compare

Exiting to release QQuery!
Use it in your website by downloading the qquery.min.js file
Or install it from npm:

npm i @blocksharp/qquery