Skip to content

Commit 199b2bf

Browse files
committed
chore: rename polyfills to js-polyfills
1 parent c34659a commit 199b2bf

File tree

15 files changed

+12
-15
lines changed

15 files changed

+12
-15
lines changed

BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ rn_library(
767767
"//xplat/js/RKJSModules/vendor/scheduler:scheduler",
768768
"//xplat/js/react-native-github/packages/assets:assets",
769769
"//xplat/js/react-native-github/packages/normalize-color:normalize-color",
770-
"//xplat/js/react-native-github/packages/polyfills:polyfills",
770+
"//xplat/js/react-native-github/packages/js-polyfills:js-polyfills",
771771
"//xplat/js/tools/metro/packages/metro-runtime/src/modules:modules",
772772
"//xplat/js/tools/metro/packages/metro-runtime/src/polyfills:polyfills",
773773
],

Libraries/vendor/core/ErrorUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @flow strict
99
*/
1010

11-
import type {ErrorUtilsT} from '@react-native/polyfills/error-guard';
11+
import type {ErrorUtilsT} from '@react-native/js-polyfills/error-guard';
1212

1313
/**
1414
* The particular require runtime that we are using looks for a global

jest/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
const MockNativeMethods = jest.requireActual('./MockNativeMethods');
1313
const mockComponent = jest.requireActual('./mockComponent');
1414

15-
jest.requireActual('@react-native/polyfills/Object.es8');
16-
jest.requireActual('@react-native/polyfills/error-guard');
15+
jest.requireActual('@react-native/js-polyfills/Object.es8');
16+
jest.requireActual('@react-native/js-polyfills/error-guard');
1717

1818
global.__DEV__ = true;
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"@react-native-community/cli-platform-ios": "^9.0.0",
110110
"@react-native/assets": "1.0.0",
111111
"@react-native/normalize-color": "2.0.0",
112-
"@react-native/polyfills": "2.0.0",
112+
"@react-native/js-polyfills": "^0.71.0",
113113
"abort-controller": "^3.0.0",
114114
"anser": "^1.4.9",
115115
"base64-js": "^1.1.2",
File renamed without changes.

packages/polyfills/BUCK renamed to packages/js-polyfills/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ yarn_workspace(
2121
)
2222

2323
rn_library(
24-
name = "polyfills",
25-
base_path = relative_path_to_js_root() + "node_modules/@react-native/polyfills/",
24+
name = "js-polyfills",
25+
base_path = relative_path_to_js_root() + "node_modules/@react-native/js-polyfills/",
2626
is_polyfill = True,
2727
labels = [
2828
"pfh:ReactNative_CommonInfrastructurePlaceholder",
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)