Skip to content

Commit d042a29

Browse files
committed
all: update changelog
1 parent 988093b commit d042a29

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

CHANGELOG.md

+38-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
11
9.0.0
22
----
33

4-
**Plugin**
4+
This is a major release, please see our [migration guide](https://doc.batch.com/react-native/advanced/8x-migration/) for more info on how to update your current Batch implementation.
55

6-
* Updated Batch 2.0
6+
**Plugin**
7+
* Updated Batch to 2.0. For more information see the [ios](https://doc.batch.com/ios/sdk-changelog/#2_0_0) and [android](https://doc.batch.com/android/sdk-changelog/#2_0_0) changelog .
78
* Batch requires iOS 13.0 or higher.
89
* Batch requires a `minSdk` level of 21 or higher.
910

10-
**User**
11+
**iOS**
12+
- The Batch React-Native plugin now automatically registers its own `UNUserNotificationCenterDelegate` and forwards it to the previous one if it exists.
13+
This means you no longer need to add `[BatchUNUserNotificationCenterDelegate registerAsDelegate]` in your `AppDelegate`, please delete it.
14+
It can be disabled by calling `BatchBridgeNotificationCenterDelegate.automaticallyRegister = false` before `[RNBatch start]`.
15+
1116

17+
**Core**
18+
- Added method `isOptedOut` to checks whether Batch has been opted out from or not.
19+
- Added method `updateAutomaticDataCollection` to fine-tune the data you authorize to be tracked by Batch.
20+
21+
**User**
1222
- Removed method `trackTransaction` with no equivalent.
23+
- Removed method `BatchUser.editor` and the related class `BatchUserEditor`, you should now use `BatchProfile.editor` which return an instance of `BatchProfileAttributeEditor`.
24+
- Added method `clearInstallationData` which allows you to remove the installation data without modifying the current profile.
25+
26+
**Event**
27+
28+
This version introduced two new types of attribute that can be attached to an event : Array and Object.
29+
30+
- Removed `trackEvent` APIs from the user module. You should now use `BatchProfile.trackEvent`.
31+
- `BatchEventData` has been renamed into `BatchEventAttributes`.
32+
- Removed `addTag` API from `BatchEventData` You should now use the `$tags` key with `put` method.
33+
- Removed parameter `label` from `trackEvent` API. You should now use the `$label` key in `BatchEventAttributes` with the `put(string, string)` method.
34+
- Added support for values of type: Array and Object to the `put` method.
35+
36+
**Profile**
37+
38+
Introduced `BatchProfile`, a new module that enables interacting with profiles. Its functionality replaces most of BatchUser used to do.
39+
40+
- Added `identify` API as replacement of `BatchUser.editor().setIdentifier`.
41+
- Added `editor` method to get a new instance of a `BatchProfileAttributeEditor` as replacement of `BatchUserEditor`.
42+
- Added `trackEvent` API as replacement of the `BatchUser.trackEvent` methods.
43+
- Added `trackLocation` API as replacement of the `BatchUser.trackLocation` method.
44+
45+
**Expo**
46+
- Added configuration field `enableDefaultOptOut` to control whether Batch is opted out from by default. (default: false)
47+
- Added configuration fields `enableProfileCustomIDMigration` and `enableProfileCustomDataMigration` to control whether Batch should trigger the profile migrations (default: true).
1348

1449
8.2.0
1550
----

0 commit comments

Comments
 (0)