From 7f1985dfa0d7376aba3609cedac71965aa99c74e Mon Sep 17 00:00:00 2001 From: Fathy Boundjadj Date: Tue, 23 Oct 2018 23:12:48 +0200 Subject: [PATCH] chore(release): 0.0.1-beta.1 --- CHANGELOG.md | 70 ++++++++++++++++++++++++++++++++++++++ packages/core/package.json | 2 +- 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b0dfba84..7dcb74c40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,76 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [0.0.1-beta.1](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-beta.0...v0.0.1-beta.1) (2018-10-23) + + +### Bug Fixes + +* **bridge:** improve missing native module error ([#5](https://github.com/segmentio/analytics-react-native/issues/5)) ([0a03617](https://github.com/segmentio/analytics-react-native/commit/0a03617)) +* **integrations:** fix TypeScript typings ([#8](https://github.com/segmentio/analytics-react-native/issues/8)) ([7535510](https://github.com/segmentio/analytics-react-native/commit/7535510)), closes [#6](https://github.com/segmentio/analytics-react-native/issues/6) + + +### Features + +* **client:** use object-based configuration ([#7](https://github.com/segmentio/analytics-react-native/issues/7)) ([6a281f4](https://github.com/segmentio/analytics-react-native/commit/6a281f4)) + + +### BREAKING CHANGES + +* **client:** We've dropped the chained configuration for an object one instead. This will make Analytics blend even better with tools like Prettier. + +Before: +```js +analytics + .configure() + .using(Mixpanel, GoogleAnalytics) + .recordScreenViews() + .trackAppLifecycleEvents() + .trackAttributionData() + .android() + .flushInterval(60) + .disableDevicedId() + .ios() + .trackAdvertising() + .trackDeepLinks() + .setup("writeKey") + .then(() => + console.log('Analytics is ready') + ) + .catch(err => + console.error('Something went wrong', err) + ) +``` + +Now: +```js +analytics + .setup('writeKey', { + using: [Mixpanel, GoogleAnalytics], + recordScreenViews: true, + trackAppLifecycleEvents: true, + trackAttributionData: true, + + android: { + flushInterval: 60, + collectDeviceId: false + }, + ios: { + trackAdvertising: true, + trackDeepLinks: true + } + }) + .then(() => + console.log('Analytics is ready') + ) + .catch(err => + console.error('Something went wrong', err) + ) +``` + + + ## [0.0.1-beta.0](https://github.com/segmentio/analytics-react-native/compare/v0.0.1-alpha.9...v0.0.1-beta.0) (2018-10-13) diff --git a/packages/core/package.json b/packages/core/package.json index 5c694f30a..323d805c9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@segment/analytics-react-native", - "version": "0.0.1-beta.0", + "version": "0.0.1-beta.1", "description": "The hassle-free way to add analytics to your React-Native app.", "license": "MIT", "main": "build/cjs/index.js",