bump deps

This commit is contained in:
Kevin Jahns 2020-06-05 04:20:20 +02:00
parent 5fffe6b74b
commit d520889860
3 changed files with 471 additions and 658 deletions

1101
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,6 +6,10 @@
"types": "./dist/src/y-webrtc.d.ts", "types": "./dist/src/y-webrtc.d.ts",
"module": "./src/y-webrtc.js", "module": "./src/y-webrtc.js",
"sideEffects": false, "sideEffects": false,
"funding": {
"type": "GitHub Sponsors ❤",
"url": "https://github.com/sponsors/dmonad"
},
"scripts": { "scripts": {
"clean": "rm -rf dist", "clean": "rm -rf dist",
"start": "node ./bin/server.js", "start": "node ./bin/server.js",
@ -46,22 +50,22 @@
] ]
}, },
"dependencies": { "dependencies": {
"lib0": "^0.2.24", "lib0": "^0.2.28",
"simple-peer": "^9.6.2", "simple-peer": "^9.7.2",
"y-protocols": "^0.2.3" "y-protocols": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.1", "@rollup/plugin-node-resolve": "^7.1.3",
"@types/simple-peer": "^9.6.0", "@types/simple-peer": "^9.6.0",
"concurrently": "^5.1.0", "concurrently": "^5.2.0",
"http-server": "^0.12.1", "http-server": "^0.12.3",
"rollup": "^1.32.1", "rollup": "^1.32.1",
"rollup-cli": "^1.0.9", "rollup-cli": "^1.0.9",
"rollup-plugin-terser": "^5.3.0", "rollup-plugin-terser": "^5.3.0",
"standard": "^14.3.3", "standard": "^14.3.4",
"typescript": "^3.8.3", "typescript": "^3.9.5",
"yjs": "^13.0.5" "yjs": "^13.1.1"
}, },
"peerDependenies": { "peerDependenies": {
"yjs": "^13.0.0" "yjs": "^13.0.0"

View file

@ -360,7 +360,7 @@ export class Room {
broadcastRoomMessage(this, encoding.toUint8Array(encoderAwareness)) broadcastRoomMessage(this, encoding.toUint8Array(encoderAwareness))
} }
this.doc.on('update', this._docUpdateHandler) this.doc.on('update', this._docUpdateHandler)
this.awareness.on('change', this._awarenessUpdateHandler) this.awareness.on('update', this._awarenessUpdateHandler)
window.addEventListener('beforeunload', () => { window.addEventListener('beforeunload', () => {
awarenessProtocol.removeAwarenessStates(this.awareness, [doc.clientID], 'window unload') awarenessProtocol.removeAwarenessStates(this.awareness, [doc.clientID], 'window unload')
rooms.forEach(room => { rooms.forEach(room => {
@ -416,7 +416,7 @@ export class Room {
bc.unsubscribe(this.name, this._bcSubscriber) bc.unsubscribe(this.name, this._bcSubscriber)
this.bcconnected = false this.bcconnected = false
this.doc.off('update', this._docUpdateHandler) this.doc.off('update', this._docUpdateHandler)
this.awareness.off('change', this._awarenessUpdateHandler) this.awareness.off('update', this._awarenessUpdateHandler)
this.webrtcConns.forEach(conn => conn.destroy()) this.webrtcConns.forEach(conn => conn.destroy())
} }