feat: update to slate 0.58 && fix site build

This commit is contained in:
cudr
2020-05-11 09:21:49 +03:00
parent 0fd9390a99
commit 6adf4082dc
30 changed files with 180 additions and 107 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@slate-collaborative/backend",
"version": "0.5.0",
"version": "0.6.0",
"files": [
"lib"
],
@@ -17,8 +17,8 @@
"author": "cudr",
"license": "MIT",
"scripts": {
"prepublishOnly": "yarn run build",
"build": "yarn run build:types && yarn run build:js",
"prepublishOnly": "yarn run build:module",
"build:module": "yarn run build:types && yarn run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"watch": "yarn build:js -w"
@@ -26,12 +26,12 @@
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/runtime": "^7.6.3",
"@slate-collaborative/bridge": "^0.5.0",
"@slate-collaborative/bridge": "0.6.0",
"@types/lodash": "^4.14.150",
"@types/socket.io": "^2.1.4",
"automerge": "^0.14.0",
"automerge": "0.14.0",
"lodash": "^4.17.15",
"slate": "^0.57.2",
"slate": "0.58.0",
"socket.io": "^2.3.0",
"typescript": "^3.8.3"
},
@@ -46,5 +46,6 @@
},
"directories": {
"lib": "lib"
}
},
"gitHead": "1a29cf0da2dc171c1fadd5c8e6eac2327b5b0241"
}

View File

@@ -111,7 +111,7 @@ class AutomergeBackend {
if (!doc.cursors) return
const change = Automerge.change(doc, d => {
const change = Automerge.change(doc, (d: any) => {
delete d.cursors[id]
})