@mparticle/web-braze-kit
Advanced tools
+1
-1
| { | ||
| "name": "@mparticle/web-braze-kit", | ||
| "version": "3.0.8", | ||
| "version": "3.0.9", | ||
| "author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)", | ||
@@ -5,0 +5,0 @@ "description": "mParticle integration sdk for Braze", |
+8
-6
@@ -11,3 +11,3 @@  | ||
| You can opt into the latest major version of the Braze Web SDK whether you implement mParticle's Web SDK using npm or our snippet/CDN. | ||
| * Customers who self-host mParticle via npm - You can use @mparticle/web-braze-kit version 4.0.0 in your package.json now! This has been available since 10/15/2022. | ||
| * Customers who self-host mParticle via npm - You should add @mparticle/web-braze-kit version 4.0.0 or greater in your package.json now! You must also select `Version 4` under `Braze Web SDK Version` in the Braze connection settings. | ||
| * Customers who load mParticle via snippet/CDN - Opting in is available via the mParticle UI in your Braze connection settings. | ||
@@ -23,3 +23,3 @@ | ||
| Step 2: Roll out code changes to be used before February 15, 2023: | ||
| Step 2: Roll out code changes prior to opting in to V4 | ||
| ```javascript | ||
@@ -32,3 +32,5 @@ if (window.appboy) { | ||
| ``` | ||
| Step 3: After February 1, 2023, you can simplify your code after the mParticle Braze Web kit, which includes Braze SDK V4, has been released to our CDN: | ||
| Step 3: Opt into Version 4. Simply navigate to your connection settings and selection `Version 4` from the new Braze Web SDK Version drop down. | ||
| Step 4: After you opt in, you can simplify your code. We recommend testing and waiting at least 24 hours between opting in and removing previous instances of `appboy` and doing thorough testing of your application in a development environment to ensure everything is working: | ||
| ```javascript | ||
@@ -38,7 +40,7 @@ window.braze.destroyFeed(); | ||
| Step 4: Push Notifications via service-worker.js | ||
| If you use Push Notifications, we have updated the `service-worker.js` file. In our testing, Braze’s push notifications work as expected regardless of what version of the service-worker is used, but we recommend updating this file to ensure future compatibility. In your `service-worker.js` file, update the code to reference `https://static.mparticle.com/sdk/js/braze/service-worker-4.2.0.js` instead of `https://static.mparticle.com/sdk/js/braze/service-worker-3.5.0.js`. Your `service-worker.js` file should now contain: | ||
| Step 5: Push Notifications via service-worker.js | ||
| If you use Push Notifications, we have updated the `service-worker.js` file. In our testing, Braze’s push notifications work as expected regardless of what version of the service-worker is used, but we recommend updating this file to ensure future compatibility. In your `service-worker.js` file, update the code to reference `https://static.mparticle.com/sdk/js/braze/service-worker-4.2.1.js` instead of `https://static.mparticle.com/sdk/js/braze/service-worker-3.5.0.js`. Your `service-worker.js` file should now contain: | ||
| ```javascript | ||
| self.imports('https://static.mparticle.com/sdk/js/braze/service-worker-4.2.0.js') | ||
| self.imports('https://static.mparticle.com/sdk/js/braze/service-worker-4.2.1.js') | ||
| ``` | ||
@@ -45,0 +47,0 @@ |
Sorry, the diff of this file is too big to display
233897
3.7%1701
14.55%65
3.17%