Skip to content

Commit

Permalink
chore: release v0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuoqiu-Yingyi committed Nov 28, 2023
1 parent f2fa83b commit 0179a50
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 62 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# 更改日志 | Change Log

## v0.3.5 / 2023-11-28

- [v0.3.4 ... v0.3.5](https://github.com/siyuan-community/siyuan-sdk/compare/v0.3.4...v0.3.5)
- 删除 API `/api/broadcast/channels` | Delete API `/api/broadcast/channels`
- 添加 API `/api/broadcast/getChannels` | Delete API `/api/broadcast/getChannels`
- 添加 API `/api/network/echo` | Delete API `/api/network/echo`
- 调整 API `/api/storage/getRecentDocs` 的 JSON Schema | Adjust the JSON Schema of API `/api/storage/getRecentDocs`

## v0.3.4 / 2023-11-15

- [v0.3.3 ... v0.3.4](https://github.com/siyuan-community/siyuan-sdk/compare/v0.3.3...v0.3.3)
- [v0.3.3 ... v0.3.4](https://github.com/siyuan-community/siyuan-sdk/compare/v0.3.3...v0.3.4)
- 添加 API `/api/storage/setLocalStorageVal` | Add API `/api/storage/setLocalStorageVal`
- 为 API `/api/file/getFile``blob` 响应结果添加 `content-type` | Add `content-type` to the `blob` response result of API `/api/file/getFile`
- [#1](https://github.com/siyuan-community/siyuan-sdk/issues/1) 添加 API `/api/filetree/getIDsByHPath` | Add API `/api/filetree/getIDsByHPath`
Expand Down
10 changes: 10 additions & 0 deletions node/cspell.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ module.exports = {
language: "en",
// words - list of words to be always considered correct
words: [
"ALPN",
"Alives",
"Alphanum",
"Fuction",
"IAPI",
"ITLS",
"IURL",
"OCSP",
"Proto",
"Punycode",
"Referer",
"backlink",
"blockquote",
"cobertura",
Expand All @@ -25,6 +33,7 @@ module.exports = {
"formdata",
"hpath",
"hpaths",
"idna",
"iframe",
"iife",
"instanceof",
Expand All @@ -38,6 +47,7 @@ module.exports = {
"quicktype",
"siyuan",
"succ",
"userinfo",
],
ignoreRegExpList: [
String.raw`\d{14}-[0-9a-z]{7}`,
Expand Down
8 changes: 4 additions & 4 deletions node/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@siyuan-community/siyuan-sdk",
"version": "0.3.4",
"packageManager": "pnpm@8.10.5",
"version": "0.3.5",
"packageManager": "pnpm@8.11.0",
"engines": {
"node": "21"
},
Expand Down Expand Up @@ -82,8 +82,8 @@
"@ltd/j-toml": "^1.38.0",
"@nodelib/fs.walk": "^1.2.8",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@vitest/coverage-istanbul": "^0.33.0",
"@vitest/ui": "^0.33.0",
"ajv": "^8.12.0",
Expand Down
96 changes: 48 additions & 48 deletions node/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions node/src/types/kernel/api/network/echo/response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,19 +297,19 @@ export interface IRequest {
/**
* {@link https://pkg.go.dev/net/http#Request.Trailer}
*
* Trailer specifies additional headers that are sent after the requestbody.
* Trailer specifies additional headers that are sent after the request body.
*
* For server requests, the Trailer map initially contains only the tailer keys, with nil
* values. (The client declares which trailers it will later send.) While the handler is
* reading from Body, it must not reference Trailer. After reading from Body returns EOF,
* Trailer can be read again and will contain non-nil values, if they were sent by the
* client.
*
* For client requests, Trailer must be initialized to a map containig the trailer keys to
* For client requests, Trailer must be initialized to a map containing the trailer keys to
* later send. The values may be nil or their final values. The ContentLength must be 0 or
* -1, to send a chunked request.
*
* After the HTTP request is sent the map values can be updated whilethe request body is
* After the HTTP request is sent the map values can be updated while the request body is
* read. Once the body returns EOF, the caller must not mutate Trailer.
*
* Few HTTP clients, servers, or proxies support HTTP trailers.
Expand Down
4 changes: 2 additions & 2 deletions schemas/kernel/api/network/echo/response.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
]
},
"Trailer": {
"description": "{@link https://pkg.go.dev/net/http#Request.Trailer}\n\nTrailer specifies additional headers that are sent after the requestbody.\n\nFor server requests, the Trailer map initially contains only the tailer keys, with nil values. (The client declares which trailers it will later send.) While the handler is reading from Body, it must not reference Trailer. After reading from Body returns EOF, Trailer can be read again and will contain non-nil values, if they were sent by the client.\n\nFor client requests, Trailer must be initialized to a map containig the trailer keys to later send. The values may be nil or their final values. The ContentLength must be 0 or -1, to send a chunked request.\n\nAfter the HTTP request is sent the map values can be updated whilethe request body is read. Once the body returns EOF, the caller must not mutate Trailer.\n\nFew HTTP clients, servers, or proxies support HTTP trailers.",
"description": "{@link https://pkg.go.dev/net/http#Request.Trailer}\n\nTrailer specifies additional headers that are sent after the request body.\n\nFor server requests, the Trailer map initially contains only the tailer keys, with nil values. (The client declares which trailers it will later send.) While the handler is reading from Body, it must not reference Trailer. After reading from Body returns EOF, Trailer can be read again and will contain non-nil values, if they were sent by the client.\n\nFor client requests, Trailer must be initialized to a map containing the trailer keys to later send. The values may be nil or their final values. The ContentLength must be 0 or -1, to send a chunked request.\n\nAfter the HTTP request is sent the map values can be updated while the request body is read. Once the body returns EOF, the caller must not mutate Trailer.\n\nFew HTTP clients, servers, or proxies support HTTP trailers.",
"oneOf": [
{
"$ref": "#/$defs/Header"
Expand Down Expand Up @@ -452,7 +452,7 @@
},
"Header": {
"title": "IHeader",
"description": "{@link https://pkg.go.dev/net/http#Request.Header}\n\nHeader contains the request header fields either received by the server or to be sent by the client.\n\nIf a server received a request with header lines,\n```http\nHost: example.com\naccept-encoding: gzip, deflate\nAccept-Language: en-us\nfOO: Bar\nfoo: two\n```\nthen\n```json\n{\n \"Accept-Encoding\": [\"gzip, deflate\"],\n \"Accept-Language\": [\"en-us\"],\n \"Foo\": [\"Bar\", \"two\"],\n}\n```For incoming requests, the Host header is promoted to the Request.Host field and removed from the Header map.\n\nHTTP defines that header names are case-insensitive. The request parser implements this by using CanonicalHeaderKey, making the first character and any characters following a hyphen uppercase and the rest lowercase.\n\nFor cliet requests, certain headers such as Content-Length and Connection are automatically written when needed and values in Header may be ignored. See the documentation for the Request.Write method.",
"description": "{@link https://pkg.go.dev/net/http#Request.Header}\n\nHeader contains the request header fields either received by the server or to be sent by the client.\n\nIf a server received a request with header lines,\n```http\nHost: example.com\naccept-encoding: gzip, deflate\nAccept-Language: en-us\nfOO: Bar\nfoo: two\n```\nthen\n```json\n{\n \"Accept-Encoding\": [\"gzip, deflate\"],\n \"Accept-Language\": [\"en-us\"],\n \"Foo\": [\"Bar\", \"two\"],\n}\n```For incoming requests, the Host header is promoted to the Request.Host field and removed from the Header map.\n\nHTTP defines that header names are case-insensitive. The request parser implements this by using CanonicalHeaderKey, making the first character and any characters following a hyphen uppercase and the rest lowercase.\n\nFor client requests, certain headers such as Content-Length and Connection are automatically written when needed and values in Header may be ignored. See the documentation for the Request.Write method.",
"type": "object",
"propertyNames": {
"type": "string"
Expand Down
Loading

0 comments on commit 0179a50

Please sign in to comment.