Skip to content

Commit

Permalink
feat: add metadataMap
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 28, 2024
1 parent 6ed52a7 commit db8209c
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 72 deletions.
6 changes: 6 additions & 0 deletions libs/zhi-blog-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-blog-api

## 1.54.0

### Minor Changes

- feat: add metadataMap

## 1.53.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-blog-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-blog-api",
"version": "1.53.2",
"version": "1.54.0",
"type": "module",
"description": "a common blog interface",
"main": "./dist/index.js",
Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-blog-api/src/lib/models/userBlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,18 @@ class UserBlog {
* xmlrpc地址
*/
xmlrpc?: string
/**
* 元数据映射,用于存储其他的元数据。可能不在上面的字段之内的
*
* 存储之后会字段映射到 BlogConfig 的字段里面去
*/
metadataMap: Record<string, any>

constructor() {
this.blogid = ""
this.url = ""
this.blogName = ""
this.metadataMap = {}
}
}

Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-siyuan-api

## 2.16.1

### Patch Changes

- Updated dependencies
- zhi-blog-api@1.54.0

## 2.16.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.16.0",
"version": "2.16.1",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@changesets/cli": "^2.27.1",
"@terwer/commit-config-custom": "workspace:*",
"@terwer/eslint-config-custom": "workspace:*",
"turbo": "^1.11.3"
"turbo": "^1.12.4"
}
}
Loading

0 comments on commit db8209c

Please sign in to comment.