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

deps: Run yarn upgrade #5713

Merged
merged 4 commits into from
Apr 4, 2023
Merged

Conversation

chrisbobbe
Copy link
Contributor

This should close all our currently open dependabot PRs: https://github.com/zulip/zulip-mobile/pulls/app%2Fdependabot

@chrisbobbe chrisbobbe added the dependencies Pull requests that update a dependency file label Apr 3, 2023
@chrisbobbe chrisbobbe requested a review from gnprice April 3, 2023 20:41
@chrisbobbe
Copy link
Contributor Author

Tested on my iPhone 13 Pro running iOS 16.4, and on the office Android device (Samsung Galaxy S9 running Android 9); all seems fine.

Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of this! I guess it's been a little while.

One small comment below.

package.json Outdated
@@ -47,6 +47,7 @@
"expo-sqlite": "~10.2.0",
"expo-web-browser": "~10.2.1",
"flow-enums-runtime": "^0.0.6",
"hermes-parser": ">=0.4.8",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in the commit whose message is just "deps: Run yarn upgrade". I reproduce that yarn upgrade causes this line to get added. Odd.

Presumably related to the hermes-parser line in our resolutions section. Perhaps drop that? At this point our dependencies that pull it in all depend on newer versions than this anyway.

chrisbobbe added a commit to chrisbobbe/zulip-mobile that referenced this pull request Apr 4, 2023
We added this because Flow's doc on enabling Flow enums
  ( https://flow.org/en/docs/enums/enabling-enums/ )
said we should make sure we're using at least version 0.4.8.

But that seems to be the case even without the line, so remove it.
I'm not sure why now 0.5.0 is brought in, but at least that's later
than 0.4.8.

Discussion:
  zulip#5713 (comment)
@chrisbobbe chrisbobbe force-pushed the pr-yarn-upgrade-2023-04-03 branch from cea79c7 to 20b3490 Compare April 4, 2023 17:53
@chrisbobbe
Copy link
Contributor Author

Thanks for the review! Revision pushed.

For some reason after the upcoming `yarn upgrade`, ESLint would give
these errors:

  /Users/chrisbobbe/dev/zulip-mobile/src/boot/TranslationProvider.js

    2:49 error
      '/Users/chrisbobbe/dev/zulip-mobile/node_modules/react/index.js'
      imported multiple times import/no-duplicates

    3:57 error
      '/Users/chrisbobbe/dev/zulip-mobile/node_modules/react/index.js'
      imported multiple times import/no-duplicates

  ✖ 2 problems (2 errors, 0 warnings)

So prevent those errors by doing this.
5.3.0 says in the changelog that it adds support for the new React
Native architecture:
  https://github.com/react-native-cameraroll/react-native-cameraroll/releases/tag/v5.3.0

We're not yet ready to use the new architecture. Possibly the new
architecture doesn't also become *required* at the same time, but
we've had similar hopes in comparable situations and it doesn't
always work out that way.

Plus in 5.3.0 the TypeScript types start importing things with names
like TurboModule from the React Native types, and so to support that
in our Flow types we'd need changes to TsFlower. Leave that work for
later.
We added this because Flow's doc on enabling Flow enums
  ( https://flow.org/en/docs/enums/enabling-enums/ )
said we should make sure we're using at least version 0.4.8.

But that seems to be the case even without the line, so remove it.
I'm not sure why now 0.5.0 is brought in, but at least that's later
than 0.4.8.

Discussion:
  zulip#5713 (comment)
@gnprice gnprice force-pushed the pr-yarn-upgrade-2023-04-03 branch from 20b3490 to f6d1bc4 Compare April 4, 2023 18:14
@gnprice gnprice merged commit f6d1bc4 into zulip:main Apr 4, 2023
@gnprice
Copy link
Member

gnprice commented Apr 4, 2023

Thanks! Merging.

@chrisbobbe chrisbobbe deleted the pr-yarn-upgrade-2023-04-03 branch April 4, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants