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

[prop-types] v4.0.0 #11

Merged
merged 1 commit into from
Dec 16, 2022
Merged

[prop-types] v4.0.0 #11

merged 1 commit into from
Dec 16, 2022

Conversation

cortinico
Copy link
Contributor

Upstream we renamed @react-native/normalize-color to @react-native/normalize-colors.
On nightlies we got a report that this is causing a package clash:
reactwg/react-native-releases#41 (comment)

This is needed for 0.72 and for nightlies.

@hoxyq
Copy link

hoxyq commented Dec 13, 2022

FYI, after we publish these changes and will start to use deprecated-prop-types v4.0.1, we can remove this section from Verdaccio config: https://github.com/facebook/react-native/blob/main/.circleci/verdaccio.yml#L19-L22

@yungsters
Copy link
Contributor

We need to also update the yarn.lock file. Can you run yarn and include the changes there?

@cortinico cortinico changed the title [prop-types] v4.0.1 [prop-types] v4.0.0 Dec 13, 2022
yarn.lock Outdated Show resolved Hide resolved
@cortinico
Copy link
Contributor Author

@yungsters this is ready to go 👍

@yungsters yungsters merged commit ced0bf6 into main Dec 16, 2022
@yungsters yungsters deleted the nc/4.x branch December 16, 2022 00:24
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Oct 14, 2023
Summary:
To address the root cause of a recurring issue (#40797, #39692) where breaking changes to `react-native/normalize-colors` would be pulled into old versions of `deprecated-react-native-prop-types`, we recently change the dependency in the latter to use a semver range (facebook/react-native-deprecated-modules#27, #40869).

For CI, we generally force `react-native/*` to be resolved only from Verdaccio locally published packages - ie, the current versions at source. The source version (currently `0.74.1`) isn't semver-compatible with `deprecated-react-native-prop-types`'s dependency (`^0.73.0`), so `npm install` was failing in CI with "no package found". We should be getting `0.73.2` from the public registry in this case.

This restores a previous workaround added in #34571 but not updated since facebook/react-native-deprecated-modules#11 meant the dependency was now on the pluralised package. We have no dependency on the old non-plural package any more.

## Changelog:

[INTERNAL] [FIXED] - CI/Verdaccio: Proxy `react-native/normalize-colors` from NPM for the `deprecated-react-native-prop-types` dependency.

Pull Request resolved: #40971

Test Plan: CI

Reviewed By: cipolleschi

Differential Revision: D50298291

Pulled By: robhogan

fbshipit-source-id: 4bf6503108335ffa52654346d1874c217071ff91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants