Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add net module to utility process #40017

Merged
merged 30 commits into from Jan 4, 2024

docs: remove utility process limitation for resolveHost

d62c765
Select commit
Failed to load commit list.
Merged

feat: add net module to utility process #40017

docs: remove utility process limitation for resolveHost
d62c765
Select commit
Failed to load commit list.
Electron Archaeologist / Artifact Comparison completed Dec 20, 2023 in 48s

Changes Detected

Looks like the electron.d.ts file changed.

--- a/electron.old.d.ts
+++ b/electron.new.d.ts
@@ -9129,6 +9129,8 @@ declare namespace Electron {
      * protocol handlers will not be called for this request. This allows forwarding an
      * intercepted request to the built-in handler. webRequest handlers will still be
      * triggered when bypassing custom protocols.
+     *
+     * Note: in the utility process custom protocols are not supported.
      */
     fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
     /**
@@ -22481,6 +22483,10 @@ declare namespace Electron {
 
   namespace Utility {
     type Event<Params extends object = {}> = Electron.Event<Params>;
+    type ClientRequest = Electron.ClientRequest;
+    type IncomingMessage = Electron.IncomingMessage;
+    const net: Net;
+    type Net = Electron.Net;
     type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
     type AddRepresentationOptions = Electron.AddRepresentationOptions;
     type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
@@ -23119,7 +23125,6 @@ declare namespace Electron {
   const webFrame: WebFrame;
   const webFrameMain: typeof WebFrameMain;
   const webUtils: WebUtils;
-  const Utility: {};
 
 }