Releases: Cropster/ember-keen
Releases · Cropster/ember-keen
v2.0.0
- Use ember-fetch instead of $.ajax
- Make sure to run
ember g ember-keenafter upgrading!
- Make sure to run
querydoes not return a DS.PromiseObject anymore (but a plain promise that resolves with a POJO)- Config has been changed:
ENV.KEEN_PROJECT_ID->ENV.keen.projectId,ENV.KEEN_WRITE_KEY->ENV.keen.writeKey,ENV.KEEN_READ_KEY->ENV.keen.readKey. The old forms will still work as a fallback. - [INTERNAL] Update dependencies & clean up codebase
Private breaking changes - if you extended the service, these might affect you:
- Rename
_buildSendURLto_buildWriteUrl - Rename
_buildReadURLto_buildReadUrl _prepareEventDatanow returns the merged data instead of mutating the given data_makeRequesthas a different parameter order:_makeRequest(url, data = {}, apiKey = null, extraOptions = {}).- It uses an
keenFetchservice, which provides amakeRequest,_getFetchOptionsand_getFetchUrlmethod. - If you do not want to use ember-fetch, you can overwrite either the
keen-fetchservice or the_makeRequestmethod on thekeenservice.
- It uses an
- We do not use the 'Authorization' header as that does not work with CORS & the Keen.io API. Instead, we append the api_key as query parameter.
View more infos on new fetch configuration - you can also opt out of using ember-fetch.