@tscircuit/parts-engine 0.0.14 → 0.0.16

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/bun.lock CHANGED
@@ -4,14 +4,12 @@
4
4
  "workspaces": {
5
5
  "": {
6
6
  "name": "@tscircuit/parts-engine",
7
- "dependencies": {
8
- "easyeda": "^0.0.253",
9
- },
10
7
  "devDependencies": {
11
8
  "@biomejs/biome": "^1.9.4",
12
- "@tscircuit/props": "^0.0.500",
9
+ "@tscircuit/props": "^0.0.502",
13
10
  "@types/bun": "latest",
14
11
  "circuit-json": "^0.0.406",
12
+ "easyeda": "^0.0.256",
15
13
  "tsup": "^8.4.0",
16
14
  },
17
15
  "peerDependencies": {
@@ -142,7 +140,7 @@
142
140
 
143
141
  "@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.40.0", "", { "os": "win32", "cpu": "x64" }, "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ=="],
144
142
 
145
- "@tscircuit/props": ["@tscircuit/props@0.0.500", "", { "peerDependencies": { "circuit-json": "*", "react": "*", "zod": "*" } }, "sha512-WHQfU9mrHTOwOA/qA1nMQKzU1+umWIcEppjoAOE/k+nV11izq6n8CemQZgdzen0mqnfmVn2eX9APAkwiTTApdg=="],
143
+ "@tscircuit/props": ["@tscircuit/props@0.0.502", "", { "peerDependencies": { "circuit-json": "*", "react": "*", "zod": "*" } }, "sha512-0Nf/2etrIGV5hYLqOQQWtlEMW5fFzUmNVK7QcmGi/R485mEpupRYAzsCt2qnNb9PAs51w4WUS2QtGJreaFjmqA=="],
146
144
 
147
145
  "@types/bun": ["@types/bun@1.2.10", "", { "dependencies": { "bun-types": "1.2.10" } }, "sha512-eilv6WFM3M0c9ztJt7/g80BDusK98z/FrFwseZgT4bXCq2vPhXD4z8R3oddmAn+R/Nmz9vBn4kweJKmGTZj+lg=="],
148
146
 
@@ -184,7 +182,7 @@
184
182
 
185
183
  "eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="],
186
184
 
187
- "easyeda": ["easyeda@0.0.253", "", { "peerDependencies": { "typescript": "^5.5.2", "zod": "3" }, "bin": { "easyeda-converter": "dist/main.cjs", "easyeda": "dist/main.cjs" } }, "sha512-kB39WFoZxAmfQ3nETPj7yUq5PbPKUGEVtrVToAuKMQZimC2JJR61k6UsoK0QSk+q1R6RsfWj4v8tKHXXZ97UfQ=="],
185
+ "easyeda": ["easyeda@0.0.256", "", { "peerDependencies": { "typescript": "^5.5.2", "zod": "3" }, "bin": { "easyeda-converter": "dist/main.cjs", "easyeda": "dist/main.cjs" } }, "sha512-+tAJepTalUhj0A8uCH0ERqI9LQAychghMzNntd3v4hatxwzYP8zHuqIVDit32N5nKgW3TSP2UQ+EDbxeEemtPQ=="],
188
186
 
189
187
  "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],
190
188
 
@@ -4,7 +4,7 @@ import {
4
4
  fetchEasyEDAComponent,
5
5
  EasyEdaJsonSchema,
6
6
  convertEasyEdaJsonToCircuitJson,
7
- } from "easyeda"
7
+ } from "easyeda/browser"
8
8
 
9
9
  export const cache = new Map<string, any>()
10
10
 
package/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
2
  "name": "@tscircuit/parts-engine",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
- "dependencies": {
7
- "easyeda": "^0.0.253"
8
- },
9
6
  "devDependencies": {
10
7
  "@biomejs/biome": "^1.9.4",
11
- "@tscircuit/props": "^0.0.500",
8
+ "@tscircuit/props": "^0.0.502",
12
9
  "@types/bun": "latest",
13
10
  "circuit-json": "^0.0.406",
11
+ "easyeda": "^0.0.256",
14
12
  "tsup": "^8.4.0"
15
13
  },
16
14
  "scripts": {
17
15
  "format": "biome format --write .",
18
16
  "test": "bun test",
19
- "build": "tsup-node index.ts --format esm --dts --sourcemap",
17
+ "build": "tsup index.ts --format esm --dts --sourcemap",
20
18
  "format:check": "biome format ."
21
19
  },
22
20
  "peerDependencies": {
@@ -30,4 +30,4 @@ test("fetchPartCircuitJson works with manufacturerPartNumber (TYPE-C-31-M-12)",
30
30
  const types = result!.map((el: any) => el.type)
31
31
  expect(types.filter((t: string) => t === "pcb_smtpad").length).toBe(12)
32
32
  expect(types.filter((t: string) => t === "pcb_plated_hole").length).toBe(4)
33
- }, 100000)
33
+ }, 20000)