Skip to content

Commit

Permalink
update to eval (eval-webworker is deprecated) (#223)
Browse files Browse the repository at this point in the history
* update to eval (eval-webworker is deprecated)

* fix merge conflict
  • Loading branch information
seveibar authored Feb 10, 2025
1 parent d74d5fb commit b7431da
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The CircuitJsonPreview component provides:
### Providing the Blob URL (to avoid loading webworker from CDN)

```tsx
import evalWebWorkerBlobUrl from "@tscircuit/eval-webworker/blob-url"
import evalWebWorkerBlobUrl from "@tscircuit/eval/blob-url"
```

## Development
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/components/RunFrame.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createCircuitWebWorker } from "@tscircuit/eval-webworker"
import { createCircuitWebWorker } from "@tscircuit/eval"
import { CircuitJsonPreview, type TabId } from "./CircuitJsonPreview"
import { useEffect, useMemo, useReducer, useRef, useState } from "react"
import Debug from "debug"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@radix-ui/react-tabs": "^1.1.2",
"@tscircuit/3d-viewer": "^0.0.129",
"@tscircuit/assembly-viewer": "^0.0.1",
"@tscircuit/eval-webworker": "^0.0.83",
"@tscircuit/eval": "^0.0.87",
"@tscircuit/core": "^0.0.305",
"@tscircuit/file-server": "^0.0.13",
"@tscircuit/pcb-viewer": "^1.11.29",
Expand Down
4 changes: 2 additions & 2 deletions tests/RunFrame.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "bun:test"
import { createCircuitWebWorker } from "@tscircuit/eval-webworker"
import evalWebWorkerBlobUrl from "@tscircuit/eval-webworker/blob-url"
import { createCircuitWebWorker } from "@tscircuit/eval"
import evalWebWorkerBlobUrl from "@tscircuit/eval/blob-url"

test("RunFrame should handle circuit evaluation", async () => {
const worker = await createCircuitWebWorker({
Expand Down

0 comments on commit b7431da

Please sign in to comment.