You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,20 @@
1
+
## 3.0.0
2
+
3
+
- The Usercentrics Web CMP has been updated to v3 and includes a lot of changes.
4
+
- Read more about the CMP v3 here: https://usercentrics.com/docs/web/v3/
5
+
- Read the Usercentrics Migration guide here for more context, although it shouldn't be relevant when using this package: https://usercentrics.com/docs/web/migration/migration-from-v2/
6
+
- The `windowEvent` prop for `<UsercentricsProvider />` is no longer supported and should be removed. The CMP v3 handles this automatically with a new event internally.
7
+
- The `uiVersion` prop for `<UsercentricsScript />` is no longer supported and should be removed. The CMP v3 loader script currently supports only the "latest" version.
8
+
- This also means that hard-coding a version number and its [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hash is no longer supported. Instead, use a random `nonce` value when implementing a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP).
9
+
- The `showSecondLayer()` util no longer supports passing a service id argument to directly open to the service info. Instead, use the new `showServiceDetails(serviceId: ServiceId)` util.
10
+
- The `getServicesFromLocalStorage()` util has been replaced with `getConsentsFromLocalStorage()` with a different format.
11
+
- The following utils and hooks have been removed because CMP v3 no longer supports them:
12
+
-`getServicesBaseInfo()`
13
+
-`useServiceInfo()`
14
+
-`getServicesFullInfo()`
15
+
-`useServiceFullInfo()`
16
+
- All the utils are now `async` to match the CMP v3 implementations
17
+
1
18
## 2.0.0
2
19
3
20
- No functional changes. This version is only released to sync the package version with the supported Usercentrics Web CMP v2 version.
@@ -20,9 +20,7 @@ The next major version `@s-group/react-usercentrics@3` will only support [Userce
20
20
21
21
## Setup
22
22
23
-
You will need to set up a Usercentrics service and note down its `settingsId`. You will also need to enable the [Window Event](https://docs.usercentrics.com/#/v2-events?id=usage-as-window-event) in the admin interface, and note down its name (for example, `ucEvent`).
24
-
25
-
After this you need to render the `UsercentricsScript` component to load the Browser API, and then finally wrap your application in the `UsercentricsProvider`.
23
+
You will need to set up a Usercentrics service and note down its `settingsId`. After this you need to render the `UsercentricsScript` component to load the Browser API, and then finally wrap your application in the `UsercentricsProvider`.
0 commit comments