Upgrade dependencies, including Electron 26.2.1.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-13 18:22:29 -07:00
parent 58049a91c4
commit a32119b55d
6 changed files with 1675 additions and 1272 deletions

View File

@@ -66,7 +66,7 @@ function getToolsSubmenu(): MenuItemConstructorOptions[] {
click() {
const zip = new AdmZip();
const date = new Date();
const dateString = date.toLocaleDateString().replace(/\//g, "-");
const dateString = date.toLocaleDateString().replaceAll("/", "-");
// Create a zip file of all the logs and config data
zip.addLocalFolder(`${app.getPath("appData")}/${appName}/Logs`);

View File

@@ -31,7 +31,7 @@ let idle = false;
// Indicates the time at which user was last active
let lastActive = Date.now();
export const bridgeEvents = new EventEmitter();
export const bridgeEvents = new EventEmitter(); // eslint-disable-line unicorn/prefer-event-target
/* eslint-disable @typescript-eslint/naming-convention */
const electron_bridge: ElectronBridge = {

2890
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -28,7 +28,7 @@
"lint-css": "stylelint \"app/**/*.css\"",
"lint-html": "htmlhint \"app/**/*.html\"",
"lint-js": "xo",
"prettier-non-js": "prettier --check --loglevel=warn . \"!**/*.{js,ts}\"",
"prettier-non-js": "prettier --check --log-level=warn . \"!**/*.{js,ts}\"",
"test": "tsc && npm run lint-html && npm run lint-css && npm run lint-js && npm run prettier-non-js",
"test-e2e": "vite build && tape \"tests/**/*.js\"",
"pack": "vite build && electron-builder --dir",
@@ -39,7 +39,6 @@
"test"
],
"build": {
"afterSign": "./scripts/notarize.js",
"appId": "org.zulip.zulip-electron",
"asar": true,
"asarUnpack": [
@@ -68,7 +67,10 @@
}
],
"darkModeSupport": true,
"artifactName": "${productName}-${version}-${arch}.${ext}"
"artifactName": "${productName}-${version}-${arch}.${ext}",
"notarize": {
"teamId": "66KHCWMEYB"
}
},
"linux": {
"category": "Chat;GNOME;GTK;Network;InstantMessaging",
@@ -144,7 +146,6 @@
"gatemaker": "^1.0.0"
},
"devDependencies": {
"@electron/notarize": "^1.2.3",
"@electron/remote": "^2.0.8",
"@sentry/electron": "^4.1.2",
"@types/adm-zip": "^0.5.0",
@@ -158,17 +159,16 @@
"adm-zip": "^0.5.5",
"auto-launch": "^5.0.5",
"backoff": "^2.5.0",
"dotenv": "^16.0.0",
"electron": "^24.2.0",
"electron-builder": "^23.0.3",
"electron": "^26.2.1",
"electron-builder": "^24.6.4",
"electron-log": "^4.3.5",
"electron-updater": "^5.0.1",
"electron-updater": "^6.1.4",
"electron-window-state": "^5.0.3",
"escape-goat": "^4.0.0",
"get-stream": "^6.0.1",
"get-stream": "^8.0.1",
"htmlhint": "^1.1.2",
"i18n": "^0.15.1",
"iso-639-1": "^2.1.9",
"iso-639-1": "^3.1.0",
"medium": "^1.2.0",
"node-json-db": "^1.3.0",
"playwright-core": "^1.30.0-alpha-jan-3-2023",
@@ -177,11 +177,11 @@
"rimraf": "^5.0.0",
"semver": "^7.3.5",
"stylelint": "^15.6.1",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard": "^34.0.0",
"tape": "^5.2.2",
"typescript": "^5.0.4",
"vite": "^4.1.1",
"vite-plugin-electron": "^0.11.1",
"vite-plugin-electron": "^0.14.1",
"xo": "^0.56.0",
"zod": "^3.5.1"
},

View File

@@ -1,25 +0,0 @@
"use strict";
const path = require("node:path");
const process = require("node:process");
const {notarize} = require("@electron/notarize");
const dotenv = require("dotenv");
dotenv.config({path: path.join(__dirname, "/../.env")});
exports.default = async function (context) {
const {electronPlatformName, appOutDir} = context;
if (electronPlatformName !== "darwin") {
return;
}
const appName = context.packager.appInfo.productFilename;
return notarize({
appBundleId: "org.zulip.zulip-electron",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASS,
ascProvider: process.env.ASC_PROVIDER, // Team short name
});
};

View File

@@ -3,7 +3,7 @@
"noEmit": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"resolveJsonModule": true,
"strict": true,