Skip to content

Declare process.resourceUsage in the Node Flow environment (#60202) - #60202

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
christophpurrer:export-D133521486
Nov 22, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
christophpurrer:export-D133521486

Conversation

@christophpurrer

@christophpurrer christophpurrer commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

X-link: react/metro#2264

Node's process.resourceUsage() (stable since Node 12.6) is missing from the Process declaration, so Flow reports prop-missing for any caller. Declare it with its ResourceUsage record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 21, 2026
@meta-codesync

meta-codesync Bot commented Nov 21, 2026

Copy link
Copy Markdown

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D133521486.

@christophpurrer christophpurrer added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner meta-exported labels Nov 21, 2026
@meta-codesync meta-codesync Bot changed the title Declare process.resourceUsage in the Node Flow environment Declare process.resourceUsage in the Node Flow environment (#60202) Nov 21, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Nov 21, 2026
Summary:

X-link: react/metro#2264

Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486
meta-codesync Bot pushed a commit to react/metro that referenced this pull request Nov 21, 2026
Summary:
X-link: react/react-native#60202


Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486
Summary:

X-link: react/metro#2264

Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486
meta-codesync Bot pushed a commit to react/metro that referenced this pull request Nov 21, 2026
Summary:
X-link: react/react-native#60202


Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486
meta-codesync Bot pushed a commit to react/metro that referenced this pull request Nov 22, 2026
Summary:
X-link: react/react-native#60202


Node's `process.resourceUsage()` (stable since Node 12.6) is missing from the `Process` declaration, so Flow reports `prop-missing` for any caller. Declare it with its `ResourceUsage` record, matching upstream flow-typed.

Changelog: [Internal]

Differential Revision: D133521486

Pull Request resolved: #2264
@meta-codesync
meta-codesync Bot merged commit d6ea9fc into react:main Nov 22, 2026
69 of 70 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @christophpurrer in d6ea9fc

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants