meta-json-schema 1.19.24 → 1.19.25
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,20 @@
|
|
|
1
|
+
## v1.19.25
|
|
2
|
+
|
|
3
|
+
### Changes
|
|
4
|
+
|
|
5
|
+
- 移除: 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`
|
|
6
|
+
- 新增: listener shadowsocks 新增配置项 `simple-obfs`
|
|
7
|
+
- 新增: hysteria2 新增配置项 `realm-opts`
|
|
8
|
+
- 新增: listener hysteria2 新增配置项 `realm-opts`
|
|
9
|
+
- 新增: inbound 新增 hysteria2-realm `listeners` 配置项
|
|
10
|
+
- 新增: proxy 新增 `openvpn`、`tailscale`、`gost-relay` 协议
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- 修复: 补充 shadowsocks/trojan `alpn` 配置项的默认值
|
|
15
|
+
- 修复: `exclude-filter` 现有描述描述应为支持使用 `重音符` 分隔多个关键词或正则表达式
|
|
16
|
+
- 修复: 补充 shadowsocks `listeners` 缺失 `kcp-tun` 配置项
|
|
17
|
+
|
|
1
18
|
## v1.19.24
|
|
2
19
|
|
|
3
20
|
### Changes
|
package/README.md
CHANGED
|
@@ -92,11 +92,11 @@ VS Code 扩展商店搜索 `Meta JSON Schema` 或 `ClashMeta.meta-json-schema`
|
|
|
92
92
|
|
|
93
93
|
## 👓 JSON Schema可视化
|
|
94
94
|
|
|
95
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
95
|
+
- <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
96
|
|
|
97
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
97
|
+
- <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
98
|
|
|
99
|
-
- <a href="https://dongchengjie.github.io/meta-json-schema/?schema=https://
|
|
99
|
+
- <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
100
|
|
|
101
101
|
## 🖥️ 贡献代码
|
|
102
102
|
|
|
@@ -163,24 +163,27 @@ pnpm release
|
|
|
163
163
|
|
|
164
164
|
```typescript
|
|
165
165
|
interface JSONSchema {
|
|
166
|
-
// 自定义Snippet
|
|
166
|
+
// 自定义 Snippet 建议(数组)
|
|
167
167
|
defaultSnippets?: {
|
|
168
|
-
label
|
|
169
|
-
description?: string; //
|
|
170
|
-
markdownDescription?: string; //
|
|
171
|
-
body
|
|
172
|
-
bodyText?: string; //
|
|
168
|
+
label?: string; // 标签文本(显示在补全列表中)
|
|
169
|
+
description?: string; // 标签描述(需要点击展开)
|
|
170
|
+
markdownDescription?: string; // 标签描述(Markdown 格式,优先级高于 description)
|
|
171
|
+
body?: any; // 实际插入内容(对象,会被序列化为 JSON 字符串)
|
|
172
|
+
bodyText?: string; // 实际插入内容(纯文本形式,暂无实际作用)
|
|
173
173
|
}[];
|
|
174
|
-
errorMessage?: string; //
|
|
175
|
-
patternErrorMessage?: string; //
|
|
176
|
-
deprecationMessage?: string; //
|
|
177
|
-
enumDescriptions?: string[]; //
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
174
|
+
errorMessage?: string; // 校验失败时的自定义错误信息
|
|
175
|
+
patternErrorMessage?: string; // pattern 校验失败时的错误信息(优先级高于 errorMessage)
|
|
176
|
+
deprecationMessage?: string; // 属性已过时时的提示信息(显示删除线警告)
|
|
177
|
+
enumDescriptions?: string[]; // 枚举值的描述信息(与 enum 数组一一对应)
|
|
178
|
+
enumSortTexts?: string[]; // 枚举值在补全列表中的排序文本(与 enum 数组一一对应)
|
|
179
|
+
enumDetails?: string[]; // 枚举值的详细说明(与 enum 数组一一对应)
|
|
180
|
+
markdownEnumDescriptions?: string[]; // 枚举值的描述信息(Markdown 格式,优先级高于 enumDescriptions)
|
|
181
|
+
markdownDescription?: string; // 属性描述信息(Markdown 格式,优先级高于 description)
|
|
182
|
+
doNotSuggest?: boolean; // 为 true 时不在补全建议中显示该属性
|
|
183
|
+
suggestSortText?: string; // 属性在补全列表中的排序文本(默认为属性名)
|
|
184
|
+
allowComments?: boolean; // 允许 JSON 文件中包含注释(JSONC 模式)
|
|
185
|
+
allowTrailingCommas?: boolean; // 允许 JSON 文件中出现尾随逗号
|
|
186
|
+
completionDetail?: string; // 补全项的附加说明文本(显示在补全列表右侧)
|
|
184
187
|
}
|
|
185
188
|
```
|
|
186
189
|
|
|
@@ -190,8 +193,9 @@ interface JSONSchema {
|
|
|
190
193
|
|
|
191
194
|
### definitions目录下的 `compatible.json` 文件的用途是什么?
|
|
192
195
|
|
|
193
|
-
YAML支持 `Folded Style
|
|
194
|
-
|
|
196
|
+
与 JSON 严格的值格式不同,YAML 支持 `Folded Style`(折叠风格)与 `Inline Style`(内联风格),同时兼容 `Quoted`(带引号)与 `Unquoted`(不带引号)字符串写法。
|
|
197
|
+
|
|
198
|
+
例如,将某属性定义为 `"type": "boolean"` 时,若值为字符串 `'true'` 或 `'false'`,校验器将报错 `Incorrect type. Expected "boolean".`.。
|
|
195
199
|
|
|
196
200
|
因此引入compatible类型,以兼容多种编码风格。
|
|
197
201
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meta-json-schema",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.25",
|
|
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.1",
|
|
37
|
+
"@commitlint/config-conventional": "^21.0.1",
|
|
35
38
|
"dprint": "^0.54.0",
|
|
36
39
|
"json-schema-artifact": "^2.0.3",
|
|
37
|
-
"lefthook": "^2.1.
|
|
40
|
+
"lefthook": "^2.1.6"
|
|
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
|
}
|