Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Releases: ember-cli/ember-ajax

v2.4.1

30 May 22:53
Compare
Choose a tag to compare

Changelog

v2.4.0

29 May 21:24
Compare
Choose a tag to compare

Changelog

v2.3.2

05 May 22:23
Compare
Choose a tag to compare

Changelog

v2.3.1

05 May 22:20
Compare
Choose a tag to compare

Changelog

  • ignores query param serialization on when content is jsonapi (fixes #99) @jamesdixon

v2.1.0

25 Apr 02:01
Compare
Choose a tag to compare

Changelog

What's new?

  • There is now an isAjaxError helper function that can be used to detect any kind of error inside of an error handler

    this.get('ajax').request('/foo')
        .then(function(data) {
            // ...
        })
        .catch(function(error) {
            if (isNotFoundError(error)) {
              // handle 404 errors here
              return;
            }
    
            if (isForbiddenError(error)) {
              // handle 403 errors here
              return;
            }
    
            if(isAjaxError(error)) {
              // handle all other AjaxErrors here
              return;
            }
    
            // other errors are handled elsewhere
            throw error;
        });
  • You can now use .delete('/foo') to make an HTTP DELETE request to an endpoint

  • Basic Fastboot support has been added by swapping out jQuery.ajax for najax when the Fastboot environment is detected

  • Documentation improvements

v2.0.1

13 Apr 01:58
Compare
Choose a tag to compare

Changelog

We published an article covering the changes here; we'll be doing a more thorough changelog a la ember-cli from here on.

What happened to 2.0.0?

We accidentally cut the release before a change that we were planning to include in 2.0.0 was merged. Thankfully, the error was caught and we were able to pull the release off of NPM in time. 2.0.1 is the new 2.0 😉