This repository was archived by the owner on Jan 30, 2023. It is now read-only.
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