From be9b045d1461fc269da48e099457813a56814d11 Mon Sep 17 00:00:00 2001 From: tarunrajput Date: Wed, 7 Feb 2024 18:32:03 +0530 Subject: [PATCH] [fix] @react-native/normalize-colors dependency Fix #2629 Close #2639 --- package-lock.json | 20 +++++++++---------- packages/react-native-web/package.json | 2 +- .../src/exports/Touchable/index.js | 2 +- .../src/exports/processColor/index.js | 2 +- .../Animated/nodes/AnimatedColor.js | 2 +- .../Animated/nodes/AnimatedInterpolation.js | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2dc88db18..d22027633 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2949,10 +2949,10 @@ "dev": true, "license": "MIT" }, - "node_modules/@react-native/normalize-color": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@react-native/normalize-color/-/normalize-color-2.1.0.tgz", - "integrity": "sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==" + "node_modules/@react-native/normalize-colors": { + "version": "0.74.1", + "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.74.1.tgz", + "integrity": "sha512-r+bTRs6pImqE3fx4h7bPzH2sOWSrnSHF/RJ7d00pNUj2P6ws3DdhS7WV+/7YosZkloYQfkiIkK3pIHvcYn665w==" }, "node_modules/@sinclair/typebox": { "version": "0.24.51", @@ -15492,7 +15492,7 @@ "license": "MIT", "dependencies": { "@babel/runtime": "^7.18.6", - "@react-native/normalize-color": "^2.1.0", + "@react-native/normalize-colors": "^0.74.1", "fbjs": "^3.0.4", "inline-style-prefixer": "^6.0.1", "memoize-one": "^6.0.0", @@ -17345,10 +17345,10 @@ "version": "1.0.0-next.21", "dev": true }, - "@react-native/normalize-color": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@react-native/normalize-color/-/normalize-color-2.1.0.tgz", - "integrity": "sha512-Z1jQI2NpdFJCVgpY+8Dq/Bt3d+YUi1928Q+/CZm/oh66fzM0RUl54vvuXlPJKybH4pdCZey1eDTPaLHkMPNgWA==" + "@react-native/normalize-colors": { + "version": "0.74.1", + "resolved": "https://registry.npmjs.org/@react-native/normalize-colors/-/normalize-colors-0.74.1.tgz", + "integrity": "sha512-r+bTRs6pImqE3fx4h7bPzH2sOWSrnSHF/RJ7d00pNUj2P6ws3DdhS7WV+/7YosZkloYQfkiIkK3pIHvcYn665w==" }, "@sinclair/typebox": { "version": "0.24.51", @@ -23650,7 +23650,7 @@ "version": "file:packages/react-native-web", "requires": { "@babel/runtime": "^7.18.6", - "@react-native/normalize-color": "^2.1.0", + "@react-native/normalize-colors": "^0.74.1", "fbjs": "^3.0.4", "inline-style-prefixer": "^6.0.1", "memoize-one": "^6.0.0", diff --git a/packages/react-native-web/package.json b/packages/react-native-web/package.json index 42acd57de..fa39e2fec 100644 --- a/packages/react-native-web/package.json +++ b/packages/react-native-web/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@babel/runtime": "^7.18.6", - "@react-native/normalize-color": "^2.1.0", + "@react-native/normalize-colors": "^0.74.1", "fbjs": "^3.0.4", "inline-style-prefixer": "^6.0.1", "memoize-one": "^6.0.0", diff --git a/packages/react-native-web/src/exports/Touchable/index.js b/packages/react-native-web/src/exports/Touchable/index.js index c9a200bcb..230aed4ce 100644 --- a/packages/react-native-web/src/exports/Touchable/index.js +++ b/packages/react-native-web/src/exports/Touchable/index.js @@ -13,7 +13,7 @@ import type { Node } from 'React'; import AccessibilityUtil from '../../modules/AccessibilityUtil'; import BoundingDimensions from './BoundingDimensions'; -import normalizeColor from '@react-native/normalize-color'; +import normalizeColor from '@react-native/normalize-colors'; import Position from './Position'; import React from 'react'; import UIManager from '../UIManager'; diff --git a/packages/react-native-web/src/exports/processColor/index.js b/packages/react-native-web/src/exports/processColor/index.js index b3329f61b..07e8cf253 100644 --- a/packages/react-native-web/src/exports/processColor/index.js +++ b/packages/react-native-web/src/exports/processColor/index.js @@ -8,7 +8,7 @@ * @flow */ -import normalizeColor from '@react-native/normalize-color'; +import normalizeColor from '@react-native/normalize-colors'; const processColor = (color?: string | number): ?number => { if (color === undefined || color === null) { diff --git a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedColor.js b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedColor.js index e57b59da2..6c959102d 100644 --- a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedColor.js +++ b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedColor.js @@ -12,7 +12,7 @@ import AnimatedValue from './AnimatedValue'; import AnimatedWithChildren from './AnimatedWithChildren'; -import normalizeColor from '@react-native/normalize-color'; +import normalizeColor from '@react-native/normalize-colors'; import NativeAnimatedHelper from '../NativeAnimatedHelper'; import type {PlatformConfig} from '../AnimatedPlatformConfig'; diff --git a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.js b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.js index 0b790089f..4e99e64fd 100644 --- a/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +++ b/packages/react-native-web/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.js @@ -18,7 +18,7 @@ import AnimatedWithChildren from './AnimatedWithChildren'; import NativeAnimatedHelper from '../NativeAnimatedHelper'; import invariant from 'fbjs/lib/invariant'; -import normalizeColor from '@react-native/normalize-color'; +import normalizeColor from '@react-native/normalize-colors'; import type {PlatformConfig} from '../AnimatedPlatformConfig';