Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Upgrade to Electron v42.9.0 https://github.com/siyuan-note/siyuan/issues/18687

Daniel4cd585822a1c
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index d8018f5664..1545efd237 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -15,10 +15,10 @@ Install pnpm: `npm install -g [email protected]`
Set the Electron mirror environment variable and install Electron:
-* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
+* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
- * `pnpm install [email protected] -D`
+ * `pnpm install [email protected] -D`
NPM mirror:
@@ -28,7 +28,7 @@ NPM mirror:
Enter the app folder and execute:
-* `pnpm install [email protected] -D`
+* `pnpm install [email protected] -D`
* `pnpm run install:electron`
* `pnpm run dev`
* `pnpm run start`
diff --git a/.github/CONTRIBUTING.zh-CN.md b/.github/CONTRIBUTING.zh-CN.md
index 247a48588f..c5cd12872e 100644
--- a/.github/CONTRIBUTING.zh-CN.md
+++ b/.github/CONTRIBUTING.zh-CN.md
@@ -15,10 +15,10 @@
设置 Electron 镜像环境变量并安装 Electron:
-* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
+* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
- * `pnpm install [email protected] -D`
+ * `pnpm install [email protected] -D`
NPM 镜像:
@@ -28,7 +28,7 @@ NPM 镜像:
进入 app 文件夹执行:
-* `pnpm install [email protected] -D`
+* `pnpm install [email protected] -D`
* `pnpm run install:electron`
* `pnpm run dev`
* `pnpm run start`
diff --git a/app/package.json b/app/package.json
index 43568c387a..220b00d3d1 100644
--- a/app/package.json
+++ b/app/package.json
@@ -66,7 +66,7 @@
"cross-env": "^10.1.0",
"css-loader": "^7.1.2",
"dayjs": "^1.11.5",
- "electron": "42.7.1",
+ "electron": "42.9.0",
"electron-builder": "26.15.7",
"encoding": "^0.1.13",
"esbuild-loader": "^3.0.1",
diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml
index f49870f212..8995ed27a5 100644
--- a/app/pnpm-lock.yaml
+++ b/app/pnpm-lock.yaml
@@ -13,7 +13,7 @@ importers:
dependencies:
'@electron/remote':
specifier: ^2.1.3
- version: 2.1.3([email protected])
zxcvbn:
specifier: 4.4.2
version: 4.4.2
@@ -23,7 +23,7 @@ importers:
version: 1.2.7
'@eslint/eslintrc':
specifier: ^3.3.1
- version: 3.3.5
+ version: 3.3.5([email protected])
'@eslint/js':
specifier: ^9.24.0
version: 9.39.4
@@ -35,10 +35,10 @@ importers:
version: 4.4.5
'@typescript-eslint/eslint-plugin':
specifier: ^8.15.0
'@typescript-eslint/parser':
specifier: ^8.15.0
blueimp-md5:
specifier: ^2.19.0
version: 2.19.0
@@ -55,11 +55,11 @@ importers:
specifier: ^1.11.5
version: 1.11.20
electron:
- specifier: 42.7.1
- version: 42.7.1
+ specifier: 42.9.0
+ version: 42.9.0([email protected])
electron-builder:
specifier: 26.15.7
- version: 26.15.7([email protected])
encoding:
specifier: ^0.1.13
version: 0.1.13
@@ -68,7 +68,7 @@ importers:
version: 3.0.1([email protected])
eslint:
specifier: ^9.15.0
- version: 9.39.4([email protected])
file-loader:
specifier: ^6.2.0
version: 6.2.0([email protected])
@@ -119,7 +119,7 @@ importers:
version: 0.12.5
webpack:
specifier: ^5.104.1
webpack-bundle-analyzer:
specifier: ^4.5.0
version: 4.5.0
@@ -1494,8 +1494,8 @@ packages:
resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==}
engines: {node: '>=8.0.0'}
- resolution: {integrity: sha512-fmjFv4Ebbs/FNZg6a/IAu25lBb8vo/HBVa2vtE2GvYlgAC7/fu8dx1b2pL2wV1yWlfMI2q3Npe4eVYSFGirnwA==}
+ resolution: {integrity: sha512-xyKfPbHP43Jx22Z1hItLR4KB5h3/avb5BIX4xaQZ6uPPRY4cQxuHnRVrKCGbSsMa/9zd0bBT4TAVNVuVjYcYtw==}
engines: {node: '>= 22.12.0'}
hasBin: true
@@ -3027,32 +3027,32 @@ snapshots:
fs-extra: 9.0.1
minimist: 1.2.8
- '@electron/[email protected]':
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
env-paths: 3.0.0
got: 14.6.6
graceful-fs: 4.2.11
progress: 2.0.3
semver: 7.8.5
- sumchecker: 3.0.1
+ sumchecker: 3.0.1([email protected])
optionalDependencies:
global-agent: 3.0.0
transitivePeerDependencies:
- supports-color
- '@electron/[email protected]':
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 9.0.1
promise-retry: 2.0.1
transitivePeerDependencies:
- supports-color
- '@electron/[email protected]':
dependencies:
compare-version: 0.1.2
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 10.1.0
isbinaryfile: 4.0.10
minimist: 1.2.8
@@ -3060,26 +3060,26 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@electron/[email protected]':
dependencies:
'@malept/cross-spawn-promise': 2.0.0
- debug: 4.4.3
+ debug: 4.4.3([email protected])
node-abi: 4.31.0
node-api-version: 0.2.1
node-gyp: 12.4.0
- read-binary-file-arch: 1.0.6
+ read-binary-file-arch: 1.0.6([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- electron: 42.7.1
+ electron: 42.9.0([email protected])
- '@electron/[email protected]':
dependencies:
'@electron/asar': 3.4.1
'@malept/cross-spawn-promise': 2.0.0
- debug: 4.4.3
+ debug: 4.4.3([email protected])
dir-compare: 4.2.0
fs-extra: 11.3.5
minimatch: 9.0.9
@@ -3087,10 +3087,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@electron/[email protected]':
dependencies:
cross-dirname: 0.1.0
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 11.3.5
minimist: 1.2.8
postject: 1.0.0-alpha.6
@@ -3249,17 +3249,17 @@ snapshots:
'@esbuild/[email protected]':
optional: true
dependencies:
- eslint: 9.39.4([email protected])
eslint-visitor-keys: 3.4.3
'@eslint-community/[email protected]': {}
- '@eslint/[email protected]':
dependencies:
'@eslint/object-schema': 2.1.7
- debug: 4.4.3
+ debug: 4.4.3([email protected])
minimatch: 3.1.5
transitivePeerDependencies:
- supports-color
@@ -3272,10 +3272,10 @@ snapshots:
dependencies:
'@types/json-schema': 7.0.15
- '@eslint/[email protected]':
dependencies:
ajv: 6.15.0
- debug: 4.4.3
+ debug: 4.4.3([email protected])
espree: 10.0.1
globals: 14.0.0
ignore: 5.3.2
@@ -3455,9 +3455,9 @@ snapshots:
dependencies:
cross-spawn: 7.0.6
- '@malept/[email protected]':
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 9.0.1
lodash: 4.18.1
tmp-promise: 3.0.3
@@ -3609,15 +3609,15 @@ snapshots:
'@types/[email protected]': {}
dependencies:
'@eslint-community/regexpp': 4.12.2
- '@typescript-eslint/parser': 8.59.2([email protected]([email protected]))([email protected])
'@typescript-eslint/scope-manager': 8.59.2
- '@typescript-eslint/type-utils': 8.59.2([email protected]([email protected]))([email protected])
- '@typescript-eslint/utils': 8.59.2([email protected]([email protected]))([email protected])
'@typescript-eslint/visitor-keys': 8.59.2
- eslint: 9.39.4([email protected])
ignore: 7.0.5
natural-compare: 1.4.0
ts-api-utils: 2.5.0([email protected])
@@ -3625,23 +3625,23 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 8.59.2
'@typescript-eslint/types': 8.59.2
- '@typescript-eslint/typescript-estree': 8.59.2([email protected])
+ '@typescript-eslint/typescript-estree': 8.59.2([email protected])([email protected])
'@typescript-eslint/visitor-keys': 8.59.2
- debug: 4.4.3
- eslint: 9.39.4([email protected])
+ debug: 4.4.3([email protected])
typescript: 4.9.5
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/[email protected]([email protected])':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.59.2([email protected])
'@typescript-eslint/types': 8.59.2
- debug: 4.4.3
+ debug: 4.4.3([email protected])
typescript: 4.9.5
transitivePeerDependencies:
- supports-color
@@ -3655,13 +3655,13 @@ snapshots:
dependencies:
typescript: 4.9.5
dependencies:
'@typescript-eslint/types': 8.59.2
- '@typescript-eslint/typescript-estree': 8.59.2([email protected])
- '@typescript-eslint/utils': 8.59.2([email protected]([email protected]))([email protected])
- debug: 4.4.3
- eslint: 9.39.4([email protected])
+ '@typescript-eslint/typescript-estree': 8.59.2([email protected])([email protected])
+ debug: 4.4.3([email protected])
ts-api-utils: 2.5.0([email protected])
typescript: 4.9.5
transitivePeerDependencies:
@@ -3669,13 +3669,13 @@ snapshots:
'@typescript-eslint/[email protected]': {}
- '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/project-service': 8.59.2([email protected])
+ '@typescript-eslint/project-service': 8.59.2([email protected])([email protected])
'@typescript-eslint/tsconfig-utils': 8.59.2([email protected])
'@typescript-eslint/types': 8.59.2
'@typescript-eslint/visitor-keys': 8.59.2
- debug: 4.4.3
+ debug: 4.4.3([email protected])
minimatch: 10.2.5
semver: 7.8.0
tinyglobby: 0.2.16
@@ -3684,13 +3684,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.59.2
'@typescript-eslint/types': 8.59.2
- '@typescript-eslint/typescript-estree': 8.59.2([email protected])
- eslint: 9.39.4([email protected])
+ '@typescript-eslint/typescript-estree': 8.59.2([email protected])([email protected])
typescript: 4.9.5
transitivePeerDependencies:
- supports-color
@@ -3778,7 +3778,7 @@ snapshots:
dependencies:
webpack-cli: 4.10.0([email protected])([email protected])
@@ -3814,9 +3814,9 @@ snapshots:
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -3857,33 +3857,33 @@ snapshots:
dependencies:
'@electron/asar': 3.4.1
'@electron/fuses': 1.8.0
- '@electron/get': 4.0.3
- '@electron/notarize': 2.5.0
- '@electron/osx-sign': 1.3.3
- '@electron/rebuild': 4.0.4
- '@electron/universal': 2.0.3
- '@malept/flatpak-bundler': 0.4.0
+ '@electron/get': 4.0.3([email protected])
+ '@electron/notarize': 2.5.0([email protected])
+ '@electron/osx-sign': 1.3.3([email protected])
+ '@electron/rebuild': 4.0.4([email protected])
+ '@electron/universal': 2.0.3([email protected])
+ '@malept/flatpak-bundler': 0.4.0([email protected])
'@noble/hashes': 2.2.0
'@peculiar/webcrypto': 1.7.1
'@types/fs-extra': 9.0.13
ajv: 8.20.0
asn1js: 3.0.10
async-exit-hook: 2.0.1
- builder-util: 26.15.3
- builder-util-runtime: 9.7.0
+ builder-util: 26.15.3([email protected])
+ builder-util-runtime: 9.7.0([email protected])
chromium-pickle-js: 0.2.0
ci-info: 4.3.1
- debug: 4.4.3
- dmg-builder: 26.15.7([email protected])
+ debug: 4.4.3([email protected])
+ dmg-builder: 26.15.7([email protected])([email protected])
dotenv: 16.4.5
dotenv-expand: 11.0.6
ejs: 3.1.8
- electron-builder-squirrel-windows: 26.15.7([email protected])
- electron-publish: 26.15.3
+ electron-builder-squirrel-windows: 26.15.7([email protected])([email protected])
+ electron-publish: 26.15.3([email protected])
fs-extra: 10.1.0
hosted-git-info: 4.1.0
isbinaryfile: 5.0.7
@@ -3971,23 +3971,23 @@ snapshots:
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
sax: 1.6.0
transitivePeerDependencies:
- supports-color
dependencies:
'@types/debug': 4.1.13
- builder-util-runtime: 9.7.0
+ builder-util-runtime: 9.7.0([email protected])
chalk: 4.1.2
cross-spawn: 7.0.6
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 10.1.0
- http-proxy-agent: 7.0.0
- https-proxy-agent: 7.0.0
+ http-proxy-agent: 7.0.0([email protected])
+ https-proxy-agent: 7.0.0([email protected])
js-yaml: 4.2.0
sanitize-filename: 1.6.4
source-map-support: 0.5.21
@@ -4057,7 +4057,7 @@ snapshots:
dependencies:
del: 4.1.1
dependencies:
@@ -4129,7 +4129,7 @@ snapshots:
postcss-value-parser: 4.2.0
semver: 7.8.0
optionalDependencies:
dependencies:
@@ -4145,9 +4145,11 @@ snapshots:
dependencies:
ms: 2.1.3
+ optionalDependencies:
+ supports-color: 8.1.1
dependencies:
@@ -4191,10 +4193,10 @@ snapshots:
minimatch: 3.1.5
p-limit: 3.1.0
dependencies:
- app-builder-lib: 26.15.7([email protected])([email protected])
- builder-util: 26.15.3
+ builder-util: 26.15.3([email protected])
fs-extra: 10.1.0
js-yaml: 4.2.0
transitivePeerDependencies:
@@ -4270,23 +4272,23 @@ snapshots:
dependencies:
jake: 10.8.5
dependencies:
- app-builder-lib: 26.15.7([email protected])([email protected])
- builder-util: 26.15.3
- electron-winstaller: 5.4.0
+ builder-util: 26.15.3([email protected])
+ electron-winstaller: 5.4.0([email protected])
transitivePeerDependencies:
- dmg-builder
- supports-color
dependencies:
- app-builder-lib: 26.15.7([email protected])([email protected])
- builder-util: 26.15.3
- builder-util-runtime: 9.7.0
+ builder-util: 26.15.3([email protected])
+ builder-util-runtime: 9.7.0([email protected])
chalk: 4.1.2
ci-info: 4.4.0
- dmg-builder: 26.15.7([email protected])
+ dmg-builder: 26.15.7([email protected])([email protected])
fs-extra: 10.1.0
lazy-val: 1.0.5
simple-update-notifier: 2.0.0
@@ -4295,12 +4297,12 @@ snapshots:
- electron-builder-squirrel-windows
- supports-color
dependencies:
'@types/fs-extra': 9.0.13
aws4: 1.13.2
- builder-util: 26.15.3
- builder-util-runtime: 9.7.0
+ builder-util: 26.15.3([email protected])
+ builder-util-runtime: 9.7.0([email protected])
chalk: 4.1.2
form-data: 4.0.6
fs-extra: 10.1.0
@@ -4311,22 +4313,22 @@ snapshots:
dependencies:
'@electron/asar': 3.4.1
- debug: 4.4.3
+ debug: 4.4.3([email protected])
fs-extra: 7.0.1
lodash: 4.18.1
temp: 0.9.4
optionalDependencies:
- '@electron/windows-sign': 1.2.2
+ '@electron/windows-sign': 1.2.2([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
'@electron-internal/extract-zip': 1.0.3
- '@electron/get': 4.0.3
+ '@electron/get': 4.0.3([email protected])
'@types/node': 24.12.3
transitivePeerDependencies:
- supports-color
@@ -4381,7 +4383,7 @@ snapshots:
esbuild: 0.17.6
get-tsconfig: 4.14.0
loader-utils: 2.0.4
webpack-sources: 1.4.3
@@ -4460,14 +4462,14 @@ snapshots:
dependencies:
- '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected])([email protected]))
'@eslint-community/regexpp': 4.12.2
- '@eslint/config-array': 0.21.2
+ '@eslint/config-array': 0.21.2([email protected])
'@eslint/config-helpers': 0.4.2
'@eslint/core': 0.17.0
- '@eslint/eslintrc': 3.3.5
+ '@eslint/eslintrc': 3.3.5([email protected])
'@eslint/js': 9.39.4
'@eslint/plugin-kit': 0.4.1
'@humanfs/node': 0.16.8
@@ -4477,7 +4479,7 @@ snapshots:
ajv: 6.15.0
chalk: 4.1.2
cross-spawn: 7.0.6
- debug: 4.4.3
+ debug: 4.4.3([email protected])
escape-string-regexp: 4.0.0
eslint-scope: 8.4.0
eslint-visitor-keys: 4.2.1
@@ -4553,7 +4555,7 @@ snapshots:
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
@@ -4769,7 +4771,7 @@ snapshots:
dependencies:
html-minifier-terser: 5.1.1
parse5: 6.0.1
dependencies:
@@ -4799,7 +4801,7 @@ snapshots:
pretty-error: 4.0.0
tapable: 2.3.3
optionalDependencies:
dependencies:
@@ -4810,10 +4812,10 @@ snapshots:
dependencies:
- agent-base: 7.1.0
- debug: 4.4.3
+ agent-base: 7.1.0([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -4822,10 +4824,10 @@ snapshots:
quick-lru: 5.1.1
resolve-alpn: 1.2.1
dependencies:
- agent-base: 7.1.0
- debug: 4.4.3
+ agent-base: 7.1.0([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -5046,7 +5048,7 @@ snapshots:
dependencies:
schema-utils: 4.3.3
tapable: 2.3.3
dependencies:
@@ -5324,9 +5326,9 @@ snapshots:
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -5420,7 +5422,7 @@ snapshots:
neo-async: 2.6.2
optionalDependencies:
sass: 1.99.0
dependencies:
@@ -5570,9 +5572,9 @@ snapshots:
dependencies:
- debug: 4.4.3
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -5606,14 +5608,17 @@ snapshots:
mkdirp: 0.5.6
rimraf: 2.6.3
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.4.5
schema-utils: 4.3.3
terser: 5.47.1
optionalDependencies:
+ clean-css: 5.3.3
+ esbuild: 0.28.1
+ html-minifier-terser: 6.1.0
postcss: 8.5.14
@@ -5751,7 +5756,7 @@ snapshots:
import-local: 3.2.0
interpret: 2.2.0
rechoir: 0.7.1
webpack-merge: 5.10.0
optionalDependencies:
webpack-bundle-analyzer: 4.5.0
@@ -5769,7 +5774,7 @@ snapshots:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.9
@@ -5792,7 +5797,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.3
- terser-webpack-plugin: 5.6.0([email protected])([email protected])
watchpack: 2.5.1
webpack-sources: 3.4.1
optionalDependencies: