Skip to content

Commit e1ee781

Browse files
committed
bump dependencies and use lib0 exports feature
1 parent d549c45 commit e1ee781

File tree

6 files changed

+21
-30
lines changed

6 files changed

+21
-30
lines changed

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@
6363
"devDependencies": {
6464
"@rollup/plugin-commonjs": "^11.1.0",
6565
"@rollup/plugin-node-resolve": "^7.1.3",
66-
"@types/simple-peer": "^9.6.3",
66+
"@types/simple-peer": "^9.11.3",
6767
"concurrently": "^5.3.0",
6868
"http-server": "^0.12.3",
6969
"rollup": "^1.32.1",
7070
"rollup-cli": "^1.0.9",
7171
"rollup-plugin-terser": "^5.3.1",
7272
"standard": "^14.3.4",
73-
"typescript": "^3.9.9",
74-
"yjs": "^13.5.6"
73+
"typescript": "^3.9.10",
74+
"yjs": "^13.5.20"
7575
},
7676
"peerDependenies": {
7777
"yjs": "^13.5.6"

rollup.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,7 @@ export default [
9595
name: 'y-webrtc',
9696
file: 'dist/y-webrtc.cjs',
9797
format: 'cjs',
98-
sourcemap: true,
99-
paths: path => {
100-
if (/^lib0\//.test(path)) {
101-
return `lib0/dist${path.slice(4)}.cjs`
102-
} else if (/^y-protocols\//.test(path)) {
103-
return `y-protocols/dist${path.slice(11)}.cjs`
104-
}
105-
return path
106-
}
98+
sourcemap: true
10799
}]
108100
}
109101
]

src/y-webrtc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class Room {
358358
encoding.writeVarUint8Array(encoderAwareness, awarenessProtocol.encodeAwarenessUpdate(this.awareness, changedClients))
359359
broadcastRoomMessage(this, encoding.toUint8Array(encoderAwareness))
360360
}
361-
361+
362362
window.addEventListener('beforeunload', () => {
363363
awarenessProtocol.removeAwarenessStates(this.awareness, [doc.clientID], 'window unload')
364364
rooms.forEach(room => {
@@ -370,7 +370,6 @@ export class Room {
370370
connect () {
371371
this.doc.on('update', this._docUpdateHandler)
372372
this.awareness.on('update', this._awarenessUpdateHandler)
373-
374373
// signal through all available signaling connections
375374
announceSignalingInfo(this)
376375
const roomName = this.name

test/crypto.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
import * as cryptutils from '../src/crypto.js'
3-
import * as t from 'lib0/testing.js'
4-
import * as prng from 'lib0/prng.js'
2+
import * as cryptutils from '../src/crypto'
3+
import * as t from 'lib0/testing'
4+
import * as prng from 'lib0/prng'
55

66
/**
77
* @param {t.TestCase} tc

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
import * as crypto from './crypto.test.js'
33

4-
import { runTests } from 'lib0/testing.js'
5-
import { isBrowser, isNode } from 'lib0/environment.js'
6-
import * as log from 'lib0/logging.js'
4+
import { runTests } from 'lib0/testing'
5+
import { isBrowser, isNode } from 'lib0/environment'
6+
import * as log from 'lib0/logging'
77

88
if (isBrowser) {
99
log.createVConsole(document.body)

0 commit comments

Comments
 (0)