Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use 5.32.0 in hot JS update? #4091

Closed
chenweisen2013 opened this issue Sep 13, 2024 · 1 comment
Closed

Can I use 5.32.0 in hot JS update? #4091

chenweisen2013 opened this issue Sep 13, 2024 · 1 comment

Comments

@chenweisen2013
Copy link

Description

Is @sentry/react-native 5.32.0 compatible with iOS RNSentry 5.32.0? Is @sentry/react-native backward compatible, meaning can it be used with iOS RNSentry versions lower than 5.32.0? Our app currently supports JavaScript hot updates, and there are cases where older versions of the app use newer versions of JavaScript. If the JavaScript uses a newer version of @sentry/react-native, it could result in @sentry/react-native being 5.32.0 while the iOS RNSentry is lower than 5.32.0. We want to confirm if @sentry/react-native has backward compatibility in this scenario. Similarly, does this apply to the Android platform as well? Thank you for your assistance.

@krystofwoldrich
Copy link
Member

Hi @chenweisen2013,
the https://github.com/getsentry/sentry-react-native/releases/tag/5.32.0 release is compatible with https://github.com/getsentry/sentry-react-native/releases/tag/5.31.1

But it general we recommend upgrading the SDK version only in native application releases. The same as any other dependencies shipping with native code.

To determinate the compatibility with JS updates, you need to check if the there were no native code changes between the versions.

You can use the GitHub compare releases feature to do that -> 5.31.0...5.31.1#files_bucket

If you see Sentry Cocoa or Sentry Android was updated in the changelog than JS update is not possible.

@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Sep 13, 2024
@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Sep 13, 2024
@krystofwoldrich krystofwoldrich changed the title @sentry/react-native 5.32.0 compatibility Can I use 5.32.0 in hot JS update? Sep 13, 2024
@krystofwoldrich krystofwoldrich closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
@github-project-automation github-project-automation bot moved this from Needs More Information to Done in Mobile & Cross Platform SDK Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants