Skip to content

Commit 71399d0

Browse files
hoxyqfacebook-github-bot
authored andcommitted
refactor(react-native/polyfills): rename package to @react-native/js-polyfills and align version
Summary: Changelog: [General][Changed] - renamed react-native/polyfills -> react-native/js-polyfills and align with other packages versions (0.72.0) as a part of migration to monorepo Reviewed By: motiz88 Differential Revision: D41553157 fbshipit-source-id: eef70c8e7639080acdeb6716d1a915760a85458a
1 parent 17f221c commit 71399d0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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
@@ -113,7 +113,7 @@
113113
"@react-native-community/cli-platform-ios": "10.0.0-alpha.3",
114114
"@react-native/assets-registry": "^0.72.0",
115115
"@react-native/gradle-plugin": "^0.72.1",
116-
"@react-native/polyfills": "2.0.0",
116+
"@react-native/js-polyfills": "^0.72.0",
117117
"@react-native/normalize-colors": "^0.72.0",
118118
"abort-controller": "^3.0.0",
119119
"anser": "^1.4.9",

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)