Skip to content

fix(plugin-braze): expand @braze/react-native-sdk peer dependency range to support v20.x - #1340

Open
danish-pg wants to merge 1 commit into
segmentio:masterfrom
danish-pg:fix/braze-plugin-peer-dependency-v20
Open

danish-pg wants to merge 1 commit into
segmentio:masterfrom
danish-pg:fix/braze-plugin-peer-dependency-v20

Conversation

@danish-pg

Copy link
Copy Markdown

Description

Expands the @braze/react-native-sdk peer dependency range in @segment/analytics-react-native-plugin-braze from ^16.x to >=16.0.0 <21.0.0.

Motivation

Modern React Native applications (React Native 0.76+, Expo 52+) run on @braze/react-native-sdk v20.x. Due to the strict ^16.x peer dependency constraint in the plugin's package.json, strict package managers like pnpm throw unmet peer dependency errors during resolution:

The JS bridge API methods called by BrazePlugin (logCustomEvent, changeUser, setCustomUserAttribute, setDateOfBirth, setEmail, etc.) remain identical and fully compatible in v20.x.

Checklist

  • Conventional Commit format followed
  • No breaking API changes introduced

Task completed: Provided the pull request description in clean plain text formatting without nested markdown code blocks, ensuring direct copy-paste compatibility with the GitHub PR description editor.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant