Skip to content

Commit

Permalink
Upgrade to electron v24.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed May 11, 2023
1 parent cbef7c0 commit 59a94d4
Show file tree
Hide file tree
Showing 7 changed files with 451 additions and 277 deletions.
2 changes: 2 additions & 0 deletions api.hxml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
--macro ElectronAPI.generate("electron-api.json","src",true,true)
-D eval-stack
#-D no-deprecation-warnings
-D message.log-format=pretty
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": "v24.2.0"
"electron": "v24.3.0"
}
}
664 changes: 396 additions & 268 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": "24.2.0",
"version": "24.3.0",
"contributors": [
"tong",
"fponticelli"
Expand Down
22 changes: 22 additions & 0 deletions src/electron/main/Net.hx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,28 @@ package electron.main;
A return value of `false` is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of `true` is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful.
**/
static function isOnline():Bool;
/**
Resolves with the resolved IP addresses for the `host`.
This method will resolve hosts from the default session. To resolve a host from another session, use ses.resolveHost().
**/
static function resolveHost(host:String, ?options:{ /**
Requested DNS query type. If unspecified, resolver will pick A or AAAA (or both) based on IPv4/IPv6 settings:
**/
@:optional
var queryType : String; /**
The source to use for resolved addresses. Default allows the resolver to pick an appropriate source. Only affects use of big external sources (e.g. calling the system for resolution or using DNS). Even if a source is specified, results can still come from cache, resolving "localhost" or IP literals, etc. One of the following values:
**/
@:optional
var source : String; /**
Indicates what DNS cache entries, if any, can be used to provide a response. One of the following values:
**/
@:optional
var cacheUsage : String; /**
Controls the resolver's Secure DNS behavior for this request. One of the following values:
**/
@:optional
var secureDnsPolicy : String; }):js.lib.Promise<Any>;
}
@:enum abstract NetEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) to js.node.events.EventEmitter.Event<T> {

Expand Down
22 changes: 22 additions & 0 deletions src/electron/remote/Net.hx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,28 @@ package electron.remote;
A return value of `false` is a pretty strong indicator that the user won't be able to connect to remote sites. However, a return value of `true` is inconclusive; even if some link is up, it is uncertain whether a particular connection attempt to a particular remote site will be successful.
**/
static function isOnline():Bool;
/**
Resolves with the resolved IP addresses for the `host`.
This method will resolve hosts from the default session. To resolve a host from another session, use ses.resolveHost().
**/
static function resolveHost(host:String, ?options:{ /**
Requested DNS query type. If unspecified, resolver will pick A or AAAA (or both) based on IPv4/IPv6 settings:
**/
@:optional
var queryType : String; /**
The source to use for resolved addresses. Default allows the resolver to pick an appropriate source. Only affects use of big external sources (e.g. calling the system for resolution or using DNS). Even if a source is specified, results can still come from cache, resolving "localhost" or IP literals, etc. One of the following values:
**/
@:optional
var source : String; /**
Indicates what DNS cache entries, if any, can be used to provide a response. One of the following values:
**/
@:optional
var cacheUsage : String; /**
Controls the resolver's Secure DNS behavior for this request. One of the following values:
**/
@:optional
var secureDnsPolicy : String; }):js.lib.Promise<Any>;
}
@:enum abstract NetEvent<T:(haxe.Constraints.Function)>(js.node.events.EventEmitter.Event<T>) to js.node.events.EventEmitter.Event<T> {

Expand Down

0 comments on commit 59a94d4

Please sign in to comment.