fix: sync Braze kits with upstream — braze-6 version fix + test repairs - #1301
fix: sync Braze kits with upstream — braze-6 version fix + test repairs#1301rmi22186 wants to merge 4 commits into
Conversation
Braze kits hardcoded their version string in src/BrazeKit-dev.js but scripts/release.sh only updates package.json via npm pkg set, so the source constant drifted from package.json on every release. After the lockstep 3.0.0 bootstrap all four kits would report stale versions (3.0.9 / 4.2.2 / 5.0.3 / 5.0.3) in forwarder stats. Changes: - All 4 kits: replace hardcoded version constant with process.env.PACKAGE_VERSION, add rollup-plugin-replace / @rollup/plugin-replace to rollup.config.js and devDependencies so the version is injected at build time from package.json - braze-6: fix package.json version and src constant from 5.0.3 → 6.0.0, matching upstream master-v6 commit #65 (3/25/2026) which was missed because it landed two days after the monorepo migration - braze-5: apply upstream #63 README update (V5 opt-in notice, replacing the V4 copy-paste that was migrated)
PR SummaryMedium Risk Overview braze-6 is bumped from 5.0.3 → 6.0.0 in package metadata/source so the v6 kit isn’t mislabeled as v5. braze-5 Reviewed by Cursor Bugbot for commit 358c757. Bugbot is set up for automated code reviews on this repo. Configure here. |
- braze-5/6: replace hardcoded yearOfBirth 2015 with new Date().getFullYear() - 10 (test comment warned this would break every year) - braze-6: update suffix assertion from 'v5' to 'v6' and 'Appboy-v5' to 'Appboy-v6' (tests were copied from braze-5 and not updated to match the v6 suffix)
PACKAGE_VERSION injection will be applied to all kits in a single follow-up commit rather than Braze-only. Braze-6 retains the corrected hardcoded version '6.0.0' (was incorrectly '5.0.3').
|
|
Changes to CI/CD are going to keep hapening to all kits as we refine the release process, so ignore anything related to that here. |



Summary
Changes
braze-6
braze-5
Test plan