automerge-repo

0.2.0

Extends the Automerge-swift library, providing support for working with multiple Automerge documents at once, with pluggable network and storage providers.
automerge/automerge-repo-swift

What's New

0.2.0

2024-05-16T23:17:01Z

Breaking Changes in the API - in particular, there's now import instead of create for when you're trying to load an external document that already has an ID associated with it.

What's Changed

  • more comprehensive disconnect state notifications by @heckj in #94
  • deduplicates state update events by @heckj in #98
  • Max web socket retry config by @heckj in #101
  • rename some of the repo API (half of create) to import by @heckj in #99

Full Changelog: 0.1.1...0.2.0

AutomergeRepo, swift edition

Extends the Automerge-swift library, providing support for working with multiple Automerge documents at once, with pluggable network and storage providers.

The library is a functional port/replica of the automerge-repo javascript library. The goal of this project is to provide convenient storage and network synchronization for one or more Automerge documents, concurrently with multiple network peers.

This library is being extracted from the Automerge-swift demo application MeetingNotes. As such, the API is far from stable, and some not-swift6-compatible classes remain while we continue to evolve this library.

Quickstart

WARNING: This package does NOT yet have a release tagged. Once the legacy elements from the MeetingNotes app are fully ported into Repo, we will cut an initial release for this package. In the meantime, if you want to explore or use this package, please do so as a local Package depdendency.

PENDING A RELEASE, add a dependency in Package.swift, as the following example shows:

let package = Package(
    ...
    dependencies: [
        ...
        .package(url: "https://github.com/automerge/automerge-repo-swift.git", from: "0.1.0")
    ],
    targets: [
        .executableTarget(
            ...
            dependencies: [.product(name: "AutomergeRepo", package: "automerge-repo-swift")],
            ...
        )
    ]
)

For more details on using Automerge Documents, see the Automerge-swift API documentation and the articles within.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Sun Nov 03 2024 17:45:45 GMT-1000 (Hawaii-Aleutian Standard Time)