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

Upgrade automerge & automerge-repo versions #1

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/node_modules/
/*.amrg

automerge-repo-data
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"bin": "./src/index.js",
"dependencies": {
"@automerge/automerge": "^2.1.0-alpha.8",
"@automerge/automerge-repo": "^0.1.4",
"@automerge/automerge-repo-network-websocket": "^0.1.4",
"@automerge/automerge-repo-storage-nodefs": "^0.1.4",
"@automerge/automerge": "^2.1.3",
"@automerge/automerge-repo": "1.0.3",
"@automerge/automerge-repo-network-websocket": "1.0.3",
"@automerge/automerge-repo-storage-nodefs": "1.0.3",
"express": "^4.18.1",
"ws": "^8.7.0"
},
Expand Down
8 changes: 4 additions & 4 deletions test/Server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ describe("Sync Server Tests", () => {
doc.test = "hello world"
})

const handle2 = repo2.find(handle.documentId)
const handle2 = repo2.find(handle.url)

handle2.value().then((doc) => {
handle2.doc().then((doc) => {
assert.equal(doc.test, "hello world")
done()
})
Expand All @@ -74,11 +74,11 @@ describe("Sync Server Tests", () => {

assert.equal(Object.keys(repo2.handles).length, 0)

const handle2 = repo2.find(handle.documentId)
const handle2 = repo2.find(handle.url)

assert.equal(Object.keys(repo2.handles).length, 1)

const doc = await handle2.value()
const doc = await handle2.doc()

assert.equal(doc.test, "hello world")
})
Expand Down
Loading
Loading