@tscircuit/core 0.0.1648 → 0.0.1650

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -23292,12 +23292,10 @@ var getSimpleRouteForPreservedTrace = (trace) => trace.route.map((routePoint) =>
23292
23292
  });
23293
23293
  var getPreservedRoutedSubcircuitTraces = ({
23294
23294
  scopedDb,
23295
- currentSubcircuitId,
23296
23295
  relevantSubcircuitIds
23297
23296
  }) => scopedDb.pcb_trace.list().filter((trace) => {
23298
23297
  if (!trace.subcircuit_id) return false;
23299
- if (!currentSubcircuitId) return true;
23300
- return trace.subcircuit_id !== currentSubcircuitId && relevantSubcircuitIds.has(trace.subcircuit_id);
23298
+ return relevantSubcircuitIds === null || relevantSubcircuitIds.has(trace.subcircuit_id);
23301
23299
  }).map((trace) => {
23302
23300
  const preservedTrace = trace;
23303
23301
  const connectionName = getPreservedTraceConnectionName(preservedTrace);
@@ -23525,7 +23523,6 @@ var getSimpleRouteJsonFromCircuitJson = ({
23525
23523
  );
23526
23524
  const preservedRoutedSubcircuitTraces = getPreservedRoutedSubcircuitTraces({
23527
23525
  scopedDb: db,
23528
- currentSubcircuitId: subcircuit_id,
23529
23526
  relevantSubcircuitIds
23530
23527
  });
23531
23528
  for (const obstacle of obstacles) {
@@ -31461,7 +31458,7 @@ function Group_getRoutingPhasePlans(group) {
31461
31458
  var package_default = {
31462
31459
  name: "@tscircuit/core",
31463
31460
  type: "module",
31464
- version: "0.0.1647",
31461
+ version: "0.0.1649",
31465
31462
  types: "dist/index.d.ts",
31466
31463
  main: "dist/index.js",
31467
31464
  module: "dist/index.js",
@@ -31496,7 +31493,7 @@ var package_default = {
31496
31493
  "@tscircuit/alphabet": "0.0.25",
31497
31494
  "@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
31498
31495
  "@tscircuit/capacity-autorouter": "^0.0.785",
31499
- "@tscircuit/checks": "0.0.152",
31496
+ "@tscircuit/checks": "0.0.153",
31500
31497
  "@tscircuit/circuit-json-util": "^0.0.106",
31501
31498
  "@tscircuit/common": "^0.0.20",
31502
31499
  "@tscircuit/copper-pour-solver": "0.0.44",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1648",
4
+ "version": "0.0.1650",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "@tscircuit/alphabet": "0.0.25",
37
37
  "@tscircuit/breakout-point-solver": "github:tscircuit/breakout-point-solver#bac9629",
38
38
  "@tscircuit/capacity-autorouter": "^0.0.785",
39
- "@tscircuit/checks": "0.0.152",
39
+ "@tscircuit/checks": "0.0.153",
40
40
  "@tscircuit/circuit-json-util": "^0.0.106",
41
41
  "@tscircuit/common": "^0.0.20",
42
42
  "@tscircuit/copper-pour-solver": "0.0.44",