Skip to content

Commit 61e2214

Browse files
TitozzzOlimpiaZurek
authored andcommitted
chore: rename polyfills to js-polyfills (umbrella 480) (facebook#34574)
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 polyfills to js-polyfills as part of react-native-community/discussions-and-proposals#480 Pull Request resolved: facebook#34574 Reviewed By: cipolleschi Differential Revision: D39268818 Pulled By: hoxyq fbshipit-source-id: c87807460f27fc83667d18c350a4a847459f056e
1 parent c42bfe8 commit 61e2214

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

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
@@ -115,7 +115,7 @@
115115
"@react-native/assets": "1.0.0",
116116
"@react-native/gradle-plugin": "^0.72.1",
117117
"@react-native/normalize-color": "2.1.0",
118-
"@react-native/polyfills": "2.0.0",
118+
"@react-native/js-polyfills": "^0.72.0",
119119
"abort-controller": "^3.0.0",
120120
"anser": "^1.4.9",
121121
"base64-js": "^1.1.2",

packages/polyfills/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ yarn_workspace(
2222

2323
rn_library(
2424
name = "polyfills",
25-
base_path = relative_path_to_js_root() + "node_modules/@react-native/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",

packages/polyfills/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/polyfills",
3-
"version": "2.0.0",
2+
"name": "@react-native/js-polyfills",
3+
"version": "0.72.0",
44
"description": "Polyfills for React Native.",
55
"repository": {
66
"type": "git",

rn-get-polyfills.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
'use strict';
1111

12-
module.exports = require('@react-native/polyfills');
12+
module.exports = require('@react-native/js-polyfills');

0 commit comments

Comments
 (0)