fix: address Zigbee route review

Issue: #457
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-05 10:50:19 +03:00
parent 7cb1eee386
commit 896ceecf3a
30 changed files with 307 additions and 216 deletions
+11
View File
@@ -5837,6 +5837,17 @@ const MUTANT_DEFINITIONS = [
replace: ' try { void unsubscribe; } catch { /* cleanup is best effort */ }',
}],
},
{
id: 'zigbee-route-relationship-separators-normalized',
guard: 'node --test --test-name-pattern="Z2M relationship strings" test/zigbee-topology.test.mjs',
because: 'provider relationship strings must ignore separators before the parent tie-break '
+ 'uses them (#457 section 6.3 and code-review r1)',
patches: [{
file: 'src/zigbee-topology.ts',
find: " const compact = value.trim().toLowerCase().replace(/[\\s_-]+/g, '');",
replace: " const compact = value.trim().toLowerCase();",
}],
},
{
id: 'zigbee-route-parent-keeps-bfs-level',
guard: 'node --test --test-name-pattern="uplink tree is deterministic" test/zigbee-topology.test.mjs',