This is an automated email from the ASF dual-hosted git repository.

yasithdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airavata-portals.git


The following commit(s) were added to refs/heads/main by this push:
     new f292c1be6 build(local-agent): upgrade electron 29->39 (#147)
f292c1be6 is described below

commit f292c1be66e547c9928e1f01d68871fcf96de7b7
Author: Yasith Jayawardana <[email protected]>
AuthorDate: Mon Jun 8 13:31:26 2026 -0400

    build(local-agent): upgrade electron 29->39 (#147)
    
    Bump electron from ^29.3.0 to ^39.0.0 (resolves to 39.8.10). The
    postinstall electron-builder install-app-deps rebuilds native deps
    against the Electron 39 ABI.
    
    Migrate the two session.defaultSession.clearStorageData() calls in
    main/background.js from the removed callback overload to the
    promise-based API (then/catch); the callback form no longer exists in
    modern Electron.
---
 airavata-local-agent/main/background.js | 12 ++++++------
 airavata-local-agent/package-lock.json  | 27 +++++++++++++++------------
 airavata-local-agent/package.json       |  2 +-
 3 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/airavata-local-agent/main/background.js 
b/airavata-local-agent/main/background.js
index 67623d587..552a0fbad 100644
--- a/airavata-local-agent/main/background.js
+++ b/airavata-local-agent/main/background.js
@@ -127,9 +127,9 @@ if (!gotTheLock) {
 
     app.commandLine.appendSwitch('ignore-certificate-errors');
 
-    session.defaultSession.clearStorageData([], (data) => {
-      log.info("Cleared storage data", data);
-    });
+    session.defaultSession.clearStorageData()
+      .then(() => log.info("Cleared storage data"))
+      .catch((err) => log.error("Error clearing storage data", err));
 
     mainWindow.webContents.setWindowOpenHandler(({ url }) => {
       // open external URLs in browser, not in the app
@@ -194,9 +194,9 @@ ipcMain.on('open-default-browser', (event, url) => {
 
 ipcMain.on('ci-logon-logout', (event) => {
   log.warn('logging out');
-  session.defaultSession.clearStorageData([], (data) => {
-    log.info("Cleared storage data", data);
-  });
+  session.defaultSession.clearStorageData()
+    .then(() => log.info("Cleared storage data"))
+    .catch((err) => log.error("Error clearing storage data", err));
 });
 
 ipcMain.on('ci-logon-login', async (event) => {
diff --git a/airavata-local-agent/package-lock.json 
b/airavata-local-agent/package-lock.json
index 235ad7cd1..dc3df741c 100644
--- a/airavata-local-agent/package-lock.json
+++ b/airavata-local-agent/package-lock.json
@@ -34,7 +34,7 @@
       },
       "devDependencies": {
         "@electron/fuses": "^1.8.0",
-        "electron": "^29.3.0",
+        "electron": "^39.0.0",
         "electron-builder": "^26.0.0",
         "next": "^15.5.19",
         "nextron": "^9.6.0",
@@ -5712,11 +5712,12 @@
       "license": "MIT"
     },
     "node_modules/@types/node": {
-      "version": "20.12.12",
-      "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz";,
-      "integrity": 
"sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==",
+      "version": "22.19.20",
+      "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.20.tgz";,
+      "integrity": 
"sha512-6tELRwSDYWW9EdZhbeZmYGZ1/7Djkt+Ah3/ScEYT9cDord7UJzasR/4D3VONg9tQI5CDp+/CZC1AXj2pCFOvpw==",
+      "license": "MIT",
       "dependencies": {
-        "undici-types": "~5.26.4"
+        "undici-types": "~6.21.0"
       }
     },
     "node_modules/@types/node-forge": {
@@ -10135,14 +10136,15 @@
       }
     },
     "node_modules/electron": {
-      "version": "29.4.1",
-      "resolved": "https://registry.npmjs.org/electron/-/electron-29.4.1.tgz";,
-      "integrity": 
"sha512-YQvMAtdmjMF1yGfQFuO/KOmy+04SKot85NalppK/8zxKwOKrrK6dJBp+nJWteqBwRAKiasSrC1lDalF6hZct/w==",
+      "version": "39.8.10",
+      "resolved": "https://registry.npmjs.org/electron/-/electron-39.8.10.tgz";,
+      "integrity": 
"sha512-zbYtGPYUI7PzqLAzkk21Rk6j67WN0hxn0Mq/njErZo1d0HSf33is4f8ICI5fMLy5vYe0JtCtM5sYunNOaochSQ==",
       "dev": true,
       "hasInstallScript": true,
+      "license": "MIT",
       "dependencies": {
         "@electron/get": "^2.0.0",
-        "@types/node": "^20.9.0",
+        "@types/node": "^22.7.7",
         "extract-zip": "^2.0.1"
       },
       "bin": {
@@ -23149,9 +23151,10 @@
       }
     },
     "node_modules/undici-types": {
-      "version": "5.26.5",
-      "resolved": 
"https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz";,
-      "integrity": 
"sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
+      "version": "6.21.0",
+      "resolved": 
"https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz";,
+      "integrity": 
"sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+      "license": "MIT"
     },
     "node_modules/unicode-canonical-property-names-ecmascript": {
       "version": "2.0.1",
diff --git a/airavata-local-agent/package.json 
b/airavata-local-agent/package.json
index 2de2c025f..2d8031b46 100644
--- a/airavata-local-agent/package.json
+++ b/airavata-local-agent/package.json
@@ -42,7 +42,7 @@
   },
   "devDependencies": {
     "@electron/fuses": "^1.8.0",
-    "electron": "^29.3.0",
+    "electron": "^39.0.0",
     "electron-builder": "^26.0.0",
     "next": "^15.5.19",
     "nextron": "^9.6.0",

Reply via email to