Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/clever-emus-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"y-partyserver": patch
"partyserver": patch
"partysocket": patch
"partytracks": patch
"hono-party": patch
"partysync": patch
"partywhen": patch
"partysub": patch
---

update deps
5 changes: 3 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
Expand All @@ -24,7 +24,8 @@
"!**/coverage",
"!**/*.d.ts",
"!**/*.d.mts",
"!./packages/partysocket/event-target-polyfill.*",
"!**/*.d.cts",
"!packages/partysocket/event-target-polyfill.*",
"!tsconfig.base.json",
"!**/.wrangler",
"!**/lexical.css",
Expand Down
14 changes: 7 additions & 7 deletions fixtures/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"start": "vite dev"
},
"dependencies": {
"@tailwindcss/vite": "^4.1.13",
"@tailwindcss/vite": "^4.1.18",
"nanoid": "^5.1.6",
"partyserver": "^0.0.76",
"partysocket": "^1.1.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.13",
"valibot": "^1.1.0"
"react": "^19.2.3",
"react-dom": "^19.2.3",
"tailwindcss": "^4.1.18",
"valibot": "^1.2.0"
},
"devDependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
10 changes: 5 additions & 5 deletions fixtures/globe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"start": "vite dev"
},
"dependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"cobe": "^0.6.5",
"partyserver": "^0.0.76",
"partysocket": "^1.1.6",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250924.0"
"@cloudflare/workers-types": "^4.20251218.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
10 changes: 5 additions & 5 deletions fixtures/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"start": "vite dev"
},
"dependencies": {
"hono": "^4.9.8",
"hono": "^4.11.1",
"hono-party": "^0.0.18",
"partyserver": "^0.0.76",
"partysocket": "^1.1.6",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
14 changes: 8 additions & 6 deletions fixtures/lexical-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
"deploy": "wrangler deploy"
},
"dependencies": {
"@lexical/react": "^0.35.0",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"lexical": "^0.35.0",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"@lexical/react": "^0.39.0",
"lexical": "^0.39.0",
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
"devDependencies": {
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
4 changes: 2 additions & 2 deletions fixtures/monaco-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "wrangler dev"
},
"dependencies": {
"monaco-editor": "^0.53.0",
"partysocket": "^1.1.2",
"monaco-editor": "^0.55.1",
"partysocket": "^1.1.6",
"y-monaco": "^0.1.6"
}
}
2 changes: 0 additions & 2 deletions fixtures/monaco-yjs/src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { MonacoBinding } from "y-monaco";
import YProvider from "y-partyserver/provider";
import * as Y from "yjs";

// @ts-expect-error I don't know typescript
window.MonacoEnvironment = {
// @ts-expect-error I don't know typescript
getWorkerUrl: (_moduleId, label) => {
if (label === "json") {
// return "/dist/json.worker.bundle.js";
Expand Down
2 changes: 1 addition & 1 deletion fixtures/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"start": "wrangler dev"
},
"dependencies": {
"partysocket": "^1.1.2"
"partysocket": "^1.1.6"
}
}
4 changes: 2 additions & 2 deletions fixtures/partytracks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"dev": "vite dev"
},
"dependencies": {
"hono": "^4.9.8",
"hono": "^4.11.1",
"partytracks": "^0.0.54",
"rxjs": "^7.8.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250924.0"
"@cloudflare/workers-types": "^4.20251218.0"
}
}
2 changes: 1 addition & 1 deletion fixtures/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"dependencies": {
"nanoid": "^5.1.6",
"partysocket": "^1.1.2"
"partysocket": "^1.1.6"
}
}
1 change: 0 additions & 1 deletion fixtures/pubsub/src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function App() {
<div>
Messages:
{messages.map((message, i) => (
// biome-ignore lint/suspicious/noArrayIndexKey: it's fine
<div key={i}>{JSON.stringify(message)}</div>
))}
</div>
Expand Down
17 changes: 8 additions & 9 deletions fixtures/tiptap-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
"start": "vite dev"
},
"dependencies": {
"@tiptap/extension-collaboration": "^2.11.5",
"@tiptap/extension-collaboration-cursor": "^2.11.5",
"@tiptap/react": "^2.11.5",
"@tiptap/starter-kit": "^2.11.5",
"@tiptap/extension-collaboration": "^3.14.0",
"@tiptap/react": "^3.14.0",
"@tiptap/starter-kit": "^3.14.0",
"partyserver": "^0.0.76",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.13",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"tailwindcss": "^4.1.18",
"y-partyserver": "^0.0.52"
},
"devDependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
24 changes: 12 additions & 12 deletions fixtures/tiptap-yjs/src/client/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { createRoot } from "react-dom/client";
import { useEffect, useState } from "react";
import Collaboration from "@tiptap/extension-collaboration";
import CollaborationCursor from "@tiptap/extension-collaboration-cursor";
// import CollaborationCursor from "@tiptap/extension-collaboration-cursor";
import { EditorContent, useEditor } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import useYProvider from "y-partyserver/react";

