@tscircuit/schematic-trace-solver 0.0.70 → 0.0.71

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/dist/index.js CHANGED
@@ -322,7 +322,7 @@ var arePinsInDifferentSchematicSections = (inputProblem, p1, p2) => {
322
322
  if (sectionByChipId.size === 0) return false;
323
323
  const s1 = getSectionNameForPin(sectionByChipId, sectionByPinId, p1);
324
324
  const s2 = getSectionNameForPin(sectionByChipId, sectionByPinId, p2);
325
- return !!s1 && !!s2 && s1 !== s2;
325
+ return s1 !== s2;
326
326
  };
327
327
 
328
328
  // lib/solvers/SchematicTracePipelineSolver/visualizeInputProblem.ts
@@ -32,8 +32,12 @@ export const arePinsInDifferentSchematicSections = (
32
32
 
33
33
  if (sectionByChipId.size === 0) return false
34
34
 
35
+ // Pins without an explicit section belong to an implicit "no-section"
36
+ // section. Traces must not cross between sections, so a sectioned pin and an
37
+ // unsectioned pin (or two differently-named sections) count as different.
38
+ // `undefined !== undefined` is false, so two unsectioned pins compare equal.
35
39
  const s1 = getSectionNameForPin(sectionByChipId, sectionByPinId, p1)
36
40
  const s2 = getSectionNameForPin(sectionByChipId, sectionByPinId, p2)
37
41
 
38
- return !!s1 && !!s2 && s1 !== s2
42
+ return s1 !== s2
39
43
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/schematic-trace-solver",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.70",
4
+ "version": "0.0.71",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",