An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bookmark: Release v2.1.10
Liang Ding560f34e5ae50
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex 49f7af9f24..96a46e7827 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -14,10 +14,10 @@ Install pnpm: `npm install -g pnpm`Set the Electron mirror environment variable and install Electron:-* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`+* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`* Windows:* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`- * `pnpm install [email protected] -D`+ * `pnpm install [email protected] -D`NPM mirror:@@ -28,7 +28,7 @@ NPM mirror:On the desktop, go to the app folder to run:-* `pnpm install [email protected] -D`+* `pnpm install [email protected] -D`* `pnpm run dev`* `pnpm run start`diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.mdindex 7cd75fbf59..8d16e0847b 100644--- a/.github/CONTRIBUTING_zh_CN.md+++ b/.github/CONTRIBUTING_zh_CN.md@@ -14,10 +14,10 @@设置 Electron 镜像环境变量并安装 Electron:-* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`+* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`* Windows:* `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`- * `pnpm install [email protected] -D`+ * `pnpm install [email protected] -D`NPM 镜像:@@ -27,7 +27,7 @@ NPM 镜像:桌面端进入 app 文件夹运行:-* `pnpm install [email protected] -D`+* `pnpm install [email protected] -D`* `pnpm run dev`* `pnpm run start`diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.ymlindex 2b80ba4052..0d67199316 100644--- a/.github/workflows/dockerimage.yml+++ b/.github/workflows/dockerimage.yml@@ -33,4 +33,4 @@ jobs:- name: Build the Docker imagerun: |- docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t b3log/siyuan:latest -t b3log/siyuan:v2.1.9 .\ No newline at end of file+ docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t b3log/siyuan:latest -t b3log/siyuan:v2.1.10 .\ No newline at end of filediff --git a/CHANGELOG.md b/CHANGELOG.mdindex 45fb46b30e..d412286a51 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,3 +1,31 @@+## v2.1.10 / 2022-08-28++### 改进功能++* [数学公式支持设置全局宏定义](https://github.com/siyuan-note/siyuan/issues/5682)+* [提供重建单个文档索引的 API](https://github.com/siyuan-note/siyuan/issues/5719)+* [支持导出系统日志](https://github.com/siyuan-note/siyuan/issues/5726)+* [同步向导优化,登录后根据条件进行下一步提示](https://github.com/siyuan-note/siyuan/issues/5727)+* [链接菜单中的转化为文本移动到删除上](https://github.com/siyuan-note/siyuan/issues/5731)+* [使用 HTML 块时建议使用 `<div>` 包裹 HTML 代码](https://github.com/siyuan-note/siyuan/issues/5732)+* [表格中的代码包含 `\|` 时复制纯文本应该剔除掉 `\`](https://github.com/siyuan-note/siyuan/issues/5733)+* [改进云端同步图标](https://github.com/siyuan-note/siyuan/issues/5734)+* [移动端实现状态栏提示](https://github.com/siyuan-note/siyuan/issues/5736)++### 开发重构++* [Android 端升级 SDK 为 32](https://github.com/siyuan-note/siyuan/issues/5737)+* [升级 Electron](https://github.com/siyuan-note/siyuan/issues/5738)++### 修复缺陷++* [macOS 端无法使用 ⌘V 粘贴图片](https://github.com/siyuan-note/siyuan/issues/5722)+* [复制粘贴带换行的文本拆分为多个块后解析不正确](https://github.com/siyuan-note/siyuan/issues/5723)+* [拖动有序列表项生产超级块后撤销不正确](https://github.com/siyuan-note/siyuan/issues/5725)+* [嵌入块中存在换行 SQL 语句时会被转换为段落文本](https://github.com/siyuan-note/siyuan/issues/5728)+* [第一次打开页签有光标,关闭后第二次打开无光标](https://github.com/siyuan-note/siyuan/issues/5729)+* [云端同步失败重试后导致旧数据覆盖新数据](https://github.com/siyuan-note/siyuan/issues/5730)+## v2.1.9 / 2022-08-24### 改进功能diff --git a/app/appx/AppxManifest.xml b/app/appx/AppxManifest.xmlindex fdc89639ac..f990985ba3 100644--- a/app/appx/AppxManifest.xml+++ b/app/appx/AppxManifest.xml@@ -9,7 +9,7 @@<Identity Name="89C2A984.SiYuan"ProcessorArchitecture="x64"Publisher='CN=087C656E-C1D9-42D8-8807-CED45A74FC0F'- Version="2.1.9.0"/>+ Version="2.1.10.0"/><Properties><DisplayName>SiYuan</DisplayName><PublisherDisplayName>云南链滴科技有限公司</PublisherDisplayName>diff --git a/app/package.json b/app/package.jsonindex 91ee935700..29896a90e0 100644--- a/app/package.json+++ b/app/package.json@@ -1,6 +1,6 @@{"name": "SiYuan",- "version": "2.1.9",+ "version": "2.1.10","description": "Build Your Eternal Digital Garden","homepage": "https://b3log.org/siyuan","main": "./electron/main.js",@@ -59,7 +59,7 @@"clean-webpack-plugin": "^4.0.0","css-loader": "^6.7.1","dayjs": "^1.11.3",- "electron": "20.0.3",+ "electron": "20.1.0","electron-builder": "^23.3.1","encoding": "^0.1.13","eslint": "^8.19.0",diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yamlindex 21f1e720c4..f4021ad228 100644--- a/app/pnpm-lock.yaml+++ b/app/pnpm-lock.yaml@@ -15,7 +15,7 @@ specifiers:clean-webpack-plugin: ^4.0.0css-loader: ^6.7.1dayjs: ^1.11.3- electron: 20.0.3+ electron: 20.1.0electron-builder: ^23.3.1electron-fetch: ^1.7.4encoding: ^0.1.13@@ -39,7 +39,7 @@ specifiers:webpack-cli: ^4.10.0dependencies:- '@electron/remote': [email protected]+ '@electron/remote': [email protected]electron-fetch: 1.7.4pnpm: 7.9.3@@ -57,7 +57,7 @@ devDependencies:clean-webpack-plugin: [email protected]css-loader: [email protected]dayjs: 1.11.3- electron: 20.0.3+ electron: 20.1.0electron-builder: 23.3.1encoding: 0.1.13eslint: 8.19.0@@ -1274,12 +1274,12 @@ packages:transitivePeerDependencies:- supports-color- /@electron/remote/[email protected]:+ /@electron/remote/[email protected]:resolution: {integrity: sha512-P10v3+iFCIvEPeYzTWWGwwHmqWnjoh8RYnbtZAb3RlQefy4guagzIwcWtfftABIfm6JJTNQf4WPSKWZOpLmHXw==}peerDependencies:electron: '>= 13.0.0'dependencies:- electron: 20.0.3+ electron: 20.1.0dev: false/@electron/universal/1.2.1:@@ -1906,10 +1906,10 @@ packages:resolution: {integrity: sha512-mi4DG3m32cMJ5CtO9iYk41gBvGWLzJjQsaQgGOd4ZhmIuKyj8M/0rT1g0s/0qD4Tw8jsa//NXMXCC7vpGIfkTg==}engines: {node: '>=14.0.0'}dependencies:+ 7zip-bin: 5.1.1'@develar/schema-utils': 2.6.5'@electron/universal': 1.2.1'@malept/flatpak-bundler': 0.4.0- 7zip-bin: 5.1.1async-exit-hook: 2.0.1bluebird-lst: 1.0.9builder-util: 23.3.0@@ -2193,9 +2193,9 @@ packages:/builder-util/23.3.0:resolution: {integrity: sha512-m7RRd21N2yrnuGFd+ZqOY0ryeqWmBslDKmGDVz0wETqoEEqpiJsF3CGlsb6MRN2EQKDubvE5e+lBf8ATt06fnA==}dependencies:+ 7zip-bin: 5.1.1'@types/debug': 4.1.7'@types/fs-extra': 9.0.13- 7zip-bin: 5.1.1app-builder-bin: 4.0.0bluebird-lst: 1.0.9builder-util-runtime: 9.0.3@@ -2815,8 +2815,8 @@ packages:resolution: {integrity: sha512-YoVeFrGd/7ROjz4R9uPoND1K/hSRC/xADy9639ZmIZeJSaBnKdYx3I6LMPsY7CXLpK7JFgKQVzeZ/dk2br6Eaw==}dev: true- /electron/20.0.3:- resolution: {integrity: sha512-Yx0a/SGgus/XqDAoMMs165JUikgE5vBmQpNJ+0XMDG/IYFj6TNNzfY2ATI+t171JjhKKO+MYPO8xqyZdFRoIDw==}+ /electron/20.1.0:+ resolution: {integrity: sha512-gzl6fdZe5g0qmzCC6Ejxa1Oa8eqUSxs4+QLtrM7SyEVp+mEPJAOoDe0xD8ayRQqeXTBxLK1LFrKtc4c98iufsg==}engines: {node: '>= 10.17.0'}hasBin: truerequiresBuild: truediff --git a/kernel/model/search.go b/kernel/model/search.goindex 179bec993b..4b30e2160d 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -331,8 +331,6 @@ func fullTextSearchCount(query, box, path, filter string) (matchedBlockCount, ma}func fullTextSearch(query, box, path, filter string, beforeLen int, querySyntax bool) (ret []*Block, matchedBlockCount, matchedRootCount int) {- fullTextSearchHistory(query, 1)-query = gulu.Str.RemoveInvisible(query)if util.IsIDPattern(query) {ret, matchedBlockCount, matchedRootCount = searchBySQL("SELECT * FROM `blocks` WHERE `id` = '"+query+"'", beforeLen)diff --git a/kernel/util/runtime.go b/kernel/util/runtime.goindex 3618235bd7..2b71bccfd7 100644--- a/kernel/util/runtime.go+++ b/kernel/util/runtime.go@@ -29,7 +29,7 @@ import ("github.com/siyuan-note/logging")-const DatabaseVer = "20220828" // 修改表结构的话需要修改这里+const DatabaseVer = "20220501" // 修改表结构的话需要修改这里const (ExitCodeReadOnlyDatabase = 20 // 数据库文件被锁diff --git a/kernel/util/working.go b/kernel/util/working.goindex 267fb1d701..c6260029aa 100644--- a/kernel/util/working.go+++ b/kernel/util/working.go@@ -40,7 +40,7 @@ import (var Mode = "prod"const (- Ver = "2.1.9"+ Ver = "2.1.10"IsInsider = false)