@tscircuit/core 0.0.466 → 0.0.468

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.d.ts CHANGED
@@ -14557,7 +14557,8 @@ type CommonNetNames = "VCC" | "GND" | "VDD" | "PWR" | "V5" | "V3_3" | "VIN" | "S
14557
14557
  type TransistorSel = Record<`Q${Nums40}`, Record<TransistorPinNames, string>>;
14558
14558
  type JumperSel = Record<`J${Nums40}` | `CN${Nums40}`, Record<PinNumbers100 | CommonPinNames, string> & ChipFnSel>;
14559
14559
  type ChipSel = Record<`U${Nums40}`, Record<CommonPinNames, string> & ChipFnSel>;
14560
- type NetSel = Record<"net", Record<CommonNetNames, string>>;
14560
+ type NetSelFn<N extends string = CommonNetNames> = (<N2 extends string>() => Record<N | N2, string>) & Record<N, string>;
14561
+ type NetSel<N extends string = CommonNetNames> = Record<"net", NetSelFn<N>>;
14561
14562
  type ExplicitModuleSel = Record<"subcircuit" | "module" | "group", Record<`S${Nums40}` | `M${Nums40}` | `G${Nums40}`, SelWithoutSubcircuit>>;
14562
14563
  type GenericConnectionsAndSelectorsSel = Record<string, <CMP_FN extends (props: any) => any>(component: CMP_FN) => CMP_FN extends (props: infer P) => any ? P extends {
14563
14564
  connections: infer CN;
package/dist/index.js CHANGED
@@ -9796,7 +9796,7 @@ import { identity as identity4 } from "transformation-matrix";
9796
9796
  var package_default = {
9797
9797
  name: "@tscircuit/core",
9798
9798
  type: "module",
9799
- version: "0.0.465",
9799
+ version: "0.0.467",
9800
9800
  types: "dist/index.d.ts",
9801
9801
  main: "dist/index.js",
9802
9802
  module: "dist/index.js",
@@ -9819,7 +9819,7 @@ var package_default = {
9819
9819
  },
9820
9820
  devDependencies: {
9821
9821
  "@biomejs/biome": "^1.8.3",
9822
- "@tscircuit/capacity-autorouter": "^0.0.67",
9822
+ "@tscircuit/capacity-autorouter": "^0.0.71",
9823
9823
  "@tscircuit/checks": "^0.0.52",
9824
9824
  "@tscircuit/circuit-json-util": "^0.0.47",
9825
9825
  "@tscircuit/footprinter": "^0.0.177",
@@ -10228,6 +10228,14 @@ var sel = new Proxy(
10228
10228
  // - sel.U1(({ selectors: { U1: { GND: "GND", VCC: "VCC" } } }) => ...)
10229
10229
  // - sel.U1(({ connections: { GND: "GND", VCC: "VCC" } }) => ...)
10230
10230
  apply: (target, _2, args) => {
10231
+ if (prop1 === "net") {
10232
+ return new Proxy(
10233
+ {},
10234
+ {
10235
+ get: (_3, netName) => `net.${netName}`
10236
+ }
10237
+ );
10238
+ }
10231
10239
  return new Proxy(
10232
10240
  {},
10233
10241
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.466",
4
+ "version": "0.0.468",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@biomejs/biome": "^1.8.3",
27
- "@tscircuit/capacity-autorouter": "^0.0.67",
27
+ "@tscircuit/capacity-autorouter": "^0.0.71",
28
28
  "@tscircuit/checks": "^0.0.52",
29
29
  "@tscircuit/circuit-json-util": "^0.0.47",
30
30
  "@tscircuit/footprinter": "^0.0.177",