Skip to content

Releases: automerge/automerge-codemirror

v0.0.12

27 Jun 10:49
cc5bca8
Compare
Choose a tag to compare
  • Update to @automerge/automerge@2.2.3

v0.0.11

24 Apr 13:50
04cc635
Compare
Choose a tag to compare
  • Setting up the plugin now just requires that you create an
    automergeSyncPlugin and pass it the handle and path. I.e. you go from
    this:

    const doc = handle.docSync()
    const source = doc.text // this should use path
    const plugin = amgPlugin(doc, path)
    const semaphore = new PatchSemaphore(plugin)
    const view = (editorRoot.current = new EditorView({
      doc: source,
      extensions: [basicSetup, plugin],
      dispatch(transaction) {
        view.update([transaction])
        semaphore.reconcile(handle, view)
      },
      parent: containerRef.current,
    }))
    
    const handleChange = ({ doc, patchInfo }) => {
      semaphore.reconcile(handle, view)
    }

    To this

    const view = new EditorView({
      doc: handle.docSync()!.text,
      extensions: [
        basicSetup,
        automergeSyncPlugin({
          handle,
          path: ["text"],
        }),
      ],
      parent: container,
    })

v0.0.10

28 Dec 20:41
50223e2
Compare
Choose a tag to compare
v0.0.10 (#8)

v0.0.9

01 Dec 09:06
Compare
Choose a tag to compare
v0.0.9

v0.0.7

18 Oct 09:41
Compare
Choose a tag to compare
v.0.0.7

v0.0.5

04 Oct 00:42
@pvh pvh
Compare
Choose a tag to compare

It's a new release! New Automerge-Repo, same old Codemirror.
(Seriously, you need to use this version of Codemirror or it breaks.)

v0.0.4

30 Jun 12:34
95d8ae2
Compare
Choose a tag to compare
.prettierignore

v0.0.3

27 Jun 22:34
7311faf
Compare
Choose a tag to compare
v0.0.3

v0.0.2

26 Jun 00:11
2a8221b
Compare
Choose a tag to compare
Fix package.json:files

0.0.1

26 Jun 00:00
b3df6ae
Compare
Choose a tag to compare
v0.0.1

publish --access public in CI