Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

v2.0.0

Latest
Compare
Choose a tag to compare
@cfnelson cfnelson released this 16 Jan 17:24

Changed

  • BREAKING: No longer bundling vendor analytics.min.js with our package. You must now create your own analytics.min.js file. Please refer to README for instructions on how to build your own analytics integration bundle.
  • BREAKING: Default function is no longer exported. Replaced with initAnalytics(). You must import as follows: import { initAnalytics } from '@okgrow/auto-analytics'.
  • initAnalytics() now expects a single object param which contains analytics.js, segment's integrations & options, and autorun. e.g - initAnalytics({ analytics, integrations, options, autorun }). Please refer to README for more details.
  • Example updated with only the Google Analytics and Mixpanel integrations bundled in analytics.min.js.
  • Rollup.js is now used for bundling the auto-analytics package instead of a custom babel script.
  • .babelrc now has a build & test config.
  • .npmignore has been removed and files: ['dist'] has been added to package.json instead.