Skip to content

Commit 0aeb748

Browse files
committed
chore(release): v2.11.1 — prune stale custom proxy group member refs
1 parent 0df60d9 commit 0aeb748

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ The Fall Back selector's default member (what unmatched traffic uses until the u
155155
156156
## 🗒️ Changelog
157157
158+
### v2.11.1
159+
160+
- **Fix: custom proxy groups now drop member references whose target was removed.** A member pointing at a selected rule / custom rule set / Surge device / another custom group lingered as a stale chip after that target was deselected, renamed, or deleted. Output was already correct (the server drops unknown references at build time); this fixes the lingering UI state. The form now prunes invalid members when those sections change, matching Custom Rules / Custom RuleSets.
161+
158162
### v2.11.0
159163
160164
- **Custom proxy groups (自定义策略组).** New form section to define named policy groups with a chosen type (`select` / `url-test` / `fallback` / `load-balance`) and members selected from existing groups — Node Select (= all nodes), Auto Select, region / rule / rule-set groups, Surge (Ponte) devices, other custom groups — plus DIRECT/REJECT. Members are references only; "Node Select" covers "all nodes" so there is no node-name regex and no per-group test-URL config (parity with the built-in Auto Select). Groups are validated and emitted server-side and stay consistent across Clash / mihomo / sing-box / Surge: types with no native equivalent degrade to the closest auto type (sing-box `fallback`/`load-balance` → `urltest`; Surge `load-balance` → `url-test`). Custom groups are first-class outbound targets in Custom Rules, Custom RuleSets and the Fall Back selector. `DEVICE:` members are kept on Surge and dropped on Clash/sing-box (they have no Ponte). New `customProxyGroups` share-URL parameter, including short-code / "Load from Code" restore.

README.zh-Hans.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ Sing-Box · Clash · Xray/V2Ray · Surge
155155
156156
## 🗒️ 更新日志
157157
158+
### v2.11.1
159+
160+
- **修复:自定义策略组会清理失效的成员引用。** 当成员引用的「选中规则 / 自定义规则集 / Surge 设备 / 其它自定义组」被取消选中、改名或删除后,原本会残留一个失效标签(输出本就正确 —— 服务端在构建时会丢弃未知引用 —— 这里修的是残留的 UI 状态)。表单现在会在这些区块变化时清理失效成员,与「自定义规则 / 自定义规则集」行为一致。
161+
158162
### v2.11.0
159163
160164
- **自定义策略组。** 表单新增一个区块,可自定义命名策略组:选择类型(`select` / `url-test` / `fallback` / `load-balance`),成员从已有组里选 —— 节点选择(=全部节点)、自动选择、地区 / 规则 / 规则集组、Surge(Ponte)设备、其它自定义组 —— 以及 DIRECT/REJECT。成员只用「引用」:有「节点选择」即代表全部节点,所以不做节点名正则、也不暴露每组测试 URL 配置(与内置的自动选择保持一致)。服务端校验并产出,三端(Clash / mihomo / sing-box / Surge)一致;无原生支持的类型自动降级(sing-box 的 `fallback`/`load-balance` → `urltest`;Surge 的 `load-balance` → `url-test`)。自定义组是「自定义规则」「自定义规则集」「漏网之鱼」的一等出站目标。`DEVICE:` 设备成员在 Surge 保留、在 Clash/sing-box 丢弃(它们没有 Ponte)。分享链接新增 `customProxyGroups` 参数,并支持短码 /「Load from Code」恢复。

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sublink-worker",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Application constants
22
export const APP_NAME = 'Sublink Worker';
3-
export const APP_VERSION = '2.11.0';
3+
export const APP_VERSION = '2.11.1';
44
export const GITHUB_REPO = 'https://github.com/WayneWu98/sublink-worker';
55
export const GITHUB_API_RELEASES = 'https://api.github.com/repos/7Sageer/sublink-worker/releases/latest';
66
export const DOCS_URL = 'https://sublink.works';

0 commit comments

Comments
 (0)