Skip to content

Commit

Permalink
Remove .init call from fullfat.ts (#372)
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 0b45f59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/automerge-repo/src/entrypoints/fullfat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ export * from "../index.js"
// disable
//
// eslint-disable-next-line automerge-slimport/enforce-automerge-slim-import
import { next as Am } from "@automerge/automerge"
Am.init()
import "@automerge/automerge"

0 comments on commit 0b45f59

Please sign in to comment.