Skip to content

Commit 46fc5d2

Browse files
committed
chore: release v3.0.0
2 parents 596f015 + 5aeb1df commit 46fc5d2

40 files changed

Lines changed: 3322 additions & 3981 deletions

.oxlintrc.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@
66
"categories": { "correctness": "error" },
77
"ignorePatterns": ["node_modules", "**/*.js", "**/*.d.ts"],
88
"rules": {
9-
"perfectionist/sort-decorators": [
10-
"error",
11-
{
12-
"type": "alphabetical",
13-
"order": "asc",
14-
"groups": ["unknown", "httpCodes", "filters", "controllers", "nestJSMethods"],
15-
"customGroups": [
16-
{ "groupName": "httpCodes", "elementNamePattern": "^HttpCode$" },
17-
{ "groupName": "filters", "elementNamePattern": "^UseFilters$" },
18-
{ "groupName": "controllers", "elementNamePattern": "^Controller$" },
19-
{
20-
"groupName": "nestJSMethods",
21-
"elementNamePattern": "^(Post|Get|Put|Delete|Patch|Options|Head)$"
22-
}
23-
]
24-
}
25-
],
269
"no-console": "warn"
2710
}
2811
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
2+
"js/ts.tsdk.path": "./node_modules/typescript/lib"
3+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN npm run build \
1414

1515
FROM alpine:3.21 AS xray
1616

17-
ARG XRAY_CORE_VERSION=v26.6.27
17+
ARG XRAY_CORE_VERSION=v26.7.28
1818
ARG UPSTREAM_REPO=XTLS
1919
ARG XRAY_CORE_INSTALL_SCRIPT=https://raw.githubusercontent.com/remnawave/scripts/main/scripts/install-xray.sh
2020
ARG ASN_LMDB_URL=https://github.com/remnawave/asn-index/releases/latest/download/asn-prefixes-lmdb.tar.gz

libs/contract/commands/handler/add-user.command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export namespace AddUserCommand {
3535
tag: z.string(),
3636
username: z.string(),
3737
password: z.string(),
38-
cipherType: z.nativeEnum(CipherType),
38+
cipherType: z.enum(CipherType),
3939
ivCheck: z.boolean(),
4040
});
4141

@@ -64,8 +64,8 @@ export namespace AddUserCommand {
6464
]),
6565
),
6666
hashData: z.object({
67-
vlessUuid: z.string().uuid(),
68-
prevVlessUuid: z.optional(z.string().uuid()),
67+
vlessUuid: z.uuid(),
68+
prevVlessUuid: z.optional(z.uuid()),
6969
}),
7070
});
7171

libs/contract/commands/handler/add-users.command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export namespace AddUsersCommand {
4747

4848
userData: z.object({
4949
userId: z.string(),
50-
hashUuid: z.string().uuid(),
51-
vlessUuid: z.string().uuid(),
50+
hashUuid: z.uuid(),
51+
vlessUuid: z.uuid(),
5252
trojanPassword: z.string(),
5353
ssPassword: z.string(),
5454
}),

libs/contract/commands/handler/remove-user.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export namespace RemoveUserCommand {
88
export const RequestSchema = z.object({
99
username: z.string(),
1010
hashData: z.object({
11-
vlessUuid: z.string().uuid(),
11+
vlessUuid: z.uuid(),
1212
}),
1313
});
1414

libs/contract/commands/handler/remove-users.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export namespace RemoveUsersCommand {
99
users: z.array(
1010
z.object({
1111
userId: z.string(),
12-
hashUuid: z.string().uuid(),
12+
hashUuid: z.uuid(),
1313
}),
1414
),
1515
});

libs/contract/commands/plugin/nftables/block-ips.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export namespace BlockIpsCommand {
88
export const RequestSchema = z.object({
99
ips: z.array(
1010
z.object({
11-
ip: z.string().ip(),
11+
ip: z.union([z.ipv4(), z.ipv6()]),
1212
timeout: z.number(),
1313
}),
1414
),

libs/contract/commands/plugin/nftables/unblock-ips.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export namespace UnblockIpsCommand {
66
export const url = REST_API.PLUGIN.NFTABLES.UNBLOCK_IPS;
77

88
export const RequestSchema = z.object({
9-
ips: z.array(z.string().ip()),
9+
ips: z.array(z.union([z.ipv4(), z.ipv6()])),
1010
});
1111

1212
export type Request = z.infer<typeof RequestSchema>;

libs/contract/commands/plugin/sync.command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export namespace SyncCommand {
77
export const RequestSchema = z.object({
88
plugin: z
99
.object({
10-
config: z.record(z.unknown()),
11-
uuid: z.string().uuid(),
10+
config: z.record(z.string(), z.unknown()),
11+
uuid: z.uuid(),
1212
name: z.string(),
1313
})
1414
.nullable(),

0 commit comments

Comments
 (0)