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
13 changes: 13 additions & 0 deletions .changeset/new-insects-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"y-partyserver": patch
"partyserver": patch
"partysocket": patch
"partytracks": patch
"hono-party": patch
"partysync": patch
"partywhen": patch
"partysub": patch
"partyfn": patch
---

update dependencies
2 changes: 1 addition & 1 deletion .github/resolve-workspace-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fg from "fast-glob";
// we do this in 2 passes
// first let's cycle through all packages and get thier version numbers

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
// biome-ignore lint/suspicious/noExplicitAny: it's fine
const packageJsons: Record<string, any> = {};

for await (const file of await fg.glob(
Expand Down
38 changes: 24 additions & 14 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"assist": {
"actions": {
"source": {
"useSortedKeys": "off",
"organizeImports": "off"
}
},
"enabled": true
},
"files": {
"ignoreUnknown": false,
"ignore": [
"**/node_modules/**",
"**/dist/**",
"**/coverage/**",
"**/*.d.ts",
"**/*.d.mts",
"./packages/partysocket/event-target-polyfill.*",
"tsconfig.base.json",
"**/.wrangler/**",
"lexical.css"
"includes": [
"fixtures/**",
"packages/**",
"!**/node_modules",
"!**/dist",
"!**/coverage",
"!**/*.d.ts",
"!**/*.d.mts",
"!./packages/partysocket/event-target-polyfill.*",
"!tsconfig.base.json",
"!**/.wrangler",
"!**/lexical.css",
"!**/normalize.css",
"!**/reset.css"
]
},
"formatter": {
"enabled": false
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
Expand Down
16 changes: 8 additions & 8 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.0.17",
"nanoid": "^5.1.5",
"@tailwindcss/vite": "^4.1.13",
"nanoid": "^5.1.6",
"partyserver": "^0.0.74",
"partysocket": "^1.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.17",
"valibot": "^1.0.0"
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.13",
"valibot": "^1.1.0"
},
"devDependencies": {
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4"
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
}
}
2 changes: 1 addition & 1 deletion fixtures/chat/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Env = { Chat: DurableObjectNamespace<Chat> };
export class Chat extends Server {
static options = { hibernate: true };

onMessage(connection: Connection, message: WSMessage) {
onMessage(_connection: Connection, message: WSMessage) {
console.log("Received a message:", message);
this.broadcast(message);
}
Expand Down
12 changes: 6 additions & 6 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.0.12",
"@types/react-dom": "^19.0.4",
"cobe": "^0.6.3",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"cobe": "^0.6.5",
"partyserver": "^0.0.74",
"partysocket": "^1.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250327.0"
"@cloudflare/workers-types": "^4.20250924.0"
}
}
2 changes: 1 addition & 1 deletion fixtures/globe/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Globe extends Server {
} satisfies OutgoingMessage)
);
}
} catch (err) {
} catch (_err) {
this.onCloseOrError(conn);
}
}
Expand Down
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.7.5",
"hono": "^4.9.8",
"hono-party": "^0.0.16",
"partyserver": "^0.0.74",
"partysocket": "^1.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"devDependencies": {
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4"
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
}
}
12 changes: 6 additions & 6 deletions fixtures/lexical-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"deploy": "wrangler deploy"
},
"dependencies": {
"@lexical/react": "^0.29.0",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4",
"lexical": "^0.29.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"@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"
}
}
2 changes: 1 addition & 1 deletion fixtures/monaco-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "wrangler dev"
},
"dependencies": {
"monaco-editor": "^0.52.2",
"monaco-editor": "^0.53.0",
"partysocket": "^1.1.2",
"y-monaco": "^0.1.6"
}
Expand Down
4 changes: 3 additions & 1 deletion fixtures/monaco-yjs/src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ 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 = {
getWorkerUrl: (moduleId, label) => {
// @ts-expect-error I don't know typescript
getWorkerUrl: (_moduleId, label) => {
if (label === "json") {
// return "/dist/json.worker.bundle.js";
return "/dist/monaco-editor/esm/vs/language/json/json.js";
Expand Down
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.7.5",
"hono": "^4.9.8",
"partytracks": "^0.0.51",
"rxjs": "^7.8.2"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250327.0"
"@cloudflare/workers-types": "^4.20250924.0"
}
}
2 changes: 2 additions & 0 deletions fixtures/partytracks/src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ pulledScreenshareVideoTrack$.subscribe((track) => {
});

const audioSink = createAudioSink({ audioElement: audio });
// biome-ignore lint/correctness/noUnusedVariables: it's fine
const pulledTrackSinkSubscription = audioSink.attach(pulledAudioTrack$);
// biome-ignore lint/correctness/noUnusedVariables: it's fine
const pulledScreenshareAudioTrackSinkSubscription = audioSink.attach(
pulledScreenshareAudioTrack$
);
Expand Down
2 changes: 1 addition & 1 deletion fixtures/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "vite dev"
},
"dependencies": {
"nanoid": "^5.1.5",
"nanoid": "^5.1.6",
"partysocket": "^1.1.2"
}
}
2 changes: 1 addition & 1 deletion fixtures/pubsub/src/client/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function App() {
<div>
Messages:
{messages.map((message, i) => (
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
// biome-ignore lint/suspicious/noArrayIndexKey: it's fine
<div key={i}>{JSON.stringify(message)}</div>
))}
</div>
Expand Down
10 changes: 5 additions & 5 deletions fixtures/tiptap-yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"@tiptap/react": "^2.11.5",
"@tiptap/starter-kit": "^2.11.5",
"partyserver": "^0.0.74",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.17",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tailwindcss": "^4.1.13",
"y-partyserver": "^0.0.49"
},
"devDependencies": {
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4"
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
}
}
1 change: 1 addition & 0 deletions fixtures/tldraw/client/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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
4 changes: 3 additions & 1 deletion fixtures/tldraw/client/useSyncStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export function useSyncStore({
unsubs.push(() => socket.removeEventListener("close", handleClose));

return () => {
unsubs.forEach((fn) => fn());
unsubs.forEach((fn) => {
fn();
});
unsubs.length = 0;
socket.close();
};
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.74",
"partysocket": "^1.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tldraw": "^3.11.0"
"react": "^19.1.1",
"react-dom": "^19.1.1",
"tldraw": "^4.0.2"
},
"devDependencies": {
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4"
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
}
}
2 changes: 1 addition & 1 deletion fixtures/tldraw/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Tldraw extends Server {
this.broadcast(message, [sender.id]);
// and update the storage layer
await this.persist();
} catch (err) {
} catch (_err) {
// If we have a problem merging the update, we need to send a snapshot
// of the current state to the client so they can get back in sync.
sender.send(
Expand Down
14 changes: 7 additions & 7 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.0.12",
"@types/react-dom": "^19.0.4",
"nanoid": "^5.1.5",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"nanoid": "^5.1.6",
"partyserver": "^0.0.74",
"partysocket": "^1.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"valibot": "^1.0.0"
"react": "^19.1.1",
"react-dom": "^19.1.1",
"valibot": "^1.1.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250327.0"
"@cloudflare/workers-types": "^4.20250924.0"
}
}
2 changes: 1 addition & 1 deletion fixtures/todo-sync/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class ToDos extends SyncServer<
)`);
}

async onAction(channel: "todos", action: TodoAction): Promise<TodoRecord[]> {
async onAction(_channel: "todos", action: TodoAction): Promise<TodoRecord[]> {
// uncomment this if you want to run actions sequentially
// return this.ctx.blockConcurrencyWhile(async () => {
await sleep(Math.random() * 2000);
Expand Down
2 changes: 1 addition & 1 deletion fixtures/video-echo/app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function handleRequest(
remixContext: EntryContext,
// This is ignored so we can keep it in the template for visibility. Feel
// free to delete this parameter in your app if you're not using it!
loadContext: AppLoadContext
_loadContext: AppLoadContext
) {
const body = await renderToReadableStream(
<RemixServer context={remixContext} url={request.url} />,
Expand Down
2 changes: 1 addition & 1 deletion fixtures/video-echo/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const handleRemixRequest = createRequestHandler(build);

// TODO: test the expiration stuff
export class MyPartyServer<Env> extends Server<Env> {
async fetch(request: Request) {
async fetch(_request: Request) {
return new Response("Hello from the party server");
}
}
Expand Down
22 changes: 11 additions & 11 deletions fixtures/video-echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
"start": "remix dev -c \"wrangler dev\""
},
"dependencies": {
"@remix-run/cloudflare": "^2.16.2",
"@remix-run/css-bundle": "^2.16.2",
"@remix-run/react": "^2.16.2",
"@remix-run/server-runtime": "^2.16.2",
"isbot": "^5.1.25",
"@remix-run/cloudflare": "^2.17.1",
"@remix-run/css-bundle": "^2.17.1",
"@remix-run/react": "^2.17.1",
"@remix-run/server-runtime": "^2.17.1",
"isbot": "^5.1.31",
"partysocket": "^1.1.5",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250327.0",
"@remix-run/dev": "^2.16.2",
"@types/react": "^19.0.12",
"@types/react-dom": "^19.0.4"
"@cloudflare/workers-types": "^4.20250924.0",
"@remix-run/dev": "^2.17.1",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9"
},
"engines": {
"node": ">=20.0.0"
Expand Down
Loading