Skip to content

Commit

Permalink
chore: rename polyfills to js-polyfills (umbrella 480) (#34574)
Browse files Browse the repository at this point in the history
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: #34574

Reviewed By: cipolleschi

Differential Revision: D39268818

Pulled By: hoxyq

fbshipit-source-id: c87807460f27fc83667d18c350a4a847459f056e
  • Loading branch information
Titozzz authored and facebook-github-bot committed Nov 25, 2022
1 parent a672869 commit ca1ae5c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Libraries/vendor/core/ErrorUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @flow strict
*/

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

/**
* The particular require runtime that we are using looks for a global
Expand Down
4 changes: 2 additions & 2 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
const MockNativeMethods = jest.requireActual('./MockNativeMethods');
const mockComponent = jest.requireActual('./mockComponent');

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

global.__DEV__ = true;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/polyfills": "2.0.0",
"@react-native/js-polyfills": "^0.72.0",
"abort-controller": "^3.0.0",
"anser": "^1.4.9",
"base64-js": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/polyfills/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ yarn_workspace(

rn_library(
name = "polyfills",
base_path = relative_path_to_js_root() + "node_modules/@react-native/polyfills/",
base_path = relative_path_to_js_root() + "node_modules/@react-native/js-polyfills/",
is_polyfill = True,
labels = [
"pfh:ReactNative_CommonInfrastructurePlaceholder",
Expand Down
4 changes: 2 additions & 2 deletions packages/polyfills/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native/polyfills",
"version": "2.0.0",
"name": "@react-native/js-polyfills",
"version": "0.72.0",
"description": "Polyfills for React Native.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion rn-get-polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

'use strict';

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

0 comments on commit ca1ae5c

Please sign in to comment.