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

Bumped electron to 13.6.1 #2318

Merged
merged 12 commits into from
Nov 11, 2021
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## Added
- [main] Bumped `electron` to v13.6.1 in PR [2318](https://github.com/microsoft/BotFramework-Emulator/pull/2318)

## v4.14.0 - 2021 - 7 - 15
## Added
Expand Down
5,057 changes: 3,125 additions & 1,932 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export const stepContent: string;
export const spacing: string;
export const marginFix: string;
export const botInspectorHeaderContainer: string;
export const flexRow: string;
export const flexColumn: string;
11 changes: 6 additions & 5 deletions packages/app/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
"concurrently": "^3.5.1",
"cross-env": "^5.1.3",
"del": "^3.0.0",
"electron": "11.0.1",
"electron-builder": "22.9.1",
"electron-rebuild": "2.3.4",
"electron": "13.6.1",
"electron-builder": "22.11.4",
"electron-rebuild": "3.2.3",
"eslint": "7.19.0",
"eslint-config-prettier": "^3.5.0",
"eslint-plugin-import": "2.20.0",
Expand Down Expand Up @@ -146,11 +146,12 @@
"https-proxy-agent": "2.2.3",
"jest-fetch-mock": "^1.6.2",
"jsonwebtoken": "^8.3.0",
"keytar": "7.3.0",
"keytar": "7.7.0",
"mkdirp": "^0.5.1",
"moment": "^2.22.1",
"node-fetch": "^2.3.0",
"node-uuid": "^1.4.8",
"npmlog": "^5.0.1",
"read-text-file": "^1.1.0",
"redux": "^3.7.2",
"redux-saga": "^0.16.0",
Expand All @@ -169,7 +170,7 @@
"productName": "Bot Framework Emulator",
"copyright": "Copyright © 2018 Microsoft Corporation",
"electronDownload": {
"version": "11.0.1"
"version": "13.6.1"
},
"protocols": [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/app/main/src/commands/electronCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ export class ElectronCommands {
// ---------------------------------------------------------------------------
// Moves an item to the trash
@Command(Commands.UnlinkFile)
protected unlinkFile(filePath: string): boolean {
return shell.moveItemToTrash(path.resolve(filePath));
protected async unlinkFile(filePath: string): Promise<void> {
return shell.trashItem(path.resolve(filePath));
}

// ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion packages/app/main/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class EmulatorApplication {
backgroundColor: '#f7f7f7',
width: 1400,
height: 920,
webPreferences: { enableRemoteModule: true, nodeIntegration: true, webviewTag: true },
webPreferences: { contextIsolation: false, enableRemoteModule: true, nodeIntegration: true, webviewTag: true },
});
this.initializeBrowserWindowListeners();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class AzureAuthWorkflowService {
alwaysOnTop: true,
width: 490,
height: 366,
webPreferences: { contextIsolation: true, nativeWindowOpen: true },
webPreferences: { nativeWindowOpen: true },
});

browserWindow.removeMenu();
Expand Down
2 changes: 1 addition & 1 deletion packages/app/main/src/windowManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export class WindowManager {
height: 600,
title: 'Sign In',
webPreferences: {
contextIsolation: false,
nodeIntegration: false,
},
});
this.add(win);
const webContents = win.webContents;

// webContents.openDevTools();
webContents.setZoomLevel(getSettings().windowState.zoomLevel);

win.on('closed', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ describe('resources actions', () => {
const action = openResourcesSettings(payload);

expect(action.type).toBe(OPEN_RESOURCE_SETTINGS);
expect(action.payload).toEqual(payload);
expect(action.payload).toEqual({ dialog: payload, resolver: undefined });
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export const checkMark: string;
export const checked: string;
export const indeterminate: string;
export const focused: string;
export const ariaLiveRegion: string;
tonyanziano marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// This is a generated file. Changes are likely to result in being overwritten
export const collapsibleJsonViewer: string;
export const ariaRegion: string;