|
2 | 2 |
|
3 | 3 | 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.
|
4 | 4 |
|
| 5 | +<a name="0.0.1-beta.1"></a> |
| 6 | +## [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) |
| 7 | + |
| 8 | + |
| 9 | +### Bug Fixes |
| 10 | + |
| 11 | +* **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)) |
| 12 | +* **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) |
| 13 | + |
| 14 | + |
| 15 | +### Features |
| 16 | + |
| 17 | +* **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)) |
| 18 | + |
| 19 | + |
| 20 | +### BREAKING CHANGES |
| 21 | + |
| 22 | +* **client:** We've dropped the chained configuration for an object one instead. This will make Analytics blend even better with tools like Prettier. |
| 23 | + |
| 24 | +Before: |
| 25 | +```js |
| 26 | +analytics |
| 27 | + .configure() |
| 28 | + .using(Mixpanel, GoogleAnalytics) |
| 29 | + .recordScreenViews() |
| 30 | + .trackAppLifecycleEvents() |
| 31 | + .trackAttributionData() |
| 32 | + .android() |
| 33 | + .flushInterval(60) |
| 34 | + .disableDevicedId() |
| 35 | + .ios() |
| 36 | + .trackAdvertising() |
| 37 | + .trackDeepLinks() |
| 38 | + .setup("writeKey") |
| 39 | + .then(() => |
| 40 | + console.log('Analytics is ready') |
| 41 | + ) |
| 42 | + .catch(err => |
| 43 | + console.error('Something went wrong', err) |
| 44 | + ) |
| 45 | +``` |
| 46 | + |
| 47 | +Now: |
| 48 | +```js |
| 49 | +analytics |
| 50 | + .setup('writeKey', { |
| 51 | + using: [Mixpanel, GoogleAnalytics], |
| 52 | + recordScreenViews: true, |
| 53 | + trackAppLifecycleEvents: true, |
| 54 | + trackAttributionData: true, |
| 55 | + |
| 56 | + android: { |
| 57 | + flushInterval: 60, |
| 58 | + collectDeviceId: false |
| 59 | + }, |
| 60 | + ios: { |
| 61 | + trackAdvertising: true, |
| 62 | + trackDeepLinks: true |
| 63 | + } |
| 64 | + }) |
| 65 | + .then(() => |
| 66 | + console.log('Analytics is ready') |
| 67 | + ) |
| 68 | + .catch(err => |
| 69 | + console.error('Something went wrong', err) |
| 70 | + ) |
| 71 | +``` |
| 72 | + |
| 73 | + |
| 74 | + |
5 | 75 | <a name="0.0.1-beta.0"></a>
|
6 | 76 |
|
7 | 77 | ## [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)
|
|
0 commit comments