@tscircuit/core 0.0.1252 → 0.0.1254

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 +5 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12399,7 +12399,9 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
12399
12399
  _queueInvalidFootprintPropMessage(footprint, error) {
12400
12400
  const rawErrorMessage = error instanceof Error ? error.message : String(error);
12401
12401
  const isLikelyMissingLibraryPrefix = footprint.includes("/") && !footprint.includes(":");
12402
- const helpfulHint = isLikelyMissingLibraryPrefix ? ` If this is a KiCad footprint, use "kicad:${footprint}".` : "";
12402
+ const isLikelyJlcpcbPartNumber = /^c\d+$/i.test(footprint);
12403
+ const resolvedJlcpcbPartNumber = isLikelyJlcpcbPartNumber ? `C${footprint.replace(/^c/i, "")}` : null;
12404
+ const helpfulHint = isLikelyMissingLibraryPrefix ? ` If this is a KiCad footprint, use "kicad:${footprint}".` : resolvedJlcpcbPartNumber ? ` If this is a JLCPCB part number, use "jlcpcb:${resolvedJlcpcbPartNumber}".` : "";
12403
12405
  const message = `Invalid footprint prop on ${this.getDisplayName()}: "${footprint}".${helpfulHint} Parser details: ${rawErrorMessage}`;
12404
12406
  if (!this._invalidFootprintPropMessages.includes(message)) {
12405
12407
  this._invalidFootprintPropMessages.push(message);
@@ -21354,7 +21356,7 @@ import { identity as identity5 } from "transformation-matrix";
21354
21356
  var package_default = {
21355
21357
  name: "@tscircuit/core",
21356
21358
  type: "module",
21357
- version: "0.0.1251",
21359
+ version: "0.0.1253",
21358
21360
  types: "dist/index.d.ts",
21359
21361
  main: "dist/index.js",
21360
21362
  module: "dist/index.js",
@@ -21395,7 +21397,7 @@ var package_default = {
21395
21397
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",
21396
21398
  "@tscircuit/infgrid-ijump-astar": "^0.0.35",
21397
21399
  "@tscircuit/jlcpcb-manufacturing-specs": "git+https://github.com/tscircuit/jlcpcb-manufacturing-specs#e08af159db01a37db007e33f0a7268d0e4a279a5",
21398
- "@tscircuit/krt-wasm": "^0.1.0",
21400
+ "@tscircuit/krt-wasm": "^0.1.1",
21399
21401
  "@tscircuit/log-soup": "^1.0.2",
21400
21402
  "@tscircuit/matchpack": "^0.0.16",
21401
21403
  "@tscircuit/math-utils": "^0.0.36",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1252",
4
+ "version": "0.0.1254",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",
43
43
  "@tscircuit/infgrid-ijump-astar": "^0.0.35",
44
44
  "@tscircuit/jlcpcb-manufacturing-specs": "git+https://github.com/tscircuit/jlcpcb-manufacturing-specs#e08af159db01a37db007e33f0a7268d0e4a279a5",
45
- "@tscircuit/krt-wasm": "^0.1.0",
45
+ "@tscircuit/krt-wasm": "^0.1.1",
46
46
  "@tscircuit/log-soup": "^1.0.2",
47
47
  "@tscircuit/matchpack": "^0.0.16",
48
48
  "@tscircuit/math-utils": "^0.0.36",