Skip to content

chore: rename normalize-color to normalize-colors (umbrella 480) - #34571

Closed
Titozzz wants to merge 4 commits into
react:mainfrom
Titozzz:chore-480-rename-normalize-color
Closed

chore: rename normalize-color to normalize-colors (umbrella 480)#34571
Titozzz wants to merge 4 commits into
react:mainfrom
Titozzz:chore-480-rename-normalize-color

Conversation

@Titozzz

@TitozzzTitozzz commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

Summary

Changelog

[General] [Changed] - Rename normalize-color to normalize-colors as part of react-native-community/discussions-and-proposals#480

Test Plan

@Titozzz
Titozzz requested a review from hramos as a code ownerSeptember 2, 2022 09:02
@facebook-github-botfacebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 2, 2022
@TitozzzTitozzz changed the title chore: rename normalize-color to normalize-colors (umbrella discussio…chore: rename normalize-color to normalize-colors (umbrella 480)Sep 2, 2022
@github-actions

github-actionsBot commented Sep 2, 2022

Copy link
Copy Markdown
Warnings
⚠️🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against d7b39e7

@facebook-github-botfacebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Sep 2, 2022
@Titozzz
Titozzzforce-pushed the chore-480-rename-normalize-color branch from 7f1417b to 85f87b4CompareSeptember 2, 2022 09:04
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@analysis-bot

analysis-bot commented Sep 2, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a7,103,618+57
androidhermesarmeabi-v7a6,471,949+63
androidhermesx867,521,258+55
androidhermesx86_647,380,136+55
androidjscarm64-v8a8,971,262+2,863
androidjscarmeabi-v7a7,702,367+2,862
androidjscx869,033,571+2,865
androidjscx86_649,511,602+2,853

Base commit: 2d1d61a
Branch: main

@analysis-bot

analysis-bot commented Sep 2, 2022

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 2d1d61a
Branch: main

@kelsetkelset added the Tech: Monorepo For PRs that are related to the monorepo infra label Sep 12, 2022
@cortinicocortinico mentioned this pull request Sep 14, 2022
11 tasks
Comment threadpackages/normalize-colors/BUCK Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Commenting here but valid for the whole PR:

Let's undo the BUCK update and the path change. It will make easier for us to import and merge this change 👍

I've also posted an update on the monorepo effort there:

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

Done ✅

@Titozzz
Titozzzforce-pushed the chore-480-rename-normalize-color branch from 02bb773 to 4abf495CompareSeptember 23, 2022 12:13
Comment threadBUCK Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should also be reverted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be reverted, alongside the folder renaming

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@cipolleschi

Copy link
Copy Markdown
Contributor

could you rebase this? I'll try to cary this out whenever I have some time.

@hoxyq
hoxyqforce-pushed the chore-480-rename-normalize-color branch from e874737 to d5554bdCompareNovember 25, 2022 09:30
@pull-bot

Copy link
Copy Markdown

PR build artifact for d5554bd is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot

Copy link
Copy Markdown

PR build artifact for d5554bd is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@pull-bot

Copy link
Copy Markdown

PR build artifact for d7b39e7 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot

Copy link
Copy Markdown

PR build artifact for d7b39e7 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @Titozzz in dc33559.

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

@react-native-botreact-native-bot added the Merged This PR has been merged. label Dec 1, 2022
@yungsters

Copy link
Copy Markdown
Contributor

Should we have also renamed packages/normalize-color{ => s}?

@hoxyq

Copy link
Copy Markdown
Contributor

Should we have also renamed packages/normalize-color{ => s}?

We plan to do all renamings in Phase 4, as discussed in original RFC: react-native-community/discussions-and-proposals#480

facebook-github-bot pushed a commit 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.Tech: MonorepoFor PRs that are related to the monorepo infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@Titozzz@facebook-github-bot@analysis-bot@cipolleschi@pull-bot@react-native-bot@yungsters@hoxyq@cortinico@kelset