Skip to content

Releases: Cropster/ember-keen

v2.0.0

06 Aug 12:50

Choose a tag to compare

  • 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.

v0.4.2

27 Apr 11:36

Choose a tag to compare

Bugfixes:

  • Ensure mergeData is merged deeply. Previously, if you had a keen-property in your mergeData, it would not merge the timestamp into it. Also, it wasn't possible to deep-merge objects.