From 636a8355847cf5fc5b59703494cabe7250f16f14 Mon Sep 17 00:00:00 2001 From: aooiuu Date: Mon, 29 Jul 2024 20:36:04 +0800 Subject: [PATCH] chore: release v1.9.8 --- docs/package.json | 2 +- package.json | 2 +- packages/cli/package.json | 2 +- packages/core/package.json | 2 +- packages/epub/package.json | 2 +- packages/rubick/package.json | 2 +- packages/rule-utils/package.json | 2 +- packages/server/package.json | 2 +- packages/shared/package.json | 2 +- packages/shared/src/controller/ResourceHistory.ts | 1 - packages/shared/src/service/ChapterHistory.ts | 5 ++++- packages/shared/src/service/ResourceFavorites.ts | 1 + packages/shared/src/service/ResourceHistory.ts | 1 + packages/utools/package.json | 2 +- packages/vscode/package.json | 2 +- packages/web/package.json | 2 +- 16 files changed, 18 insertions(+), 14 deletions(-) diff --git a/docs/package.json b/docs/package.json index 3aebee53..652eed7f 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,7 +1,7 @@ { "name": "docs", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "private": true, "scripts": { "docs:dev": "vitepress dev", diff --git a/package.json b/package.json index b1c51059..cf19f138 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "any-reader", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "private": true, "packageManager": "pnpm@9.4.0", "description": "", diff --git a/packages/cli/package.json b/packages/cli/package.json index e8615b08..0efaa867 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/cli", "type": "commonjs", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3", diff --git a/packages/core/package.json b/packages/core/package.json index 558362d5..1993dab1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/core", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3", diff --git a/packages/epub/package.json b/packages/epub/package.json index d1df64c1..0f0b518b 100644 --- a/packages/epub/package.json +++ b/packages/epub/package.json @@ -1,6 +1,6 @@ { "name": "@any-reader/epub", - "version": "1.9.7", + "version": "1.9.8", "description": "", "scripts": { "build": "unbuild" diff --git a/packages/rubick/package.json b/packages/rubick/package.json index 75c652f5..112d6bdb 100644 --- a/packages/rubick/package.json +++ b/packages/rubick/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/rubick", "type": "commonjs", - "version": "1.9.7", + "version": "1.9.8", "private": true, "description": "", "author": "aooiuu ", diff --git a/packages/rule-utils/package.json b/packages/rule-utils/package.json index 8eebd945..58b7a8ae 100644 --- a/packages/rule-utils/package.json +++ b/packages/rule-utils/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/rule-utils", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3", diff --git a/packages/server/package.json b/packages/server/package.json index 73e672cf..b1c63dfe 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/server", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3", diff --git a/packages/shared/package.json b/packages/shared/package.json index 6ac486ab..29b99e69 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,7 +1,7 @@ { "name": "@any-reader/shared", "type": "module", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3", diff --git a/packages/shared/src/controller/ResourceHistory.ts b/packages/shared/src/controller/ResourceHistory.ts index 75e8601c..f40f870c 100644 --- a/packages/shared/src/controller/ResourceHistory.ts +++ b/packages/shared/src/controller/ResourceHistory.ts @@ -23,7 +23,6 @@ export class ResourceHistory extends BaseController { // 添加一个记录 @Post('add') async create(data: any) { - await this.del(data) return await this.db.getResourceHistory().create(data) } } diff --git a/packages/shared/src/service/ChapterHistory.ts b/packages/shared/src/service/ChapterHistory.ts index cbe96e9e..6b9cf3a3 100644 --- a/packages/shared/src/service/ChapterHistory.ts +++ b/packages/shared/src/service/ChapterHistory.ts @@ -16,7 +16,10 @@ export class ChapterHistoryService { chapterPath: data.chapterPath, }) if (!row) { - row = this.repository.create(data) + row = this.repository.create({ + ...data, + id: undefined, + }) row.createTime = Date.now() } row.updateTime = Date.now() diff --git a/packages/shared/src/service/ResourceFavorites.ts b/packages/shared/src/service/ResourceFavorites.ts index 27ffaec1..75c96756 100644 --- a/packages/shared/src/service/ResourceFavorites.ts +++ b/packages/shared/src/service/ResourceFavorites.ts @@ -32,6 +32,7 @@ export class ResourceFavoritesService { const now = Date.now() const entity = this.repository.create({ ...data, + id: undefined, createTime: now, updateTime: now, }) diff --git a/packages/shared/src/service/ResourceHistory.ts b/packages/shared/src/service/ResourceHistory.ts index 2f3afa2a..e71845ac 100644 --- a/packages/shared/src/service/ResourceHistory.ts +++ b/packages/shared/src/service/ResourceHistory.ts @@ -32,6 +32,7 @@ export class ResourceHistoryService { const now = Date.now() const entity = this.repository.create({ ...data, + id: undefined, createTime: now, updateTime: now, }) diff --git a/packages/utools/package.json b/packages/utools/package.json index efc4e808..b933f495 100644 --- a/packages/utools/package.json +++ b/packages/utools/package.json @@ -1,6 +1,6 @@ { "name": "@any-reader/utools", - "version": "1.9.7", + "version": "1.9.8", "private": true, "description": "", "author": "aooiuu ", diff --git a/packages/vscode/package.json b/packages/vscode/package.json index 57c2472f..6581e879 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -3,7 +3,7 @@ "displayName": "any-reader", "description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB", "icon": "resources/icon.png", - "version": "1.9.7", + "version": "1.9.8", "publisher": "aooiu", "private": true, "qna": "https://github.com/aooiuu/any-reader/issues", diff --git a/packages/web/package.json b/packages/web/package.json index 3498c103..b29c794c 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@any-reader/web", - "version": "1.9.7", + "version": "1.9.8", "description": "", "author": "aooiuu ", "license": "GPL3",