@tscircuit/core 0.0.2129 → 0.0.2131

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 +12 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -118378,7 +118378,7 @@ var RoutingPhasePreparationError = class extends Error {
118378
118378
  var package_default = {
118379
118379
  name: "@tscircuit/core",
118380
118380
  type: "module",
118381
- version: "0.0.2128",
118381
+ version: "0.0.2130",
118382
118382
  types: "dist/index.d.ts",
118383
118383
  main: "dist/index.js",
118384
118384
  module: "dist/index.js",
@@ -118417,7 +118417,7 @@ var package_default = {
118417
118417
  "@tscircuit/cableprinter": "^0.0.6",
118418
118418
  "@tscircuit/capacity-autorouter": "^0.0.965",
118419
118419
  "@tscircuit/checks": "^0.0.247",
118420
- "@tscircuit/circuit-json-util": "^0.0.119",
118420
+ "@tscircuit/circuit-json-util": "^0.0.121",
118421
118421
  "@tscircuit/common": "^0.0.20",
118422
118422
  "@tscircuit/copper-pour-solver": "^0.0.67",
118423
118423
  "@tscircuit/create-fdm-enclosure": "0.0.4",
@@ -118520,7 +118520,7 @@ var package_default = {
118520
118520
  "jscad-fiber": "^0.0.88"
118521
118521
  },
118522
118522
  overrides: {
118523
- "@tscircuit/circuit-json-util": "^0.0.119",
118523
+ "@tscircuit/circuit-json-util": "^0.0.121",
118524
118524
  "@tscircuit/props": "^0.0.698",
118525
118525
  "circuit-json": "^0.0.525",
118526
118526
  "@tscircuit/cableprinter": "^0.0.6"
@@ -120796,6 +120796,15 @@ var Group5 = class extends NormalComponent {
120796
120796
  traces = await routingPromise;
120797
120797
  }
120798
120798
  let transformedSimpleRouteJson = precomputedOutputSimpleRouteJson ?? autorouter?.getOutputSimpleRouteJson?.();
120799
+ if (localAutorouterStrategy.preserveOutputTraces && transformedSimpleRouteJson?.traces) {
120800
+ transformedSimpleRouteJson = {
120801
+ ...transformedSimpleRouteJson,
120802
+ traces: getAccumulatedPcbTracesWithStageOutputReplacements({
120803
+ accumulatedPcbTraces: simpleRouteJson.traces ?? [],
120804
+ stageOutputPcbTraces: transformedSimpleRouteJson.traces
120805
+ })
120806
+ };
120807
+ }
120799
120808
  if (transformedSimpleRouteJson && !usesPreviousStageOutput && ["fanout", "single_layer_fanout", "dogbone"].includes(
120800
120809
  phaseAutorouterConfig.preset ?? ""
120801
120810
  ) && routingPhasePlan.routingPcbGroupId) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.2129",
4
+ "version": "0.0.2131",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@tscircuit/cableprinter": "^0.0.6",
41
41
  "@tscircuit/capacity-autorouter": "^0.0.965",
42
42
  "@tscircuit/checks": "^0.0.247",
43
- "@tscircuit/circuit-json-util": "^0.0.119",
43
+ "@tscircuit/circuit-json-util": "^0.0.121",
44
44
  "@tscircuit/common": "^0.0.20",
45
45
  "@tscircuit/copper-pour-solver": "^0.0.67",
46
46
  "@tscircuit/create-fdm-enclosure": "0.0.4",
@@ -143,7 +143,7 @@
143
143
  "jscad-fiber": "^0.0.88"
144
144
  },
145
145
  "overrides": {
146
- "@tscircuit/circuit-json-util": "^0.0.119",
146
+ "@tscircuit/circuit-json-util": "^0.0.121",
147
147
  "@tscircuit/props": "^0.0.698",
148
148
  "circuit-json": "^0.0.525",
149
149
  "@tscircuit/cableprinter": "^0.0.6"