meta-json-schema 1.18.10 → 1.19.0
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,11 +1,21 @@
|
|
|
1
|
+
## v1.19.0
|
|
2
|
+
|
|
3
|
+
### Changes
|
|
4
|
+
|
|
5
|
+
- 新增: proxy-provider 新增 `size-limit` 配置项
|
|
6
|
+
- 新增: proxy 新增 `mieru` 协议
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
1
10
|
## v1.18.10
|
|
2
11
|
|
|
3
12
|
### Changes
|
|
4
13
|
|
|
14
|
+
- 新增: DNS 新增 `direct-nameserver`、`direct-nameserver-follow-policy` 配置项
|
|
15
|
+
|
|
5
16
|
### Bugs Fixes
|
|
6
17
|
|
|
7
18
|
- 修复: `skip-auth-prefixes`、`lan-allowed-ips`、`lan-disallowed-ips` 类型错误
|
|
8
|
-
- 新增: DNS 新增 `direct-nameserver`、`direct-nameserver-follow-policy` 配置项
|
|
9
19
|
|
|
10
20
|
---
|
|
11
21
|
|
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ VS Code 扩展商店搜索 `Meta JSON Schema` 或 `ClashMeta.meta-json-schema`
|
|
|
41
41
|
```javascript
|
|
42
42
|
import { defineConfig } from "vite";
|
|
43
43
|
import monacoEditor from "vite-plugin-monaco-editor";
|
|
44
|
+
|
|
44
45
|
export default defineConfig({
|
|
45
46
|
plugins: [
|
|
46
47
|
monacoEditor({
|
|
@@ -67,7 +68,7 @@ VS Code 扩展商店搜索 `Meta JSON Schema` 或 `ClashMeta.meta-json-schema`
|
|
|
67
68
|
enableSchemaRequest: true,
|
|
68
69
|
schemas: [
|
|
69
70
|
{
|
|
70
|
-
uri: "https://fastly.jsdelivr.net/gh/dongchengjie/
|
|
71
|
+
uri: "https://fastly.jsdelivr.net/gh/dongchengjie/meta-json-schema@main/schemas/meta-json-schema.json",
|
|
71
72
|
fileMatch: ["**/*.clash.yaml"]
|
|
72
73
|
}
|
|
73
74
|
]
|
|
@@ -104,13 +105,13 @@ code /path/to/project/location
|
|
|
104
105
|
3. 安装依赖
|
|
105
106
|
|
|
106
107
|
```bash
|
|
107
|
-
|
|
108
|
+
pnpm install
|
|
108
109
|
```
|
|
109
110
|
|
|
110
111
|
4. 启动项目。执行下列命令后,会对`src`目录进行监视,如果发生变动则会对项目进行bundle,输出到`schemas`目录下。
|
|
111
112
|
|
|
112
113
|
```bash
|
|
113
|
-
|
|
114
|
+
pnpm dev
|
|
114
115
|
```
|
|
115
116
|
|
|
116
117
|
5. 测试schema。由于`.vscode`目录下`settings.json`中已事先配置了如下配置(`test`目录下的文件使用`schemas`目录下输出的schema文件)。因此可以对`src`进行修改,并在`test`目录下新增测试文件,及时观察变动并做出修正。
|
|
@@ -126,7 +127,7 @@ npm run dev
|
|
|
126
127
|
6. 发布release。执行下列命令后,会根据`package.json`文件中定义的`releases`进行输出,并根据`optimization`决定是否进行压缩。
|
|
127
128
|
|
|
128
129
|
```bash
|
|
129
|
-
|
|
130
|
+
pnpm release
|
|
130
131
|
```
|
|
131
132
|
|
|
132
133
|
## 📚 语法参考
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meta-json-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "JSON Schema for Clash Meta",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clash",
|
|
7
7
|
"clash.meta",
|
|
8
8
|
"schema"
|
|
9
9
|
],
|
|
10
|
+
"files": [
|
|
11
|
+
"schemas",
|
|
12
|
+
"CHANGELOG.md"
|
|
13
|
+
],
|
|
10
14
|
"publishConfig": {
|
|
11
15
|
"registry": "https://registry.npmjs.org"
|
|
12
16
|
},
|
|
@@ -16,16 +20,31 @@
|
|
|
16
20
|
},
|
|
17
21
|
"license": "MIT",
|
|
18
22
|
"repository": {
|
|
19
|
-
"
|
|
20
|
-
"url": "https://github.com/dongchengjie/meta-json-schema"
|
|
23
|
+
"url": "git+https://github.com/dongchengjie/meta-json-schema.git"
|
|
21
24
|
},
|
|
22
25
|
"scripts": {
|
|
26
|
+
"preinstall": "npx only-allow pnpm",
|
|
27
|
+
"prepare": "lefthook install",
|
|
23
28
|
"dev": "npx json-schema-artifact --watch",
|
|
24
29
|
"release": "npx json-schema-artifact",
|
|
25
|
-
"preview": "
|
|
30
|
+
"preview": "pnpm publish --dry-run"
|
|
26
31
|
},
|
|
27
32
|
"devDependencies": {
|
|
28
|
-
"
|
|
33
|
+
"@commitlint/cli": "^19.6.0",
|
|
34
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
35
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
36
|
+
"json-schema-artifact": "^1.1.3",
|
|
37
|
+
"lefthook": "^1.9.0",
|
|
38
|
+
"prettier": "^3.4.2"
|
|
39
|
+
},
|
|
40
|
+
"commitlint": {
|
|
41
|
+
"extends": [
|
|
42
|
+
"@commitlint/config-conventional"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18",
|
|
47
|
+
"pnpm": ">=9"
|
|
29
48
|
},
|
|
30
|
-
"packageManager": "
|
|
49
|
+
"packageManager": "pnpm@9.15.0"
|
|
31
50
|
}
|