Skip to content

Commit a033442

Browse files
committed
use yjs beta package @y/y
1 parent 3b18fed commit a033442

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ HOST=localhost PORT=1234 npx y-websocket
5959
### Client Code:
6060

6161
```js
62-
import * as Y from 'yjs'
62+
import * as Y from '@y/y'
6363
import { WebsocketProvider } from 'y-websocket'
6464

6565
const doc = new Y.Doc()

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"clean": "rm -rf dist",
1616
"dist": "npm run clean && rollup -c && tsc --skipLibCheck",
17-
"lint": "standard && tsc",
17+
"lint": "standard && tsc --skipLibCheck",
1818
"test": "npm run lint",
1919
"preversion": "npm run dist && test -e dist/y-websocket.d.ts && test -e dist/y-websocket.cjs"
2020
},
@@ -52,18 +52,18 @@
5252
]
5353
},
5454
"dependencies": {
55-
"@y/protocols": "^1.0.6-1",
55+
"@y/protocols": "^1.0.6-3",
5656
"lib0": "^0.2.115-6"
5757
},
5858
"devDependencies": {
5959
"@types/node": "^22.14.0",
6060
"rollup": "^4.43.0",
6161
"standard": "^17.1.2",
6262
"typescript": "^5.8.3",
63-
"yjs": "^14.0.0-16"
63+
"@y/y": "^14.0.0-16"
6464
},
6565
"peerDependencies": {
66-
"yjs": "^14.0.0-16"
66+
"@y/y": "^14.0.0-16"
6767
},
6868
"engines": {
6969
"npm": ">=8.0.0",

src/y-websocket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* eslint-env browser */
66

7-
import * as Y from 'yjs' // eslint-disable-line
7+
import * as Y from '@y/y' // eslint-disable-line
88
import * as bc from 'lib0/broadcastchannel'
99
import * as time from 'lib0/time'
1010
import * as encoding from 'lib0/encoding'
@@ -245,7 +245,7 @@ const broadcastMessage = (provider, buf) => {
245245
* creates a websocket connection to http://localhost:1234/my-document-name
246246
*
247247
* @example
248-
* import * as Y from 'yjs'
248+
* import * as Y from '@y/y'
249249
* import { WebsocketProvider } from 'y-websocket'
250250
* const doc = new Y.Doc()
251251
* const provider = new WebsocketProvider('http://localhost:1234', 'my-document-name', doc)

0 commit comments

Comments
 (0)