import "./styles.css";

// 5 pastel colors
const colours = ["#FFC0CB", "#FFD700", "#98FB98", "#87CEFA", "#FFA07A"];
// const colours = ["#FFC0CB", "#FFD700", "#98FB98", "#87CEFA", "#FFA07A"];

// Pick a random color from the list
// This is just for demonstration purposes
const MY_COLOR = colours[Math.floor(Math.random() * colours.length)];
// const MY_COLOR = colours[Math.floor(Math.random() * colours.length)];

function Tiptap() {
const provider = useYProvider({
Expand Down Expand Up @@ -57,19 +57,19 @@ function Tiptap() {
extensions: [
StarterKit.configure({
// The Collaboration extension comes with its own history handling
history: false
// history: false
}),
Collaboration.configure({
document: provider.doc
}),
// Register the collaboration cursor extension
CollaborationCursor.configure({
provider: provider,
user: {
name: provider.id,
color: MY_COLOR
}
})
// Register the collaboration cursor extension
// CollaborationCursor.configure({
// provider: provider,
// user: {
// name: provider.id,
// color: MY_COLOR
// }
// })
]
});

Expand Down
4 changes: 4 additions & 0 deletions fixtures/tiptap-yjs/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export class Document extends YServer<Env> {
debounceMaxWait: 10000,
timeout: 10000
};
static options = {
hibernate: true
};
async onStart() {
console.log("onStart");
this.ctx.storage.sql.exec(
"CREATE TABLE IF NOT EXISTS documents (id TEXT PRIMARY KEY, content BLOB)"
);
Expand Down
1 change: 0 additions & 1 deletion fixtures/tldraw/client/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ body {
min-height: 100vh;
font-size: 16px;
/* mobile viewport bug fix */
/* biome-ignore lint/suspicious/noDuplicateProperties: on purpose */
min-height: -webkit-fill-available;
height: 100%;
}
Expand Down
10 changes: 5 additions & 5 deletions fixtures/tldraw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"dependencies": {
"partyserver": "^0.0.76",
"partysocket": "^1.1.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tldraw": "^4.0.2"
"react": "^19.2.3",
"react-dom": "^19.2.3",
"tldraw": "^4.2.1"
},
"devDependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
12 changes: 6 additions & 6 deletions fixtures/todo-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"start": "vite dev"
},
"dependencies": {
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"nanoid": "^5.1.6",
"partyserver": "^0.0.76",
"partysocket": "^1.1.6",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"valibot": "^1.1.0"
"react": "^19.2.3",
"react-dom": "^19.2.3",
"valibot": "^1.2.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250924.0"
"@cloudflare/workers-types": "^4.20251218.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}
18 changes: 0 additions & 18 deletions fixtures/video-echo/app/entry.client.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions fixtures/video-echo/app/entry.server.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions fixtures/video-echo/app/hooks/useIsServer.ts

This file was deleted.

Loading