This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Releases: ember-cli/ember-ajax
Releases · ember-cli/ember-ajax
v2.4.1
Changelog
- Prevent removing trailing slash in request URL (#96) @alexlafroscia
v2.4.0
Changelog
- Move implementation to a Mixin (#107) @alexlafroscia
v2.3.2
Changelog
- Fix memory leak in tests (#105) @alexlafroscia
v2.3.1
Changelog
- ignores query param serialization on when content is jsonapi (fixes #99) @jamesdixon
v2.1.0
Changelog
- Upgrade to Ember CLI v2.5.0 (#95) @alexlafroscia
- Basic fastboot support using najax (#75) @topaxi
- isAjaxError helper (#92) @jaswilli
- Add a
delete
alias (#84) @sandstrom - Document error matching helper methods (#65) @jaswilli
What's new?
-
There is now an
isAjaxError
helper function that can be used to detect any kind of error inside of an error handlerthis.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 HTTPDELETE
request to an endpoint -
Basic Fastboot support has been added by swapping out
jQuery.ajax
fornajax
when the Fastboot environment is detected -
Documentation improvements
v2.0.1
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
😉