diff --git a/CHANGELOG.md b/CHANGELOG.md index de62792..4a701d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## v4.0.19 +## v4.0.20 * 发布到 npm,现在可以通过 `npm i -g mtranserver` 安装或者 `npx mtranserver` 来运行服务器啦! * 修复语言检测的内存安全问题 @@ -10,9 +10,3 @@ * UI:新增记忆语言、主题等功能开关的功能 * UI:新增副标题文档地址按钮 * UI:修复历史记录没有滚动条的问题 - -## v4.0.13 - -* 改进 Docker 镜像构建支持,现在任何旧设备都能运行 Docker 版本啦! -* 无论新旧设备,使用 Docker 版本性能更佳!推荐使用 Docker 版本! -* Release 构建的可执行文件暂未跟进该功能,敬请期待! diff --git a/HISTORY.md b/HISTORY.md index f6319dc..35c4118 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,16 @@ +## v4.0.20 + +* 发布到 npm,现在可以通过 `npm i -g mtranserver` 安装或者 `npx mtranserver` 来运行服务器啦! +* 修复语言检测的内存安全问题 +* 修复混合语言检测的逻辑问题,现在能够正常翻译混合语言文本为目标语言了 +* 新增 `--download` 命令,支持通过命令行批量下载语言对模型 (例如 `mtranserver --download en_zh zh_en`) +* 新增 `--languages` 命令,列出所有可下载的语言对 +* UI:新增宽屏模式按钮 +* UI:新增多面板并排翻译的功能 +* UI:新增记忆语言、主题等功能开关的功能 +* UI:新增副标题文档地址按钮 +* UI:修复历史记录没有滚动条的问题 + ## v4.0.13 * 改进 Docker 镜像构建支持,现在任何旧设备都能运行 Docker 版本啦! diff --git a/package.json b/package.json index 37310fd..6ca5a20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mtranserver", - "version": "4.0.19", + "version": "4.0.20", "type": "module", "description": "Translation server", "main": "./dist/index.js", @@ -26,7 +26,8 @@ "typecheck": "tsc --noEmit", "lint": "echo 'No linter configured'", "gen": "tsoa spec-and-routes", - "bump": "bun scripts/bump.ts" + "bump": "bun scripts/bump.ts", + "publish": "npm publish --registry=https://registry.npmjs.com" }, "keywords": [ "translation", @@ -57,4 +58,4 @@ "engines": { "node": ">=18.0.0" } -} +} \ No newline at end of file diff --git a/src/version/index.ts b/src/version/index.ts index 3a0aaf9..a8e6038 100644 --- a/src/version/index.ts +++ b/src/version/index.ts @@ -1,4 +1,4 @@ -export const VERSION = '4.0.19'; +export const VERSION = '4.0.20'; export function getVersion(): string { return VERSION; diff --git a/tsoa.json b/tsoa.json index 84776e7..1afc782 100644 --- a/tsoa.json +++ b/tsoa.json @@ -11,7 +11,7 @@ "spec": { "info": { "title": "MTranServer API", - "version": "4.0.19", + "version": "4.0.20", "description": "Translation server API", "license": { "name": "Apache-2.0" diff --git a/ui/package.json b/ui/package.json index c3ce42e..82814eb 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,7 +1,7 @@ { "name": "ui", "private": true, - "version": "4.0.19", + "version": "4.0.20", "type": "module", "scripts": { "dev": "vite",