diff --git a/Libraries/vendor/core/ErrorUtils.js b/Libraries/vendor/core/ErrorUtils.js index 37b0da17cd1..12530c0eccc 100644 --- a/Libraries/vendor/core/ErrorUtils.js +++ b/Libraries/vendor/core/ErrorUtils.js @@ -8,7 +8,7 @@ * @flow strict */ -import type {ErrorUtilsT} from '@react-native/js-polyfills/error-guard'; +import type {ErrorUtilsT} from '@react-native/polyfills/error-guard'; /** * The particular require runtime that we are using looks for a global diff --git a/jest/setup.js b/jest/setup.js index 511c6642a46..3738bd2c61e 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -12,8 +12,8 @@ const MockNativeMethods = jest.requireActual('./MockNativeMethods'); const mockComponent = jest.requireActual('./mockComponent'); -jest.requireActual('@react-native/js-polyfills/Object.es8'); -jest.requireActual('@react-native/js-polyfills/error-guard'); +jest.requireActual('@react-native/polyfills/Object.es8'); +jest.requireActual('@react-native/polyfills/error-guard'); global.__DEV__ = true; diff --git a/package.json b/package.json index 91f1d18f673..63c1fe6e251 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "@react-native/assets": "1.0.0", "@react-native/gradle-plugin": "^0.72.1", "@react-native/normalize-color": "2.1.0", - "@react-native/js-polyfills": "^0.72.0", + "@react-native/polyfills": "2.0.0", "abort-controller": "^3.0.0", "anser": "^1.4.9", "base64-js": "^1.1.2", diff --git a/packages/polyfills/BUCK b/packages/polyfills/BUCK index b3881484a95..88ffc9513ee 100644 --- a/packages/polyfills/BUCK +++ b/packages/polyfills/BUCK @@ -22,7 +22,7 @@ yarn_workspace( rn_library( name = "polyfills", - base_path = relative_path_to_js_root() + "node_modules/@react-native/js-polyfills/", + base_path = relative_path_to_js_root() + "node_modules/@react-native/polyfills/", is_polyfill = True, labels = [ "pfh:ReactNative_CommonInfrastructurePlaceholder", diff --git a/packages/polyfills/package.json b/packages/polyfills/package.json index 6dfce02834c..58a2b3a7049 100644 --- a/packages/polyfills/package.json +++ b/packages/polyfills/package.json @@ -1,6 +1,6 @@ { - "name": "@react-native/js-polyfills", - "version": "0.72.0", + "name": "@react-native/polyfills", + "version": "2.0.0", "description": "Polyfills for React Native.", "repository": { "type": "git", diff --git a/rn-get-polyfills.js b/rn-get-polyfills.js index c051fd42134..9a806bfc138 100644 --- a/rn-get-polyfills.js +++ b/rn-get-polyfills.js @@ -9,4 +9,4 @@ 'use strict'; -module.exports = require('@react-native/js-polyfills'); +module.exports = require('@react-native/polyfills');