Ember addon that provides a fetch service with an API compatible with ember-ajax. Current version 2.2.2 requires Ember 3.28+ and Node 18+. It is a drop-in replacement using the Fetch API instead of jQuery.ajax, reducing bundle size and improving modern browser compatibility. Release cadence is low; the addon is stable and feature-complete.
npm install ember-ajax-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to inject and use the fetch service in an Ember component, including header customization.
If you need to extend, import the class from 'ember-ajax-fetch/services/fetch' (it's actually an EmberObject subclass).
Replace ember-ajax with ember-ajax-fetch by changing imports to 'ember-ajax-fetch/services/fetch'.
Use try/catch to handle errors; check error.status for HTTP status codes.
Upgrade to Ember 3.28+ and Node 18+.
Use `@service fetch` without parentheses.
Inject with `@service fetch` in Octane or `service('fetch')` in classic, then use `this.fetch.request` in Octane or `this.get('fetch').request` in classic.Avoid naming your service 'fetch' if you also use the global fetch; consider aliasing: `@service('fetch') myFetch`.Use `this.fetch.request(url, options)` instead of `this.fetch(url)`.
No dependency data recorded yet.