From 21a31cf6f5d715d1ce18fcd3f94bbc666932ea4e Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Fri, 14 Oct 2022 06:09:02 +0800 Subject: [PATCH] Upgrade electron from 20 > 21 (#2717) * ^ Update electron 20.x * ^ Update electron 21.x * * Update .babelrc about target --- .babelrc | 4 ++-- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.babelrc b/.babelrc index 105617bb..abf4798b 100644 --- a/.babelrc +++ b/.babelrc @@ -4,8 +4,8 @@ "@babel/env", { "targets": { - "chrome": "104", - "node": "16.15.0" + "chrome": "106", + "node": "16.16.0" } } ] diff --git a/package.json b/package.json index 66cbb937..d3b89834 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^4.1.0", - "electron": "^20.3.1", + "electron": "^21.1.1", "electron-builder": "^23.6.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", diff --git a/yarn.lock b/yarn.lock index 804fee5c..b619c3bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3499,10 +3499,10 @@ electron-to-chromium@^1.4.202: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.247.tgz#cc93859bc5fc521f611656e65ce17eae26a0fd3d" integrity sha512-FLs6R4FQE+1JHM0hh3sfdxnYjKvJpHZyhQDjc2qFq/xFvmmRt/TATNToZhrcGUFzpF2XjeiuozrA8lI0PZmYYw== -electron@^20.3.1: - version "20.3.1" - resolved "https://registry.yarnpkg.com/electron/-/electron-20.3.1.tgz#a9c95e086e28fd5936f24eb0dab8d1d22e3b86d0" - integrity sha512-mgFAa79Zj8oCegsluPAo6O1yXd7mVMZ0JZC2Rak9HQUAQ7x9xuQY7yop/+nMbi+bOMWwe5JrtOcvjotBArxioA== +electron@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/electron/-/electron-21.1.1.tgz#3ee427e31cccafbce45bebd32f2a8eba9e3399ca" + integrity sha512-EM2hvRJtiS3n54yx25Z0Qv54t3LGG+WjUHf1AOl+PKjQj+fmXnjIgVeIF9pM21kP1BTcyjrgvN6Sff0A45OB6A== dependencies: "@electron/get" "^1.14.1" "@types/node" "^16.11.26"