Skip to content

Commit 7f1985d

Browse files
committed
chore(release): 0.0.1-beta.1
1 parent 6a281f4 commit 7f1985d

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,76 @@
22

33
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.
44

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+
575
<a name="0.0.1-beta.0"></a>
676

777
## [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)

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@segment/analytics-react-native",
3-
"version": "0.0.1-beta.0",
3+
"version": "0.0.1-beta.1",
44
"description": "The hassle-free way to add analytics to your React-Native app.",
55
"license": "MIT",
66
"main": "build/cjs/index.js",

0 commit comments

Comments
 (0)