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

fix(virtualized-lists): react-test-renderer is not a runtime dependency #37955

Closed
wants to merge 1 commit into from

Conversation

tido64
Copy link
Collaborator

@tido64 tido64 commented Jun 19, 2023

Summary:

Installing react-native 0.72.x causes a warning about react-test-renderer because @react-native/virtualized-lists has declared a peer dependency on it. As far as I know, it is not used for anything but tests.

➤ YN0002: │ react-native@npm:0.72.0-rc.6 [292eb] doesn't provide react-test-renderer (p5a2fb), requested by @react-native/virtualized-lists

Note that while many package managers default to warnings in this case, there are still a number of users out there for which this is an error.

Changelog:

[GENERAL] [FIXED] - @react-native/virtualized-lists does not need react-test-renderer at runtime

Test Plan:

n/a

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Jun 19, 2023
@tido64 tido64 requested a review from NickGerleman June 19, 2023 08:58
@kelset
Copy link
Contributor

kelset commented Jun 20, 2023

following up from what was discussed in the releases weekly sync, this one might require a 0.72.1 soon after 0.72.0. Let's merge it asap pls

@kelset kelset requested review from necolas and hoxyq June 20, 2023 11:18
@cortinico
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the tido/remove-unused-peer-dep branch from 293505b to e78a3bc Compare June 20, 2023 13:20
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 9,020,415 -2
android hermes armeabi-v7a 8,281,644 -3
android hermes x86 9,534,130 -3
android hermes x86_64 9,376,530 -2
android jsc arm64-v8a 9,581,758 -2
android jsc armeabi-v7a 8,720,305 -2
android jsc x86 9,666,345 -2
android jsc x86_64 9,912,838 -6

Base commit: cba13bb
Branch: main

@NickGerleman
Copy link
Contributor

This LGTM. I can import once I’m in the office.

@facebook-github-bot
Copy link
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions
Copy link

This pull request was successfully merged by @tido64 in 7a2a327.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Jun 21, 2023
@tido64 tido64 deleted the tido/remove-unused-peer-dep branch June 21, 2023 11:19
kelset pushed a commit that referenced this pull request Jun 28, 2023
…ency (#37955)

Summary:
Installing `react-native` 0.72.x causes a warning about `react-test-renderer` because `react-native/virtualized-lists` has declared a peer dependency on it. As far as I know, it is not used for anything but tests.

```
➤ YN0002: │ react-native@npm:0.72.0-rc.6 [292eb] doesn't provide react-test-renderer (p5a2fb), requested by react-native/virtualized-lists
```

Note that while many package managers default to warnings in this case, there are still a number of users out there for which this is an error.

## Changelog:

[GENERAL] [FIXED] - `react-native/virtualized-lists` does not need `react-test-renderer` at runtime

Pull Request resolved: #37955

Test Plan: n/a

Reviewed By: rshest

Differential Revision: D46871536

Pulled By: NickGerleman

fbshipit-source-id: 1e5e15608ab394bc43cd4e6ac727a74734874642
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Sep 5, 2023
…ency (facebook#37955)

Summary:
Installing `react-native` 0.72.x causes a warning about `react-test-renderer` because `react-native/virtualized-lists` has declared a peer dependency on it. As far as I know, it is not used for anything but tests.

```
➤ YN0002: │ react-native@npm:0.72.0-rc.6 [292eb] doesn't provide react-test-renderer (p5a2fb), requested by react-native/virtualized-lists
```

Note that while many package managers default to warnings in this case, there are still a number of users out there for which this is an error.

[GENERAL] [FIXED] - `react-native/virtualized-lists` does not need `react-test-renderer` at runtime

Pull Request resolved: facebook#37955

Test Plan: n/a

Reviewed By: rshest

Differential Revision: D46871536

Pulled By: NickGerleman

fbshipit-source-id: 1e5e15608ab394bc43cd4e6ac727a74734874642
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Sep 5, 2023
…ency (facebook#37955)

Summary:
Installing `react-native` 0.72.x causes a warning about `react-test-renderer` because `react-native/virtualized-lists` has declared a peer dependency on it. As far as I know, it is not used for anything but tests.

```
➤ YN0002: │ react-native@npm:0.72.0-rc.6 [292eb] doesn't provide react-test-renderer (p5a2fb), requested by react-native/virtualized-lists
```

Note that while many package managers default to warnings in this case, there are still a number of users out there for which this is an error.

[GENERAL] [FIXED] - `react-native/virtualized-lists` does not need `react-test-renderer` at runtime

Pull Request resolved: facebook#37955

Test Plan: n/a

Reviewed By: rshest

Differential Revision: D46871536

Pulled By: NickGerleman

fbshipit-source-id: 1e5e15608ab394bc43cd4e6ac727a74734874642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants