Skip to content

Commit

Permalink
Remove .init call from fullfat.ts
Browse files Browse the repository at this point in the history
This has meant that `automerge-repo` couldn't even be _imported_ in an environment without access to `crypto.getRandomValues` (for example, outside the handler of a Cloudflare worker) because it needs to generate ids.

`init` is called correctly already any time a document is created or loaded, so this is only a bug fix and shouldn't have any other effects
  • Loading branch information
chee authored Aug 9, 2024
1 parent f7d3f5e commit 71dfed7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/automerge-repo/src/entrypoints/fullfat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ export * from "../index.js"
//
// eslint-disable-next-line automerge-slimport/enforce-automerge-slim-import
import { next as Am } from "@automerge/automerge"

Check failure on line 10 in packages/automerge-repo/src/entrypoints/fullfat.ts

View workflow job for this annotation

GitHub Actions / Lint Packages

'Am' is defined but never used. Allowed unused vars must match /^_/u
Am.init()

0 comments on commit 71dfed7

Please sign in to comment.