Skip to content

Commit

Permalink
chore: rename normalize-color to normalize-colors (umbrella discussio…
Browse files Browse the repository at this point in the history
…n 480)
  • Loading branch information
Titozzz committed Sep 2, 2022
1 parent c34659a commit 7f1417b
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ rn_library(
"//xplat/js/RKJSModules/vendor/react-test-renderer:react-test-renderer",
"//xplat/js/RKJSModules/vendor/scheduler:scheduler",
"//xplat/js/react-native-github/packages/assets:assets",
"//xplat/js/react-native-github/packages/normalize-color:normalize-color",
"//xplat/js/react-native-github/packages/normalize-colors:normalize-colors",
"//xplat/js/react-native-github/packages/polyfills:polyfills",
"//xplat/js/tools/metro/packages/metro-runtime/src/modules:modules",
"//xplat/js/tools/metro/packages/metro-runtime/src/polyfills:polyfills",
Expand Down
6 changes: 3 additions & 3 deletions Libraries/StyleSheet/__tests__/normalizeColor-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
const {OS} = require('../../Utilities/Platform');
const normalizeColor = require('../normalizeColor');

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

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

describe('iOS', () => {
Expand Down
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/normalizeColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/* eslint no-bitwise: 0 */

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

import type {ColorValue} from './StyleSheet';
import type {ProcessedColorValue} from './processColor';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@react-native-community/cli-platform-android": "^9.0.0",
"@react-native-community/cli-platform-ios": "^9.0.0",
"@react-native/assets": "1.0.0",
"@react-native/normalize-color": "2.0.0",
"@react-native/normalize-colors": "^0.71.0",
"@react-native/polyfills": "2.0.0",
"abort-controller": "^3.0.0",
"anser": "^1.4.9",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
load("@fbsource//xplat/js:JS_DEFS.bzl", "rn_library")

rn_library(
name = "normalize-color",
name = "normalize-colors",
labels = [
"pfh:ReactNative_CommonInfrastructurePlaceholder",
"supermodule:xplat/default/public.react_native.core",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@react-native/normalize-color",
"name": "@react-native/normalize-colors",
"version": "2.0.0",
"description": "Color normalization for React Native.",
"repository": {
"type": "git",
"url": "git@github.com:facebook/react-native.git",
"directory": "packages/normalize-color"
"directory": "packages/normalize-colors"
},
"license": "MIT"
}

0 comments on commit 7f1417b

Please sign in to comment.