Skip to content

v2.0.0

Latest

Choose a tag to compare

@mydea mydea released this 06 Aug 12:50
· 19 commits to master since this release
  • Use ember-fetch instead of $.ajax
    • Make sure to run ember g ember-keen after upgrading!
  • query does 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 _buildSendURL to _buildWriteUrl
  • Rename _buildReadURL to _buildReadUrl
  • _prepareEventData now returns the merged data instead of mutating the given data
  • _makeRequest has a different parameter order: _makeRequest(url, data = {}, apiKey = null, extraOptions = {}).
    • It uses an keenFetch service, which provides a makeRequest, _getFetchOptions and _getFetchUrl method.
    • If you do not want to use ember-fetch, you can overwrite either the keen-fetch service or the _makeRequest method on the keen service.
  • 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.