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

Commits on Oct 4, 2024

  1. only depend on @automerge/automerge-slim

    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 committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    09affa6 View commit details
    Browse the repository at this point in the history