@tscircuit/cli 0.1.1120 → 0.1.1121

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/cli/main.js CHANGED
@@ -97682,7 +97682,7 @@ var import_perfect_cli = __toESM2(require_dist2(), 1);
97682
97682
  // lib/getVersion.ts
97683
97683
  import { createRequire as createRequire2 } from "node:module";
97684
97684
  // package.json
97685
- var version = "0.1.1119";
97685
+ var version = "0.1.1120";
97686
97686
  var package_default = {
97687
97687
  name: "@tscircuit/cli",
97688
97688
  version,
@@ -97711,7 +97711,7 @@ var package_default = {
97711
97711
  "@types/semver": "^7.5.8",
97712
97712
  "bun-match-svg": "^0.0.12",
97713
97713
  chokidar: "4.0.1",
97714
- "circuit-json": "^0.0.402",
97714
+ "circuit-json": "^0.0.403",
97715
97715
  "circuit-json-to-kicad": "^0.0.84",
97716
97716
  "circuit-json-to-readable-netlist": "^0.0.15",
97717
97717
  "circuit-json-to-spice": "^0.0.10",
@@ -97723,7 +97723,7 @@ var package_default = {
97723
97723
  debug: "^4.4.0",
97724
97724
  delay: "^6.0.0",
97725
97725
  "dsn-converter": "^0.0.63",
97726
- easyeda: "^0.0.247",
97726
+ easyeda: "^0.0.248",
97727
97727
  "fuse.js": "^7.1.0",
97728
97728
  "get-port": "^7.1.0",
97729
97729
  globby: "^14.1.0",
@@ -97731,7 +97731,7 @@ var package_default = {
97731
97731
  jsonwebtoken: "^9.0.2",
97732
97732
  jszip: "^3.10.1",
97733
97733
  "jwt-decode": "^4.0.0",
97734
- "kicad-component-converter": "^0.1.22",
97734
+ "kicad-component-converter": "^0.1.40",
97735
97735
  kicadts: "^0.0.24",
97736
97736
  kleur: "^4.1.5",
97737
97737
  ky: "^1.7.4",
@@ -97746,7 +97746,7 @@ var package_default = {
97746
97746
  semver: "^7.6.3",
97747
97747
  sharp: "0.32.6",
97748
97748
  tempy: "^3.1.0",
97749
- tscircuit: "0.0.1511-libonly",
97749
+ tscircuit: "0.0.1519-libonly",
97750
97750
  tsx: "^4.7.1",
97751
97751
  "typed-ky": "^0.0.4",
97752
97752
  zod: "^3.23.8"
@@ -133423,7 +133423,7 @@ var generateFootprintTsx2 = (circuitJson) => {
133423
133423
  elementStrings.push(`<silkscreentext text="${silkscreenText.text}" pcbX="${mmStr2(silkscreenText.anchor_position.x)}" pcbY="${mmStr2(silkscreenText.anchor_position.y)}" anchorAlignment="${silkscreenText.anchor_alignment}" ${silkscreenText.font_size ? `fontSize="${mmStr2(silkscreenText.font_size)}"` : ""} />`);
133424
133424
  }
133425
133425
  for (const courtyardOutline of courtyardOutlines) {
133426
- elementStrings.push(`<courtyardoutline points={${JSON.stringify(courtyardOutline.outline)}} />`);
133426
+ elementStrings.push(`<courtyardoutline outline={${JSON.stringify(courtyardOutline.outline)}} />`);
133427
133427
  }
133428
133428
  return `
133429
133429
  <footprint>
@@ -188204,35 +188204,31 @@ function upperBound(value, arr) {
188204
188204
  return arr[i2];
188205
188205
  }
188206
188206
  function sort(values, boxes, indices, left, right, nodeSize) {
188207
- if (Math.floor(left / nodeSize) >= Math.floor(right / nodeSize))
188208
- return;
188209
- const start = values[left];
188210
- const mid = values[left + right >> 1];
188211
- const end = values[right];
188212
- let pivot = end;
188213
- const x3 = Math.max(start, mid);
188214
- if (end > x3) {
188215
- pivot = x3;
188216
- } else if (x3 === start) {
188217
- pivot = Math.max(mid, end);
188218
- } else if (x3 === mid) {
188219
- pivot = Math.max(start, end);
188220
- }
188221
- let i2 = left - 1;
188222
- let j22 = right + 1;
188223
- while (true) {
188224
- do
188225
- i2++;
188226
- while (values[i2] < pivot);
188227
- do
188228
- j22--;
188229
- while (values[j22] > pivot);
188230
- if (i2 >= j22)
188231
- break;
188232
- swap(values, boxes, indices, i2, j22);
188207
+ const stack = [left, right];
188208
+ while (stack.length) {
188209
+ const r22 = stack.pop() || 0;
188210
+ const l22 = stack.pop() || 0;
188211
+ if (r22 - l22 <= nodeSize && Math.floor(l22 / nodeSize) >= Math.floor(r22 / nodeSize))
188212
+ continue;
188213
+ const a2 = values[l22];
188214
+ const b22 = values[l22 + r22 >> 1];
188215
+ const c22 = values[r22];
188216
+ const pivot = a2 > b22 !== a2 > c22 ? a2 : b22 < a2 !== b22 < c22 ? b22 : c22;
188217
+ let i2 = l22 - 1;
188218
+ let j22 = r22 + 1;
188219
+ while (true) {
188220
+ do
188221
+ i2++;
188222
+ while (values[i2] < pivot);
188223
+ do
188224
+ j22--;
188225
+ while (values[j22] > pivot);
188226
+ if (i2 >= j22)
188227
+ break;
188228
+ swap(values, boxes, indices, i2, j22);
188229
+ }
188230
+ stack.push(l22, j22, j22 + 1, r22);
188233
188231
  }
188234
- sort(values, boxes, indices, left, j22, nodeSize);
188235
- sort(values, boxes, indices, j22 + 1, right, nodeSize);
188236
188232
  }
188237
188233
  function swap(values, boxes, indices, i2, j22) {
188238
188234
  const temp = values[i2];
package/dist/lib/index.js CHANGED
@@ -60445,7 +60445,7 @@ var getNodeHandler = (winterSpec, { port, middleware = [] }) => {
60445
60445
  }));
60446
60446
  };
60447
60447
  // package.json
60448
- var version = "0.1.1119";
60448
+ var version = "0.1.1120";
60449
60449
  var package_default = {
60450
60450
  name: "@tscircuit/cli",
60451
60451
  version,
@@ -60474,7 +60474,7 @@ var package_default = {
60474
60474
  "@types/semver": "^7.5.8",
60475
60475
  "bun-match-svg": "^0.0.12",
60476
60476
  chokidar: "4.0.1",
60477
- "circuit-json": "^0.0.402",
60477
+ "circuit-json": "^0.0.403",
60478
60478
  "circuit-json-to-kicad": "^0.0.84",
60479
60479
  "circuit-json-to-readable-netlist": "^0.0.15",
60480
60480
  "circuit-json-to-spice": "^0.0.10",
@@ -60486,7 +60486,7 @@ var package_default = {
60486
60486
  debug: "^4.4.0",
60487
60487
  delay: "^6.0.0",
60488
60488
  "dsn-converter": "^0.0.63",
60489
- easyeda: "^0.0.247",
60489
+ easyeda: "^0.0.248",
60490
60490
  "fuse.js": "^7.1.0",
60491
60491
  "get-port": "^7.1.0",
60492
60492
  globby: "^14.1.0",
@@ -60494,7 +60494,7 @@ var package_default = {
60494
60494
  jsonwebtoken: "^9.0.2",
60495
60495
  jszip: "^3.10.1",
60496
60496
  "jwt-decode": "^4.0.0",
60497
- "kicad-component-converter": "^0.1.22",
60497
+ "kicad-component-converter": "^0.1.40",
60498
60498
  kicadts: "^0.0.24",
60499
60499
  kleur: "^4.1.5",
60500
60500
  ky: "^1.7.4",
@@ -60509,7 +60509,7 @@ var package_default = {
60509
60509
  semver: "^7.6.3",
60510
60510
  sharp: "0.32.6",
60511
60511
  tempy: "^3.1.0",
60512
- tscircuit: "0.0.1511-libonly",
60512
+ tscircuit: "0.0.1519-libonly",
60513
60513
  tsx: "^4.7.1",
60514
60514
  "typed-ky": "^0.0.4",
60515
60515
  zod: "^3.23.8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.1120",
3
+ "version": "0.1.1121",
4
4
  "main": "dist/cli/main.js",
5
5
  "exports": {
6
6
  ".": "./dist/cli/main.js",
@@ -26,7 +26,7 @@
26
26
  "@types/semver": "^7.5.8",
27
27
  "bun-match-svg": "^0.0.12",
28
28
  "chokidar": "4.0.1",
29
- "circuit-json": "^0.0.402",
29
+ "circuit-json": "^0.0.403",
30
30
  "circuit-json-to-kicad": "^0.0.84",
31
31
  "circuit-json-to-readable-netlist": "^0.0.15",
32
32
  "circuit-json-to-spice": "^0.0.10",
@@ -38,7 +38,7 @@
38
38
  "debug": "^4.4.0",
39
39
  "delay": "^6.0.0",
40
40
  "dsn-converter": "^0.0.63",
41
- "easyeda": "^0.0.247",
41
+ "easyeda": "^0.0.248",
42
42
  "fuse.js": "^7.1.0",
43
43
  "get-port": "^7.1.0",
44
44
  "globby": "^14.1.0",
@@ -46,7 +46,7 @@
46
46
  "jsonwebtoken": "^9.0.2",
47
47
  "jszip": "^3.10.1",
48
48
  "jwt-decode": "^4.0.0",
49
- "kicad-component-converter": "^0.1.22",
49
+ "kicad-component-converter": "^0.1.40",
50
50
  "kicadts": "^0.0.24",
51
51
  "kleur": "^4.1.5",
52
52
  "ky": "^1.7.4",
@@ -61,7 +61,7 @@
61
61
  "semver": "^7.6.3",
62
62
  "sharp": "0.32.6",
63
63
  "tempy": "^3.1.0",
64
- "tscircuit": "0.0.1511-libonly",
64
+ "tscircuit": "0.0.1519-libonly",
65
65
  "tsx": "^4.7.1",
66
66
  "typed-ky": "^0.0.4",
67
67
  "zod": "^3.23.8"