Skip to content

Commit

Permalink
Upgrade to electron v28.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Jan 26, 2024
1 parent 5c625b7 commit 5aabd54
Show file tree
Hide file tree
Showing 8 changed files with 358 additions and 288 deletions.
14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"start": "electron ."
},
"devDependencies": {
"electron": "v28.1.4"
"electron": "v28.2.0"
}
}
616 changes: 341 additions & 275 deletions electron-api.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"description": "Type definitions for the electron framework",
"releasenote": "See CHANGELOG",
"version": "28.1.4",
"version": "28.2.0",
"contributors": [
"tong",
"fponticelli"
Expand Down
2 changes: 1 addition & 1 deletion src/electron/main/ClientRequest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package electron.main;
/**
> Make HTTP/HTTPS requests.
Process: Main<br /> _This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._
Process: Main, Utility<br /> _This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._
`ClientRequest` implements the Writable Stream interface and is therefore an EventEmitter.
@see https://electronjs.org/docs/api/client-request
Expand Down
4 changes: 3 additions & 1 deletion src/electron/main/Net.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package electron.main;
/**
> Issue HTTP/HTTPS requests using Chromium's native networking library
Process: Main
Process: Main, Utility
The `net` module is a client-side API for issuing HTTP(S) requests. It is similar to the HTTP and HTTPS modules of Node.js but uses Chromium's native networking library instead of the Node.js implementation, offering better support for web proxies. It also supports checking network status.
Expand Down Expand Up @@ -68,6 +68,8 @@ package electron.main;
* The `.type` and `.url` values of the returned `Response` object are incorrect.
By default, requests made with `net.fetch` can be made to custom protocols as well as `file:`, and will trigger webRequest handlers if present. When the non-standard `bypassCustomProtocolHandlers` option is set in RequestInit, custom 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.
**/
static function fetch(input:haxe.extern.EitherType<String, GlobalRequest>, ?init:RequestInit):js.lib.Promise<Any>;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/remote/ClientRequest.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package electron.remote;
/**
> Make HTTP/HTTPS requests.
Process: Main<br /> _This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._
Process: Main, Utility<br /> _This class is not exported from the `'electron'` module. It is only available as a return value of other methods in the Electron API._
`ClientRequest` implements the Writable Stream interface and is therefore an EventEmitter.
@see https://electronjs.org/docs/api/client-request
Expand Down
4 changes: 3 additions & 1 deletion src/electron/remote/Net.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package electron.remote;
/**
> Issue HTTP/HTTPS requests using Chromium's native networking library
Process: Main
Process: Main, Utility
The `net` module is a client-side API for issuing HTTP(S) requests. It is similar to the HTTP and HTTPS modules of Node.js but uses Chromium's native networking library instead of the Node.js implementation, offering better support for web proxies. It also supports checking network status.
Expand Down Expand Up @@ -68,6 +68,8 @@ package electron.remote;
* The `.type` and `.url` values of the returned `Response` object are incorrect.
By default, requests made with `net.fetch` can be made to custom protocols as well as `file:`, and will trigger webRequest handlers if present. When the non-standard `bypassCustomProtocolHandlers` option is set in RequestInit, custom 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.
**/
static function fetch(input:haxe.extern.EitherType<String, GlobalRequest>, ?init:RequestInit):js.lib.Promise<Any>;
/**
Expand Down

0 comments on commit 5aabd54

Please sign in to comment.