Skip to content

Commit

Permalink
upgrade to newest y-partykit improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerc99 committed Oct 16, 2023
1 parent 1e04fc4 commit 922db39
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"partykit": "^0.0.26",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"y-partykit": "^0.0.7"
"y-partykit": "^0.0.10"
}
}
2 changes: 1 addition & 1 deletion packages/playhtml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@playhtml/common": "^0.0.2",
"y-indexeddb": "^9.0.11",
"y-partykit": "^0.0.7",
"y-partykit": "^0.0.10",
"yjs": "^13.6.8"
}
}
6 changes: 3 additions & 3 deletions partykit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { onConnect } from "y-partykit";

export default {
async onConnect(ws, room) {
// Yjs method
// @ts-ignore
return onConnect(ws, room, {
persist: true,
persist: {
mode: "snapshot",
},
});
},
} satisfies PartyKitServer;
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1728,10 +1728,10 @@ y-indexeddb@^9.0.11:
dependencies:
lib0 "^0.2.74"

y-partykit@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/y-partykit/-/y-partykit-0.0.7.tgz#168eb19d9dd7b61b201a2a857cbb22deb7981fbe"
integrity sha512-v9dFy0or95xHyXnOp5twZWjgvpeGkon1SbrVC7DiE3t80qk6fqi8alGWtJAWsV/n34p22FHuvpmC7tcwAgxcYA==
y-partykit@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/y-partykit/-/y-partykit-0.0.10.tgz#7680dc43b287071e556af7d8681299c5d0723623"
integrity sha512-DFzaQbbgUm4jZx8oj3uHigRUKw0sYvq7QQlw/Kq+yOrci+AD0b38cgyWEs5TWYQDCC2a7Wqs33oiJ5YgOCDqVg==
dependencies:
lib0 "^0.2.86"
lodash.debounce "^4.0.8"
Expand Down

0 comments on commit 922db39

Please sign in to comment.