@tscircuit/core 0.0.2178 → 0.0.2180

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 +5 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -110758,6 +110758,7 @@ var getSimpleRouteJsonFromCircuitJson = ({
110758
110758
  traces: preservedRoutedSubcircuitTraces.length > 0 ? preservedRoutedSubcircuitTraces : void 0,
110759
110759
  layerCount: board?.num_layers ?? 2,
110760
110760
  allowBlindAndBuriedVias: board?.allow_blind_and_buried_vias ?? false,
110761
+ allowViaInPad: board?.is_via_in_pad_allowed ?? false,
110761
110762
  minTraceWidth: Math.min(
110762
110763
  defaultTraceWidth,
110763
110764
  ...allConns.map((c2) => c2.width)
@@ -119559,7 +119560,7 @@ var RoutingPhasePreparationError = class extends Error {
119559
119560
  var package_default = {
119560
119561
  name: "@tscircuit/core",
119561
119562
  type: "module",
119562
- version: "0.0.2177",
119563
+ version: "0.0.2179",
119563
119564
  types: "dist/index.d.ts",
119564
119565
  main: "dist/index.js",
119565
119566
  module: "dist/index.js",
@@ -119597,7 +119598,7 @@ var package_default = {
119597
119598
  "@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
119598
119599
  "@tscircuit/cableprinter": "^0.0.6",
119599
119600
  "@tscircuit/capacity-autorouter": "^0.0.988",
119600
- "@tscircuit/checks": "^0.0.257",
119601
+ "@tscircuit/checks": "^0.0.258",
119601
119602
  "@tscircuit/circuit-json-util": "^0.0.123",
119602
119603
  "@tscircuit/common": "^0.0.20",
119603
119604
  "@tscircuit/copper-pour-solver": "^0.0.67",
@@ -121312,7 +121313,7 @@ var Group5 = class extends NormalComponent {
121312
121313
  subcircuit_id: this.subcircuit_id,
121313
121314
  subcircuitComponent: this
121314
121315
  });
121315
- simpleRouteJson.allowViaInPad = autorouterConfig.allowViaInPad;
121316
+ simpleRouteJson.allowViaInPad = autorouterConfig.allowViaInPad ?? simpleRouteJson.allowViaInPad;
121316
121317
  const { autorouting_result: autorouting_result2 } = await fetchWithDebug(
121317
121318
  `${serverUrl}/autorouting/solve`,
121318
121319
  {
@@ -121777,7 +121778,7 @@ var Group5 = class extends NormalComponent {
121777
121778
  simpleRouteJson,
121778
121779
  routingPhasePlan.drcTolerances
121779
121780
  );
121780
- simpleRouteJson.allowViaInPad = phaseAutorouterConfig.allowViaInPad;
121781
+ simpleRouteJson.allowViaInPad = phaseAutorouterConfig.allowViaInPad ?? simpleRouteJson.allowViaInPad;
121781
121782
  const getPrecomputedRoutingResult = usesPreviousStageOutput ? void 0 : routingPhasePlan.getPrecomputedRoutingResult;
121782
121783
  const preflightRoutingCheckPolicy = this.getInheritedProperty("preflightRoutingCheckPolicy") ?? "basic";
121783
121784
  if (routingPhasePlan.isImplicitRemainingPhase && phaseStageIndex === 0 && this.getInheritedProperty("routeRemaining") === void 0 && (preflightRoutingCheckPolicy === "basic" || preflightRoutingCheckPolicy === "conservative") && simpleRouteJson.connections.length > 50) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.2178",
4
+ "version": "0.0.2180",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@tscircuit/bus-lanes-solver": "https://jscdn.tscircuit.com/@tscircuit/bus-lanes-solver/0.0.21.tgz",
40
40
  "@tscircuit/cableprinter": "^0.0.6",
41
41
  "@tscircuit/capacity-autorouter": "^0.0.988",
42
- "@tscircuit/checks": "^0.0.257",
42
+ "@tscircuit/checks": "^0.0.258",
43
43
  "@tscircuit/circuit-json-util": "^0.0.123",
44
44
  "@tscircuit/common": "^0.0.20",
45
45
  "@tscircuit/copper-pour-solver": "^0.0.67",