Skip to content

Commit

Permalink
Upgrade to electron v28.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Dec 27, 2023
1 parent ddfee99 commit e4779ee
Show file tree
Hide file tree
Showing 9 changed files with 302 additions and 286 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.0.0"
"electron": "v28.1.0"
}
}
556 changes: 282 additions & 274 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.0.0",
"version": "28.1.0",
"contributors": [
"tong",
"fponticelli"
Expand Down
6 changes: 5 additions & 1 deletion src/electron/CustomScheme.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ typedef CustomScheme = {
Default false.
**/
@:optional
var stream : Bool; };
var stream : Bool; /**
Enable V8 code cache for the scheme, only works when `standard` is also set to true. Default false.
**/
@:optional
var codeCache : Bool; };
}
2 changes: 1 addition & 1 deletion src/electron/main/Protocol.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ package electron.main;
/**
**Note:** This method can only be used before the `ready` event of the `app` module gets emitted and can be called only once.
Registers the `scheme` as standard, secure, bypasses content security policy for resources, allows registering ServiceWorker, supports fetch API, and streaming video/audio. Specify a privilege with the value of `true` to enable the capability.
Registers the `scheme` as standard, secure, bypasses content security policy for resources, allows registering ServiceWorker, supports fetch API, streaming video/audio, and V8 code cache. Specify a privilege with the value of `true` to enable the capability.
An example of registering a privileged scheme, that bypasses Content Security Policy:
Expand Down
2 changes: 2 additions & 0 deletions src/electron/main/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ package electron.main;
function getPreloads():Array<String>;
/**
Sets the directory to store the generated JS code cache for this session. The directory is not required to be created by the user before this call, the runtime will create if it does not exist otherwise will use the existing directory. If directory cannot be created, then code cache will not be used and all operations related to code cache will fail silently inside the runtime. By default, the directory will be `Code Cache` under the respective user data folder.
Note that by default code cache is only enabled for http(s) URLs, to enable code cache for custom protocols, `codeCache: true` and `standard: true` must be specified when registering the protocol.
**/
function setCodeCachePath(path:String):Void;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/electron/remote/Protocol.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ package electron.remote;
/**
**Note:** This method can only be used before the `ready` event of the `app` module gets emitted and can be called only once.
Registers the `scheme` as standard, secure, bypasses content security policy for resources, allows registering ServiceWorker, supports fetch API, and streaming video/audio. Specify a privilege with the value of `true` to enable the capability.
Registers the `scheme` as standard, secure, bypasses content security policy for resources, allows registering ServiceWorker, supports fetch API, streaming video/audio, and V8 code cache. Specify a privilege with the value of `true` to enable the capability.
An example of registering a privileged scheme, that bypasses Content Security Policy:
Expand Down
2 changes: 2 additions & 0 deletions src/electron/remote/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ package electron.remote;
function getPreloads():Array<String>;
/**
Sets the directory to store the generated JS code cache for this session. The directory is not required to be created by the user before this call, the runtime will create if it does not exist otherwise will use the existing directory. If directory cannot be created, then code cache will not be used and all operations related to code cache will fail silently inside the runtime. By default, the directory will be `Code Cache` under the respective user data folder.
Note that by default code cache is only enabled for http(s) URLs, to enable code cache for custom protocols, `codeCache: true` and `standard: true` must be specified when registering the protocol.
**/
function setCodeCachePath(path:String):Void;
/**
Expand Down

0 comments on commit e4779ee

Please sign in to comment.