Skip to content

Commit

Permalink
update to Electron 4.0.0 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Dec 21, 2018
1 parent d141055 commit c6b2329
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .yarnrc
@@ -1,3 +1,3 @@
disturl "https://atom.io/download/electron"
target "4.0.0-beta.9"
target "4.0.0"
runtime "electron"
4 changes: 2 additions & 2 deletions cgmanifest.json
Expand Up @@ -60,12 +60,12 @@
"git": {
"name": "electron",
"repositoryUrl": "https://github.com/electron/electron",
"commitHash": "e8d4a07137e0c93d4507c18cf2a5386831713b34"
"commitHash": "005264ca1f92f920ff09c91c10a3d612ac94f1d7"
}
},
"isOnlyProductionDependency": true,
"license": "MIT",
"version": "4.0.0-beta.9"
"version": "4.0.0"
},
{
"component": {
Expand Down
21 changes: 18 additions & 3 deletions src/typings/electron.d.ts
@@ -1,4 +1,4 @@
// Type definitions for Electron 4.0.0-beta.8
// Type definitions for Electron 4.0.0
// Project: http://electronjs.org/
// Definitions by: The Electron Team <https://github.com/electron/electron>
// Definitions: https://github.com/electron/electron-typescript-definitions
Expand Down Expand Up @@ -4424,6 +4424,17 @@ declare namespace Electron {
* used, `false` otherwise.
*/
invertedColorScheme: boolean) => void): this;
/**
* Important: In order to properly leverage this API, you must set the
* NSMicrophoneUsageDescription and NSCameraUsageDescription strings in your app's
* Info.plist file. The values for these keys will be used to populate the
* permission dialogs so that the user will be properly informed as to the purpose
* of the permission request. See Electron Application Distribution for more
* information about how to set these in the context of Electron. This user consent
* was not required until macOS 10.14 Mojave, so this method will always return
* true if your system is running 10.13 High Sierra or lower.
*/
askForMediaAccess(mediaType: 'microphone' | 'camera'): Promise<Boolean>;
getAccentColor(): string;
/**
* Gets the macOS appearance setting that you have declared you want for your
Expand All @@ -4443,6 +4454,11 @@ declare namespace Electron {
* packager option to true. See the Electron Packager API for more details.
*/
getEffectiveAppearance(): ('dark' | 'light' | 'unknown');
/**
* This user consent was not required until macOS 10.14 Mojave, so this method will
* always return granted if your system is running 10.13 High Sierra or lower.
*/
getMediaAccessStatus(mediaType: string): ('not-determined' | 'granted' | 'denied' | 'restricted' | 'unknown');
/**
* Some popular key and types are:
*/
Expand Down Expand Up @@ -9420,8 +9436,7 @@ declare namespace Electron {
* content to ensure the loaded content cannot tamper with the preload script and
* any Electron APIs being used. This option uses the same technique used by . You
* can access this context in the dev tools by selecting the 'Electron Isolated
* Context' entry in the combo box at the top of the Console tab. This option is
* currently experimental and may change or be removed in future Electron releases.
* Context' entry in the combo box at the top of the Console tab.
*/
contextIsolation?: boolean;
/**
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/package.json
Expand Up @@ -22,7 +22,7 @@
"@types/webdriverio": "4.6.1",
"concurrently": "^3.5.1",
"cpx": "^1.5.0",
"electron": "4.0.0-beta.9",
"electron": "4.0.0",
"htmlparser2": "^3.9.2",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",
Expand Down
8 changes: 4 additions & 4 deletions test/smoke/yarn.lock
Expand Up @@ -596,10 +596,10 @@ electron-download@^4.1.0:
semver "^5.4.1"
sumchecker "^2.0.2"

electron@4.0.0-beta.9:
version "4.0.0-beta.9"
resolved "https://registry.yarnpkg.com/electron/-/electron-4.0.0-beta.9.tgz#18034e48e4e30fb49920974416edd77f6ba6a558"
integrity sha512-BPFkN4BFQy88x2ZHVmzI03i1mUgaQF/uROPb/TlGB/WNAD3v2OvA9Ak9yZ5ADNnwhlR28DtUGs/MuZfDZHZBoQ==
electron@4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-4.0.0.tgz#6ccb40cc8bf2d49954dcea73b97ae7ad12ee04b3"
integrity sha512-3XPG/3IXlvnT1oe1K6zEushoD0SKbP8xwdrL10EWGe6k2iOV4hSHqJ8vWnR8yZ7VbSXmBRfomEFDNAo/q/cwKw==
dependencies:
"@types/node" "^8.0.24"
electron-download "^4.1.0"
Expand Down

0 comments on commit c6b2329

Please sign in to comment.