-
Notifications
You must be signed in to change notification settings - Fork 904
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
chore: bump metro to 0.53 #222
chore: bump metro to 0.53 #222
Conversation
As you can see #100 is marked If we don't want to make this PR breaking, can you proxy What do you think @grabbou, should we cut 2.0 already or break 0.59 RCs (and maybe some other consumers?) just a bit more? |
Thanks for sending this over! React Native still uses (I've checked that package source code and it doesn't have a peer dependency nor dependency on any of the Metro packages that we use here). CC: @cpojer - shall we keep Metro version here in sync with https://github.com/facebook/react-native/blob/master/package.json#L95-L96 or we are good to just keep updating it? (since you follow master anyway) |
Yes we should keep it in sync in both places. |
Then we need to figure out an update strategy to avoid issues in the future. Right now, any major/minor update to the CLI will be automatically pulled by all React Native installations that use it (from 0.59 onwards). Shall we scope React Native CLI version for every React Native release to patches only? |
Ideally, Metro would be a React Native @cpojer - checking the packages that React Native depends on - they don't seem to have any Metro related dependencies. Do they really depend on other Metro packages? |
@grabbou the CLI is responsible for all the interactions with Metro so when we extracted the CLI, we were able to remove the direct dependency between RN and Metro. For the metro-react-native-babel-transformer, maybe we can set it to |
That would make sense and let us ship updates to React Native a bit easier and faster. Is this something we can try doing for 0.60 release? |
Thanks for the update. We're good on our end with RN 0.59 that was just released with metro 0.51 (via current 1.x line of he CLI). As part of our automation, we're manually patching metro with the fix we need from metro 0.52, so that we have a workaround for now (for #210). @thymikee do you still want to proxy |
To be frank, I recently noticed that By proxying (and actually fixing) |
But per comments from @grabbou and @cpojer it does not seem possible to bump metro version in CLI 1.x because of the |
Oh, I thought they're updated already. Then don't bother and just wait for us to merge it in a couple of days :). Sorry for misunderstanding! |
Could we change this PR to update Metro to 0.53.1? It seems like we can merge this afterwards, right @thymikee? |
Yup, we're gonna need to release 2.0 from that point. |
5f99cf2
to
dc2fa47
Compare
I changed it to 0.53.1, merging now :) |
Hi, @cpojer ! Is it possible to update Metro to |
@Vyazovoy I just merged a PR with that, will be available in RN 0.60.0-rc.1 :) |
But I don't think we can put this in 1.x because there are breaking changes |
Summary:
Bump metro dependencies from
0.51
to0.53
, mostly to propagate some recent bug fixes.This version bump does not seem to have any impact on the CLI.
In terms of metro breaking changes, in 0.52.0, the
dependencies
command was renamed toget-dependencies
. This change already seems to be accounted for, in PR #100.In 0.53.0, the only breaking change is related to the use of custom (non production)
BABEL_ENV
. This is unusual, so it shouldn't impact most users, and workaround is documented in the PR in case some users are facing the problem.Test Plan:
react-native init
followed byrun-ios
andrun-android
with success (no issue with bundler but for a bug identified in current CLI, fixed by fix: path to InitializeCore module in default metro config #220)Close #210