Skip to content

Releases: devgeniem/dustpress-js

4.4.2

18 Jun 13:38
ff37951
Compare
Choose a tag to compare

Fixed

  • A bug in throwing an error when a Fetch call fails.

4.4.1

26 Apr 06:20
f35b7ff
Compare
Choose a tag to compare

Changed

Removed an unnecessary and unused filter that caused warnings with PHP 8.0.

4.4.0

03 Jul 07:53
Compare
Choose a tag to compare

[4.4.0] - 2020-07-02

Added

  • Retry fetch requests on network error by default 3 times

Fixed

  • Get request handling

4.3.0

06 Apr 07:52
Compare
Choose a tag to compare

Added filter for dustpress-js enqueue "in_footer" value.

4.0.1

08 Nov 15:02
Compare
Choose a tag to compare

[4.0.1] - 2019-11-08

Added

  • DustPress Debugger integration

4.0.0

25 Oct 14:01
Compare
Choose a tag to compare

[4.0.0] - 2019-10-25

Added

  • webpack compiling for dustpress.js
  • js sourcemaps
  • .eslintrc.json

Changed

  • Changed the format of dustpress.js to a class
  • Use fetch instead of jquery
  • Use same CSRF token for all requests in the same session

Changed the AJAX calls' MIME type and format

20 Oct 10:34
Compare
Choose a tag to compare

AJAX calls are now in application/json MIME type and return object instead of an array. That needs to be addressed when updating the library in an existing project.

Return for dp function

04 Oct 12:10
Compare
Choose a tag to compare
Merge pull request #7 from devgeniem/1.1.3

new release

Updated composer.json

16 Oct 13:36
Compare
Choose a tag to compare

Allow updates for composer/installers.

Ajax request accepts get parameters.

19 Sep 08:28
Compare
Choose a tag to compare

The Dustpress.js ajax request now accepts get parameters which are appended to the request url. This is done by adding a string by the key get containing your get clause into your ajax requst params. Here's how it's done:

dp("SomeModel/SomeMethod", {
    tidy: true,
    get: "?lang=fi",
    success: function( data ) {
        // do what you want with the data
    },
    error: function( error ) {
        // possible error
    }
});