@tscircuit/schematic-viewer 2.0.68 → 2.0.70

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/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "@tscircuit/schematic-viewer",
3
- "version": "2.0.68",
3
+ "version": "2.0.70",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",
8
- "build:webworker": "tsup --config tsup-webworker.config.ts",
9
- "build:blob-url": "bun scripts/build-worker-blob-url.ts",
10
- "build": "bun run build:webworker && bun run build:blob-url && tsup-node ./lib/index.ts --dts --format esm --sourcemap",
8
+ "build": "tsup-node ./lib/index.ts --dts --format esm --sourcemap",
11
9
  "build:site": "cosmos-export",
12
- "vercel-build": "bun run build:webworker && bun run build:blob-url && bun run build:site",
10
+ "vercel-build": "bun run build:site",
13
11
  "format": "biome format --write .",
14
12
  "format:check": "biome format ."
15
13
  },
@@ -22,7 +20,6 @@
22
20
  "@types/debug": "^4.1.12",
23
21
  "@types/react": "^19.0.1",
24
22
  "@types/react-dom": "^19.0.2",
25
- "@types/recharts": "^2.0.1",
26
23
  "@vitejs/plugin-react": "^4.3.4",
27
24
  "react": "^19.1.0",
28
25
  "react-cosmos": "^6.2.1",
@@ -30,21 +27,18 @@
30
27
  "react-dom": "^19.1.0",
31
28
  "react-reconciler": "^0.31.0",
32
29
  "semver": "^7.7.2",
33
- "tscircuit": "^0.0.1972",
30
+ "tscircuit": "^0.0.2012",
34
31
  "tsup": "^8.3.5",
35
32
  "vite": "^6.0.3"
36
33
  },
37
34
  "peerDependencies": {
38
35
  "typescript": "^5.0.0",
39
- "tscircuit": "*",
40
- "circuit-json-to-spice": "*"
36
+ "tscircuit": "*"
41
37
  },
42
38
  "dependencies": {
43
39
  "@radix-ui/react-dropdown-menu": "^2.1.16",
44
- "chart.js": "^4.5.0",
45
40
  "debug": "^4.4.0",
46
41
  "performance-now": "^2.1.0",
47
- "react-chartjs-2": "^5.3.0",
48
42
  "use-mouse-matrix-transform": "^1.2.2"
49
43
  }
50
44
  }
@@ -1 +0,0 @@
1
- var e=null,s=async()=>(await import("https://cdn.jsdelivr.net/npm/eecircuit-engine@1.5.2/+esm")).Simulation,c=async()=>{if(e&&e.isInitialized())return;let i=await s();e=new i,await e.start()};self.onmessage=async i=>{try{if(await c(),!e)throw new Error("Simulation not initialized");let t=i.data.spiceString,a=t.match(/wrdata\s+(\S+)\s+(.*)/i);if(a){let o=`.probe ${a[2].trim().split(/\s+/).join(" ")}`;t=t.replace(/wrdata.*/i,o)}else if(!t.match(/\.probe/i))throw t.match(/plot\s+(.*)/i)?new Error("The 'plot' command is not supported for data extraction. Please use 'wrdata <filename> <var1> ...' or '.probe <var1> ...' instead."):new Error("No '.probe' or 'wrdata' command found in SPICE file. Use 'wrdata <filename> <var1> ...' to specify output.");e.setNetList(t);let n=await e.runSim();self.postMessage({type:"result",result:n})}catch(t){self.postMessage({type:"error",error:t.message})}};