Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only depend on @automerge/automerge-slim #23

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

alexjg
Copy link
Collaborator

@alexjg alexjg commented Oct 4, 2024

Problem: the library currently depends on @automerge/automerge and @automerge/automerge-repo. By importing these names we force initialization of the webassembly modules which implement automerge. This makes the library unusable for people who are initializing the webassembly modules themselves.

Solution: as per 1 we depend on @automerge/automerge/slim which defers library initialization to the user. We also entirely remove the dependency on automerge-repo, instead using an interface representing the DocHandle.

Problem: the library currently depends on @automerge/automerge and
@automerge/automerge-repo. By importing these names we force
initialization of the webassembly modules which implement automerge.
This makes the library unusable for people who are initializing the
webassembly modules themselves.

Solution: as per [1] we depend on @automerge/automerge/slim which defers
library initialization to the user. We also entirely remove the
dependency on automerge-repo, instead using an interface representing
the DocHandle.

[1]: https://automerge.org/docs/library_initialization/
@alexjg alexjg merged commit 324e34a into main Oct 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant