Skip to content

Align OSS Flow config with lib.dom.d.ts (#1989) (#58720) - #58720

Open
vzaidman wants to merge 1 commit into
mainfrom
export-D122152628
Open

vzaidman wants to merge 1 commit into
mainfrom
export-D122152628

Conversation

@vzaidman

@vzaidman vzaidman commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Internal and OSS Flow disagreed on DOM builtins, so suppressions removed in #1965 were unused in OSS but needed internally.

  • .flowconfig: builtin_lib=flowlib-with-lib-dom-d-ts
  • Delete copied DOM libdefs flow-typed/environment/{bom,dom,cssom,serviceworkers,streams}.js
  • flow-typed/environment/node.js: use globalThis.Blob; drop an unused suppression
  • Restore suppressions needed under lib.dom.d.ts Console (index-test.js, resolver-test.js, logToConsole.js) and drop ones now unused
  • HMRClient-test.js: mock WebSocket via jest.spyOn(global, 'WebSocket', 'get') instead of writing the readonly global

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D122152628

@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 Sep 28, 2026
@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Sep 28, 2026
@meta-codesync

meta-codesync Bot commented Sep 28, 2026

Copy link
Copy Markdown

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

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

meta-codesync Bot pushed a commit that referenced this pull request Sep 28, 2026
Summary:
Pull Request resolved: #58720

Internal and OSS Flow disagreed on DOM builtins, so suppressions removed in #1965 were unused in OSS but needed internally.

- .flowconfig: builtin_lib=flowlib-with-lib-dom-d-ts
- Delete copied DOM libdefs flow-typed/environment/{bom,dom,cssom,serviceworkers,streams}.js
- flow-typed/environment/node.js: use globalThis.Blob; drop an unused suppression
- Restore suppressions needed under lib.dom.d.ts Console (index-test.js, resolver-test.js, logToConsole.js) and drop ones now unused
- HMRClient-test.js: mock WebSocket via jest.spyOn(global, 'WebSocket', 'get') instead of writing the readonly global

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D122152628
@meta-codesync meta-codesync Bot changed the title Align OSS Flow config with lib.dom.d.ts (#1989) Align OSS Flow config with lib.dom.d.ts (#1989) (#58720) Sep 28, 2026
Summary:

Internal and OSS Flow disagreed on DOM builtins, so suppressions removed in #1965 were unused in OSS but needed internally.

- .flowconfig: builtin_lib=flowlib-with-lib-dom-d-ts
- Delete copied DOM libdefs flow-typed/environment/{bom,dom,cssom,serviceworkers,streams}.js
- flow-typed/environment/node.js: use globalThis.Blob; drop an unused suppression
- Restore suppressions needed under lib.dom.d.ts Console (index-test.js, resolver-test.js, logToConsole.js) and drop ones now unused
- HMRClient-test.js: mock WebSocket via jest.spyOn(global, 'WebSocket', 'get') instead of writing the readonly global

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D122152628

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants