Skip to content

Commit dc33559

Browse files
Titozzzfacebook-github-bot
authored andcommittedDec 1, 2022
chore: rename normalize-color to normalize-colors (umbrella 480) (#34571)
Summary: ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General] [Changed] - Rename normalize-color to normalize-colors as part of react-native-community/discussions-and-proposals#480 Pull Request resolved: #34571 Reviewed By: cortinico Differential Revision: D39235696 Pulled By: hoxyq fbshipit-source-id: b6d5fcae9fb5c953c2f7b48f73a95cd883ff8f63
·
v0.81.0-rc.0latest
1 parent 879d303 commit dc33559

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed
 

‎.circleci/verdaccio.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ uplinks:
1515
maxSockets: 40
1616
maxFreeSockets: 10
1717
packages:
18+
# Get @react-native/normalize-color from npm registry, since its used in deprecated-react-native-prop-types package
19+
'@react-native/normalize-color':
20+
access: $all
21+
publish: $authenticated
22+
proxy: npmjs
1823
# Group and isolate all local packages, avoid being proxy from outside
1924
'@react-native/*':
2025
access: $all

‎Libraries/StyleSheet/__tests__/normalizeColor-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
const {OS} = require('../../Utilities/Platform');
1414
const normalizeColor = require('../normalizeColor');
1515

16-
it('forwards calls to @react-native/normalize-color', () => {
17-
jest.resetModules().mock('@react-native/normalize-color', () => jest.fn());
16+
it('forwards calls to @react-native/normalize-colors', () => {
17+
jest.resetModules().mock('@react-native/normalize-colors', () => jest.fn());
1818

1919
expect(require('../normalizeColor')('#abc')).not.toBe(null);
20-
expect(require('@react-native/normalize-color')).toBeCalled();
20+
expect(require('@react-native/normalize-colors')).toBeCalled();
2121
});
2222

2323
describe('iOS', () => {

‎Libraries/StyleSheet/normalizeColor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import type {ProcessedColorValue} from './processColor';
1414
import type {ColorValue} from './StyleSheet';
1515

16-
import _normalizeColor from '@react-native/normalize-color';
16+
import _normalizeColor from '@react-native/normalize-colors';
1717

1818
function normalizeColor(
1919
color: ?(ColorValue | ProcessedColorValue),

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
"@react-native-community/cli-platform-ios": "10.0.0-alpha.3",
115115
"@react-native/assets-registry": "^0.72.0",
116116
"@react-native/gradle-plugin": "^0.72.1",
117-
"@react-native/normalize-color": "2.1.0",
118117
"@react-native/polyfills": "2.0.0",
118+
"@react-native/normalize-colors": "^0.72.0",
119119
"abort-controller": "^3.0.0",
120120
"anser": "^1.4.9",
121121
"base64-js": "^1.1.2",

‎packages/normalize-color/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@react-native/normalize-color",
3-
"version": "2.1.0",
2+
"name": "@react-native/normalize-colors",
3+
"version": "0.72.0",
44
"description": "Color normalization for React Native.",
55
"repository": {
66
"type": "git",

‎yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,11 @@
22522252
prompts "^2.4.0"
22532253
semver "^6.3.0"
22542254

2255+
"@react-native/normalize-color@*":
2256+
version "2.1.0"
2257+
resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.1.0.tgz#939b87a9849e81687d3640c5efa2a486ac266f91"
2258+
integrity sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==
2259+
22552260
"@reactions/component@^2.0.2":
22562261
version "2.0.2"
22572262
resolved "https://registry.yarnpkg.com/@reactions/component/-/component-2.0.2.tgz#40f8c1c2c37baabe57a0c944edb9310dc1ec6642"

0 commit comments

Comments
 (0)
Please sign in to comment.