-
Notifications
You must be signed in to change notification settings - Fork 213
fix: Bump expo from 45 to 48 #2706
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset (and the release label) is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9 files reviewed, no comments
|
Size Change: -1.74 kB (-0.03%) Total Size: 5.11 MB
ℹ️ View Unchanged
|
| @@ -0,0 +1,3 @@ | |||
| export default { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expo-localization is an optional dep so i think we should not have this here
| ], | ||
| presets: [ | ||
| 'module:metro-react-native-babel-preset', | ||
| 'babel-preset-expo', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does that make expo mandatory? we should support bare bones react native as well
| "jest-expo": "catalog:", | ||
| "metro": "0.83.1", | ||
| "@expo/metro-config": "~0.20.0", | ||
| "metro": "0.73.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://posthog.com/docs/error-tracking/upload-source-maps/react-native#inject
we need because of the 'Expo 50 or later' note.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting! It seems like the easiest approach might be to kill this PR and go all the way to 50 (or 53, latest) then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i am not sure what would be the correct min. version of metro here
expo 50 uses rn 0.73, so thats our min. support, we would use the metro version that is compatible with them
| "posthog-react-native-session-replay": "^1.2.0", | ||
| "react": "18.2.0", | ||
| "react-native": "^0.69.1", | ||
| "react-native": "^0.71.14", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should support >= 0.73 beause of this
https://expo.dev/changelog/2024-01-18-sdk-50
expo 50 uses rn 0.73
| @@ -1,34 +1,77 @@ | |||
| // Vendored / modified from @facebook/metro | |||
| // Type declarations for metro 0.73.x (used by Expo 48 / React Native 0.71.x) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments here https://github.com/PostHog/posthog-js/pull/2706/files#r2601914572
whats the warning? wanna check if theres a simpler fix since this pr introduces changes that will break things (left comments) |
It's not relevant for us, but worth fixing regardless |
|
@robbie-c not a prob then since we only support expo >= 50 |
|
We have expo 45 in our dev deps though, so this is going to keep showing up in |
ahh saw it now, lemme check this. |
Problem
Expo 45 has an (irrelevant) npm audit warning against it, I wanted to bump our Expo version to make that warning go away
Changes
Bump the expo version used from 45 -> 48 (the lowest version that fixes the issue).
@PostHog/team-mobile Please check the changes I made to the vendored code. I only tried to support 0.73.x and nothing else, but I don't have context on why we supported metro 0.83 which is a different version that what comes with expo 45.
Also, please double-check you're happy with how I had to change our asserts.
(also feel free to ignore this PR and make your own, I just want the warning to go away)
Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file