Skip to content

chore: release 9.8.0#393

Merged
imSzukala merged 1 commit intomainfrom
irena/release-9-8-0
Mar 13, 2026
Merged

chore: release 9.8.0#393
imSzukala merged 1 commit intomainfrom
irena/release-9-8-0

Conversation

@imSzukala
Copy link
Contributor

Why?

PR #391 broadened the loginUserWithUserAttributes TypeScript signature from Pick<UserAttributes, 'email' | 'userId'> to full UserAttributes, and fixed the Android implementation to actually pass all attributes. This is a public API change warranting a minor version bump, and the README documentation for this method was outdated.

How?

Bump version to 9.8.0 and expand the loginUserWithUserAttributes README section to document all supported user attribute fields, matching the existing updateUser documentation pattern.

Implementation Plan

Release 9.8.0

Context

Since 9.7.1, PR #391 fixed loginUserWithUserAttributes on Android to actually pass all user attributes (not just email/userId) and broadened the TypeScript signature from Pick<UserAttributes, 'email' | 'userId'> to full UserAttributes. This is a public API change warranting a minor version bump. The README documentation for this method is outdated and only shows email/userId.

Changes

1. Bump version in package.json (line 3)

  • "9.7.1""9.8.0"
  • The podspec and android/build.gradle read from this dynamically — no other version files need editing.

2. Update README loginUserWithUserAttributes section (lines 831–846)

Replace the current minimal docs with expanded documentation matching the updateUser pattern (lines 850–900):

  • Update method signature in heading: ({email,userId})(userAttributes)
  • Add description mentioning you can pass all user attributes at login time
  • Add a code example showing all fields (mirror the updateUser example)
  • Expand the options table to list all UserAttributes fields (email, userId, name, phone, languageOverride, signedUpAt, unsubscribedFromEmails, companies, customAttributes)
  • Note that one of email or userId is required

3. Update examples/example/ios/Podfile.lock

  • Run cd examples/example/ios && pod install to regenerate with the new version string (line 8) and checksum (line 1336)
  • Fallback if CocoaPods unavailable: manually replace 9.7.19.8.0 on line 8

4. Update examples/with-notifications/ios/Podfile.lock

  • Manually replace intercom-react-native (9.7.1)intercom-react-native (9.8.0) on line 12
  • (This example isn't in the yarn workspace, so pod install won't pick up the local version — following established pattern from prior releases)

Files to modify

  • package.json — version bump
  • README.md — expand loginUserWithUserAttributes docs (lines 831–846)
  • examples/example/ios/Podfile.lock — version + checksum via pod install
  • examples/with-notifications/ios/Podfile.lock — version string (line 12)

Verification

  1. Confirm package.json shows "version": "9.8.0"
  2. Run pod install in examples/example/ios/ — should succeed and update the lock file
  3. Verify both Podfile.lock files reference intercom-react-native (9.8.0)
  4. Review README diff to ensure the new loginUserWithUserAttributes section matches updateUser style
  5. yarn typescript (or npx tsc --noEmit) to confirm no type errors

Generated with Claude Code

Minor bump for the broadened loginUserWithUserAttributes TypeScript
signature (now accepts full UserAttributes, not just email/userId).
Updates README docs to match the new API surface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@imSzukala imSzukala merged commit 8a5e1d7 into main Mar 13, 2026
8 checks passed
@imSzukala imSzukala deleted the irena/release-9-8-0 branch March 13, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants