meta-json-schema 1.19.24 → 1.19.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
## v1.19.26
|
|
2
|
+
|
|
3
|
+
### Changes
|
|
4
|
+
|
|
5
|
+
- 新增: openvpn 配置项 `cipher` 新增 `AES-192-GCM`、`AES-128-CBC`、`AES-192-CBC`、`AES-256-CBC`、`CHACHA20-POLY1305` 支持
|
|
6
|
+
- 新增: openvpn 配置项 `auth` 新增 `MD5`、`SHA1`、`SHA384`、`SHA512` 支持
|
|
7
|
+
- 新增: openvpn 新增配置项 `comp-lzo`
|
|
8
|
+
- 新增: snell 新增 v4/5 相关配置项支持
|
|
9
|
+
- 新增: inbound 新增 snell `listeners` 配置项
|
|
10
|
+
- 新增: hysteria2 新增 Gecko混淆 配置项 `obfs-min-packet-size`、`obfs-max-packet-size`
|
|
11
|
+
- 新增: listener hysteria2 新增 Gecko混淆 配置项 `obfs-min-packet-size`、`obfs-max-packet-size`
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- 修复: 补充 snell 缺失 `udp` 配置项
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## v1.19.25
|
|
20
|
+
|
|
21
|
+
### Changes
|
|
22
|
+
|
|
23
|
+
- 移除: vless `xhttp` 下载配置移除未使用的配置项 `no-grpc-header`、`x-padding-bytes`、`x-padding-obfs-mode`、`x-padding-key`、`x-padding-header`、`x-padding-placement`、`x-padding-method`、`uplink-http-method`、`session-placement`、`session-key`、`seq-placement`、`seq-key`、`uplink-data-placement`、`uplink-data-key`、`uplink-chunk-size`、`sc-max-each-post-bytes`、`sc-min-posts-interval-ms`
|
|
24
|
+
- 新增: listener shadowsocks 新增配置项 `simple-obfs`
|
|
25
|
+
- 新增: hysteria2 新增配置项 `realm-opts`
|
|
26
|
+
- 新增: listener hysteria2 新增配置项 `realm-opts`
|
|
27
|
+
- 新增: inbound 新增 hysteria2-realm `listeners` 配置项
|
|
28
|
+
- 新增: proxy 新增 `openvpn`、`tailscale`、`gost-relay` 协议
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
- 修复: 补充 shadowsocks/trojan `alpn` 配置项的默认值
|
|
33
|
+
- 修复: `exclude-filter` 现有描述应为支持使用 `重音符` 分隔多个关键词或正则表达式
|
|
34
|
+
- 修复: 补充 shadowsocks `listeners` 缺失 `kcp-tun` 配置项
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
## v1.19.24
|
|
2
39
|
|
|
3
40
|
### Changes
|
package/README.md
CHANGED
|
@@ -8,27 +8,51 @@ VS Code 扩展商店搜索 `Meta JSON Schema` 或 `ClashMeta.meta-json-schema`
|
|
|
8
8
|
<summary>Visual Studio Code中使用</summary>
|
|
9
9
|
|
|
10
10
|
1. 安装YAML语法支持插件 `redhat.vscode-yaml` 。
|
|
11
|
-
2. 在 `.vscode` 目录下的 `settings.json` 文件中(如不存在则手动创建),填入以下内容。其中,key为schema文件的地址(url或本地文件),value为路径通配符,请根据需求自行修改。
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
2.1. 如果只针对单个文件,可在 YAML 文件首行添加 `modeline` 配置:
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
"yaml.schemas": {
|
|
18
|
-
"https://unpkg.com/meta-json-schema/schemas/meta-json-schema.json": "**/*.yaml"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
```
|
|
14
|
+
使用最新版本:
|
|
22
15
|
|
|
23
|
-
|
|
16
|
+
```yaml
|
|
17
|
+
# yaml-language-server: $schema=https://unpkg.com/meta-json-schema/schemas/meta-json-schema.json
|
|
18
|
+
mode: rule
|
|
19
|
+
```
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
使用指定版本:
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
# yaml-language-server: $schema=https://unpkg.com/meta-json-schema@1.19.25/schemas/meta-json-schema.json
|
|
25
|
+
mode: rule
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
2.2. 如需一次性为多个文件配置:
|
|
29
|
+
|
|
30
|
+
在 `.vscode` 目录下的 `settings.json` 文件中(如不存在则手动创建),填入以下内容。
|
|
31
|
+
|
|
32
|
+
其中:
|
|
33
|
+
|
|
34
|
+
- key为schema文件的地址(url或本地文件)
|
|
35
|
+
- value为路径通配符
|
|
36
|
+
|
|
37
|
+
使用最新版本:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"yaml.schemas": {
|
|
42
|
+
"https://unpkg.com/meta-json-schema/schemas/meta-json-schema.json": "**/*.yaml"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
使用指定版本:
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"yaml.schemas": {
|
|
52
|
+
"https://unpkg.com/meta-json-schema@1.19.25/schemas/meta-json-schema.json": "**/*.yaml"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
32
56
|
|
|
33
57
|
</details>
|
|
34
58
|
<details>
|
|
@@ -92,11 +116,11 @@ VS Code 扩展商店搜索 `Meta JSON Schema` 或 `ClashMeta.meta-json-schema`
|
|
|
92
116
|
|
|
93
117
|
## 👓 JSON Schema可视化
|
|
94
118
|
|
|
95
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
119
|
+
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://unpkg.com/meta-json-schema/schemas/meta-json-schema.json" target="_blank">meta-json-schema</a>
|
|
96
120
|
|
|
97
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
121
|
+
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://unpkg.com/meta-json-schema/schemas/clash-verge-merge-json-schema.json" target="_blank">clash-verge-merge-json-schema</a>
|
|
98
122
|
|
|
99
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
123
|
+
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://unpkg.com/meta-json-schema/schemas/clash-nyanpasu-merge-json-schema.json" target="_blank">clash-nyanpasu-merge-json-schema</a>
|
|
100
124
|
|
|
101
125
|
## 🖥️ 贡献代码
|
|
102
126
|
|
|
@@ -163,24 +187,27 @@ pnpm release
|
|
|
163
187
|
|
|
164
188
|
```typescript
|
|
165
189
|
interface JSONSchema {
|
|
166
|
-
// 自定义Snippet
|
|
190
|
+
// 自定义 Snippet 建议(数组)
|
|
167
191
|
defaultSnippets?: {
|
|
168
|
-
label
|
|
169
|
-
description?: string; //
|
|
170
|
-
markdownDescription?: string; //
|
|
171
|
-
body
|
|
172
|
-
bodyText?: string; //
|
|
192
|
+
label?: string; // 标签文本(显示在补全列表中)
|
|
193
|
+
description?: string; // 标签描述(需要点击展开)
|
|
194
|
+
markdownDescription?: string; // 标签描述(Markdown 格式,优先级高于 description)
|
|
195
|
+
body?: any; // 实际插入内容(对象,会被序列化为 JSON 字符串)
|
|
196
|
+
bodyText?: string; // 实际插入内容(纯文本形式,暂无实际作用)
|
|
173
197
|
}[];
|
|
174
|
-
errorMessage?: string; //
|
|
175
|
-
patternErrorMessage?: string; //
|
|
176
|
-
deprecationMessage?: string; //
|
|
177
|
-
enumDescriptions?: string[]; //
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
198
|
+
errorMessage?: string; // 校验失败时的自定义错误信息
|
|
199
|
+
patternErrorMessage?: string; // pattern 校验失败时的错误信息(优先级高于 errorMessage)
|
|
200
|
+
deprecationMessage?: string; // 属性已过时时的提示信息(显示删除线警告)
|
|
201
|
+
enumDescriptions?: string[]; // 枚举值的描述信息(与 enum 数组一一对应)
|
|
202
|
+
enumSortTexts?: string[]; // 枚举值在补全列表中的排序文本(与 enum 数组一一对应)
|
|
203
|
+
enumDetails?: string[]; // 枚举值的详细说明(与 enum 数组一一对应)
|
|
204
|
+
markdownEnumDescriptions?: string[]; // 枚举值的描述信息(Markdown 格式,优先级高于 enumDescriptions)
|
|
205
|
+
markdownDescription?: string; // 属性描述信息(Markdown 格式,优先级高于 description)
|
|
206
|
+
doNotSuggest?: boolean; // 为 true 时不在补全建议中显示该属性
|
|
207
|
+
suggestSortText?: string; // 属性在补全列表中的排序文本(默认为属性名)
|
|
208
|
+
allowComments?: boolean; // 允许 JSON 文件中包含注释(JSONC 模式)
|
|
209
|
+
allowTrailingCommas?: boolean; // 允许 JSON 文件中出现尾随逗号
|
|
210
|
+
completionDetail?: string; // 补全项的附加说明文本(显示在补全列表右侧)
|
|
184
211
|
}
|
|
185
212
|
```
|
|
186
213
|
|
|
@@ -190,8 +217,9 @@ interface JSONSchema {
|
|
|
190
217
|
|
|
191
218
|
### definitions目录下的 `compatible.json` 文件的用途是什么?
|
|
192
219
|
|
|
193
|
-
YAML支持 `Folded Style
|
|
194
|
-
|
|
220
|
+
与 JSON 严格的值格式不同,YAML 支持 `Folded Style`(折叠风格)与 `Inline Style`(内联风格),同时兼容 `Quoted`(带引号)与 `Unquoted`(不带引号)字符串写法。
|
|
221
|
+
|
|
222
|
+
例如,将某属性定义为 `"type": "boolean"` 时,若值为字符串 `'true'` 或 `'false'`,校验器将报错 `Incorrect type. Expected "boolean".`.。
|
|
195
223
|
|
|
196
224
|
因此引入compatible类型,以兼容多种编码风格。
|
|
197
225
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meta-json-schema",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.26",
|
|
4
4
|
"description": "JSON Schema for Clash Meta",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clash",
|
|
7
7
|
"clash.meta",
|
|
8
|
+
"mihomo",
|
|
8
9
|
"schema"
|
|
9
10
|
],
|
|
10
11
|
"files": [
|
|
@@ -20,7 +21,8 @@
|
|
|
20
21
|
},
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"repository": {
|
|
23
|
-
"
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/dongchengjie/meta-json-schema.git"
|
|
24
26
|
},
|
|
25
27
|
"scripts": {
|
|
26
28
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -30,11 +32,12 @@
|
|
|
30
32
|
"preview": "npm publish --dry-run"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@commitlint/
|
|
35
|
+
"@aminya/minijson": "^1.1.3",
|
|
36
|
+
"@commitlint/cli": "^21.0.2",
|
|
37
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
35
38
|
"dprint": "^0.54.0",
|
|
36
39
|
"json-schema-artifact": "^2.0.3",
|
|
37
|
-
"lefthook": "^2.1.
|
|
40
|
+
"lefthook": "^2.1.9"
|
|
38
41
|
},
|
|
39
42
|
"commitlint": {
|
|
40
43
|
"extends": [
|
|
@@ -42,8 +45,8 @@
|
|
|
42
45
|
]
|
|
43
46
|
},
|
|
44
47
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
46
|
-
"pnpm": ">=
|
|
48
|
+
"node": ">=22",
|
|
49
|
+
"pnpm": ">=10"
|
|
47
50
|
},
|
|
48
|
-
"packageManager": "pnpm@
|
|
51
|
+
"packageManager": "pnpm@10.33.4"
|
|
49
52
|
}
|