@black-duty/sing-box-schema 1.13.0-rc.4 → 1.13.13
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/README.md +12 -11
- package/dist/index.cjs +233 -224
- package/dist/index.d.cts +21930 -24986
- package/dist/index.d.ts +21930 -24986
- package/dist/index.js +232 -221
- package/package.json +2 -1
- package/schema.json +3103 -2697
- package/schema.zh.json +3106 -2700
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> Provides type-safe [**sing-box**](https://sing-box.sagernet.org/) configuration syntax support for code editors / TypeScript projects
|
|
6
6
|
|
|
7
|
-
[](https://github.com/SagerNet/sing-box/tree/v1.13.13) [](https://json-schema.org/draft/2020-12) [](<[https://](https://www.typescriptlang.org/)>) [](https://zod.dev)
|
|
8
8
|
|
|
9
9
|
**English** | [**中文**](/README_ZH.md)
|
|
10
10
|
|
|
@@ -20,10 +20,11 @@ This project's tags correspond to the `sing-box` project's versions. Switch to d
|
|
|
20
20
|
|
|
21
21
|
This project has the following branches, each adapted to different versions of `sing-box`:
|
|
22
22
|
|
|
23
|
-
- **main**: The main branch with the latest commits.
|
|
24
|
-
- **stable**: Adapts to the stable version of `sing-box` (currently v1.
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
23
|
+
- **main**: The main branch with the latest stable commits, currently v1.13.x.
|
|
24
|
+
- **stable**: Adapts to the stable version of `sing-box` (currently v1.13.x).
|
|
25
|
+
- **next**: Adapts to the next preview version of `sing-box` (no new preview version currently; mirrors stable v1.13.x).
|
|
26
|
+
- **legacy/v1.12**: Adapts to the final v1.12.x release of `sing-box`.
|
|
27
|
+
- **legacy/v1.11**: Adapts to older versions of `sing-box` (v1.11.x, e.g., older versions in the Play Store / App Store that cannot be updated).
|
|
27
28
|
|
|
28
29
|
Developers can switch between different branches to adapt to their progress. For regular users, it is recommended to use tags to locate specific versions.
|
|
29
30
|
|
|
@@ -35,7 +36,7 @@ You can use it in Visual Studio Code or other JSON Schema-supported editors. Ope
|
|
|
35
36
|
|
|
36
37
|
```json
|
|
37
38
|
{
|
|
38
|
-
"$schema": "https://unpkg.com/@black-duty/sing-box-schema@1.13.
|
|
39
|
+
"$schema": "https://unpkg.com/@black-duty/sing-box-schema@1.13.13/schema.json"
|
|
39
40
|
}
|
|
40
41
|
```
|
|
41
42
|
|
|
@@ -43,7 +44,7 @@ Or use the Chinese version:
|
|
|
43
44
|
|
|
44
45
|
```json
|
|
45
46
|
{
|
|
46
|
-
"$schema": "https://unpkg.com/@black-duty/sing-box-schema@1.13.
|
|
47
|
+
"$schema": "https://unpkg.com/@black-duty/sing-box-schema@1.13.13/schema.zh.json"
|
|
47
48
|
}
|
|
48
49
|
```
|
|
49
50
|
|
|
@@ -54,7 +55,7 @@ In addition to Unpkg's npm mirror, you can use:
|
|
|
54
55
|
|
|
55
56
|
```json
|
|
56
57
|
{
|
|
57
|
-
"$schema": "https://raw.githubusercontent.com/BlackDuty/sing-box-schema/refs/tags/v1.13.
|
|
58
|
+
"$schema": "https://raw.githubusercontent.com/BlackDuty/sing-box-schema/refs/tags/v1.13.13/schema.json"
|
|
58
59
|
}
|
|
59
60
|
```
|
|
60
61
|
|
|
@@ -62,7 +63,7 @@ Or use the Chinese version:
|
|
|
62
63
|
|
|
63
64
|
```json
|
|
64
65
|
{
|
|
65
|
-
"$schema": "https://raw.githubusercontent.com/BlackDuty/sing-box-schema/refs/tags/v1.13.
|
|
66
|
+
"$schema": "https://raw.githubusercontent.com/BlackDuty/sing-box-schema/refs/tags/v1.13.13/schema.zh.json"
|
|
66
67
|
}
|
|
67
68
|
```
|
|
68
69
|
|
|
@@ -72,7 +73,7 @@ Or use the Chinese version:
|
|
|
72
73
|
|
|
73
74
|
```json
|
|
74
75
|
{
|
|
75
|
-
"$schema": "https://github.com/BlackDuty/sing-box-schema/releases/download/v1.13.
|
|
76
|
+
"$schema": "https://github.com/BlackDuty/sing-box-schema/releases/download/v1.13.13/schema.json"
|
|
76
77
|
}
|
|
77
78
|
```
|
|
78
79
|
|
|
@@ -80,7 +81,7 @@ Or use the Chinese version:
|
|
|
80
81
|
|
|
81
82
|
```json
|
|
82
83
|
{
|
|
83
|
-
"$schema": "https://github.com/BlackDuty/sing-box-schema/releases/download/v1.13.
|
|
84
|
+
"$schema": "https://github.com/BlackDuty/sing-box-schema/releases/download/v1.13.13/schema.zh.json"
|
|
84
85
|
}
|
|
85
86
|
```
|
|
86
87
|
|